[2025-01-30 00:00:05] Production.INFO: next invoice date [2025-01-30 00:00:05] Production.INFO: 2025-03-02 [2025-01-30 00:00:05] Production.INFO: getdaysdiff [2025-01-30 00:00:05] Production.INFO: +31 [2025-01-30 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,31,31,'RMScheduler',2025-01-30 00:00:05,0,0,,,0) [2025-01-30 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:00:07 [end_date_ymd] => 2025-01-30 00:00:07 [RateCDR] => 1 ) [2025-01-30 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-29 21:00:07' and `end` < '2025-01-30 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-30 00:00:21] Production.INFO: count ==7971 [2025-01-30 00:00:28] Production.ERROR: pbx CDR StartTime 2025-01-29 21:00:07 - End Time 2025-01-30 00:00:07 [2025-01-30 00:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359845', 'tblTempUsageDetail_20' ) start [2025-01-30 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359845', 'tblTempUsageDetail_20' ) end [2025-01-30 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359845', 'tblTempVendorCDR_20' ) start [2025-01-30 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359845', 'tblTempVendorCDR_20' ) end [2025-01-30 00:00:29] Production.INFO: ProcessCDR(1,14359845,1,1,2) [2025-01-30 00:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359845', 'tblTempUsageDetail_20' ) start [2025-01-30 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359845', 'tblTempUsageDetail_20' ) end [2025-01-30 00:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:00:34] Production.INFO: ==25971== Releasing lock... [2025-01-30 00:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:00:34] Production.INFO: 89.5 MB #Memory Used# [2025-01-30 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:01:05 [end_date_ymd] => 2025-01-30 00:01:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:01:05' and `end` < '2025-01-30 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-30 00:01:20] Production.INFO: count ==7936 [2025-01-30 00:01:24] Production.ERROR: pbx CDR StartTime 2025-01-29 21:01:05 - End Time 2025-01-30 00:01:05 [2025-01-30 00:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359850', 'tblTempUsageDetail_20' ) start [2025-01-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359850', 'tblTempUsageDetail_20' ) end [2025-01-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359850', 'tblTempVendorCDR_20' ) start [2025-01-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359850', 'tblTempVendorCDR_20' ) end [2025-01-30 00:01:24] Production.INFO: ProcessCDR(1,14359850,1,1,2) [2025-01-30 00:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359850', 'tblTempUsageDetail_20' ) start [2025-01-30 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359850', 'tblTempUsageDetail_20' ) end [2025-01-30 00:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:01:27] Production.INFO: ==26062== Releasing lock... [2025-01-30 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:01:27] Production.INFO: 88.75 MB #Memory Used# [2025-01-30 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:02:04 [end_date_ymd] => 2025-01-30 00:02:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:02:04' and `end` < '2025-01-30 00: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-30 00:02:39] Production.INFO: count ==7375 [2025-01-30 00:02:43] Production.ERROR: pbx CDR StartTime 2025-01-29 21:02:04 - End Time 2025-01-30 00:02:04 [2025-01-30 00:02:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:02:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359855', 'tblTempUsageDetail_20' ) start [2025-01-30 00:02:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359855', 'tblTempUsageDetail_20' ) end [2025-01-30 00:02:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359855', 'tblTempVendorCDR_20' ) start [2025-01-30 00:02:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359855', 'tblTempVendorCDR_20' ) end [2025-01-30 00:02:43] Production.INFO: ProcessCDR(1,14359855,1,1,2) [2025-01-30 00:02:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:02:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:02:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:02:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:02:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359855', 'tblTempUsageDetail_20' ) start [2025-01-30 00:02:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359855', 'tblTempUsageDetail_20' ) end [2025-01-30 00:02:46] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:02:46] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:02:46] Production.INFO: ==26132== Releasing lock... [2025-01-30 00:02:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:02:46] Production.INFO: 84.75 MB #Memory Used# [2025-01-30 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:03:05 [end_date_ymd] => 2025-01-30 00:03:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:03:05' and `end` < '2025-01-30 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-30 00:03:41] Production.INFO: count ==7319 [2025-01-30 00:03:45] Production.ERROR: pbx CDR StartTime 2025-01-29 21:03:05 - End Time 2025-01-30 00:03:05 [2025-01-30 00:03:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:03:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359860', 'tblTempUsageDetail_20' ) start [2025-01-30 00:03:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359860', 'tblTempUsageDetail_20' ) end [2025-01-30 00:03:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359860', 'tblTempVendorCDR_20' ) start [2025-01-30 00:03:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359860', 'tblTempVendorCDR_20' ) end [2025-01-30 00:03:46] Production.INFO: ProcessCDR(1,14359860,1,1,2) [2025-01-30 00:03:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:03:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:03:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:03:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:03:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359860', 'tblTempUsageDetail_20' ) start [2025-01-30 00:03:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359860', 'tblTempUsageDetail_20' ) end [2025-01-30 00:03:49] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:03:49] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:03:50] Production.INFO: ==26205== Releasing lock... [2025-01-30 00:03:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:03:50] Production.INFO: 84 MB #Memory Used# [2025-01-30 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:04:04 [end_date_ymd] => 2025-01-30 00:04:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:04:04' and `end` < '2025-01-30 00: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-30 00:04:28] Production.INFO: count ==7316 [2025-01-30 00:04:32] Production.ERROR: pbx CDR StartTime 2025-01-29 21:04:04 - End Time 2025-01-30 00:04:04 [2025-01-30 00:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359865', 'tblTempUsageDetail_20' ) start [2025-01-30 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359865', 'tblTempUsageDetail_20' ) end [2025-01-30 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359865', 'tblTempVendorCDR_20' ) start [2025-01-30 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359865', 'tblTempVendorCDR_20' ) end [2025-01-30 00:04:32] Production.INFO: ProcessCDR(1,14359865,1,1,2) [2025-01-30 00:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359865', 'tblTempUsageDetail_20' ) start [2025-01-30 00:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359865', 'tblTempUsageDetail_20' ) end [2025-01-30 00:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:04:36] Production.INFO: ==26276== Releasing lock... [2025-01-30 00:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:04:36] Production.INFO: 83 MB #Memory Used# [2025-01-30 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:05:05 [end_date_ymd] => 2025-01-30 00:05:05 [RateCDR] => 1 ) [2025-01-30 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:05:05' and `end` < '2025-01-30 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:05:29] Production.INFO: count ==7258 [2025-01-30 00:05:33] Production.ERROR: pbx CDR StartTime 2025-01-29 21:05:05 - End Time 2025-01-30 00:05:05 [2025-01-30 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359870', 'tblTempUsageDetail_20' ) start [2025-01-30 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359870', 'tblTempUsageDetail_20' ) end [2025-01-30 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359870', 'tblTempVendorCDR_20' ) start [2025-01-30 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359870', 'tblTempVendorCDR_20' ) end [2025-01-30 00:05:34] Production.INFO: ProcessCDR(1,14359870,1,1,2) [2025-01-30 00:05:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359870', 'tblTempUsageDetail_20' ) start [2025-01-30 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359870', 'tblTempUsageDetail_20' ) end [2025-01-30 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:05:37] Production.INFO: ==26348== Releasing lock... [2025-01-30 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:05:37] Production.INFO: 82.75 MB #Memory Used# [2025-01-30 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:06:05 [end_date_ymd] => 2025-01-30 00:06:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:06:05' and `end` < '2025-01-30 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-30 00:06:26] Production.INFO: count ==7249 [2025-01-30 00:06:30] Production.ERROR: pbx CDR StartTime 2025-01-29 21:06:05 - End Time 2025-01-30 00:06:05 [2025-01-30 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359875', 'tblTempUsageDetail_20' ) start [2025-01-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359875', 'tblTempUsageDetail_20' ) end [2025-01-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359875', 'tblTempVendorCDR_20' ) start [2025-01-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359875', 'tblTempVendorCDR_20' ) end [2025-01-30 00:06:30] Production.INFO: ProcessCDR(1,14359875,1,1,2) [2025-01-30 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359875', 'tblTempUsageDetail_20' ) start [2025-01-30 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359875', 'tblTempUsageDetail_20' ) end [2025-01-30 00:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:06:34] Production.INFO: ==26424== Releasing lock... [2025-01-30 00:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:06:34] Production.INFO: 82.5 MB #Memory Used# [2025-01-30 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:07:05 [end_date_ymd] => 2025-01-30 00:07:05 [RateCDR] => 1 ) [2025-01-30 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:07:05' and `end` < '2025-01-30 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:07:20] Production.INFO: count ==7202 [2025-01-30 00:07:24] Production.ERROR: pbx CDR StartTime 2025-01-29 21:07:05 - End Time 2025-01-30 00:07:05 [2025-01-30 00:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359880', 'tblTempUsageDetail_20' ) start [2025-01-30 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359880', 'tblTempUsageDetail_20' ) end [2025-01-30 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359880', 'tblTempVendorCDR_20' ) start [2025-01-30 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359880', 'tblTempVendorCDR_20' ) end [2025-01-30 00:07:25] Production.INFO: ProcessCDR(1,14359880,1,1,2) [2025-01-30 00:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359880', 'tblTempUsageDetail_20' ) start [2025-01-30 00:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359880', 'tblTempUsageDetail_20' ) end [2025-01-30 00:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:07:28] Production.INFO: ==26499== Releasing lock... [2025-01-30 00:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:07:28] Production.INFO: 82.25 MB #Memory Used# [2025-01-30 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:08:05 [end_date_ymd] => 2025-01-30 00:08:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:08:05' and `end` < '2025-01-30 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-30 00:08:18] Production.INFO: count ==7157 [2025-01-30 00:08:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:08:05 - End Time 2025-01-30 00:08:05 [2025-01-30 00:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359885', 'tblTempUsageDetail_20' ) start [2025-01-30 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359885', 'tblTempUsageDetail_20' ) end [2025-01-30 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359885', 'tblTempVendorCDR_20' ) start [2025-01-30 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359885', 'tblTempVendorCDR_20' ) end [2025-01-30 00:08:23] Production.INFO: ProcessCDR(1,14359885,1,1,2) [2025-01-30 00:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359885', 'tblTempUsageDetail_20' ) start [2025-01-30 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359885', 'tblTempUsageDetail_20' ) end [2025-01-30 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:08:26] Production.INFO: ==26577== Releasing lock... [2025-01-30 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:08:26] Production.INFO: 81.75 MB #Memory Used# [2025-01-30 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:09:05 [end_date_ymd] => 2025-01-30 00:09:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:09:05' and `end` < '2025-01-30 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-30 00:09:18] Production.INFO: count ==7122 [2025-01-30 00:09:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:09:05 - End Time 2025-01-30 00:09:05 [2025-01-30 00:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359890', 'tblTempUsageDetail_20' ) start [2025-01-30 00:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359890', 'tblTempUsageDetail_20' ) end [2025-01-30 00:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359890', 'tblTempVendorCDR_20' ) start [2025-01-30 00:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359890', 'tblTempVendorCDR_20' ) end [2025-01-30 00:09:22] Production.INFO: ProcessCDR(1,14359890,1,1,2) [2025-01-30 00:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359890', 'tblTempUsageDetail_20' ) start [2025-01-30 00:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359890', 'tblTempUsageDetail_20' ) end [2025-01-30 00:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:09:25] Production.INFO: ==26648== Releasing lock... [2025-01-30 00:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:09:25] Production.INFO: 81.5 MB #Memory Used# [2025-01-30 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:10:05 [end_date_ymd] => 2025-01-30 00:10:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:10:05' and `end` < '2025-01-30 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-30 00:10:19] Production.INFO: count ==7228 [2025-01-30 00:10:24] Production.ERROR: pbx CDR StartTime 2025-01-29 21:10:05 - End Time 2025-01-30 00:10:05 [2025-01-30 00:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359892', 'tblTempUsageDetail_20' ) start [2025-01-30 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359892', 'tblTempUsageDetail_20' ) end [2025-01-30 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359892', 'tblTempVendorCDR_20' ) start [2025-01-30 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359892', 'tblTempVendorCDR_20' ) end [2025-01-30 00:10:24] Production.INFO: ProcessCDR(1,14359892,1,1,2) [2025-01-30 00:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359892', 'tblTempUsageDetail_20' ) start [2025-01-30 00:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359892', 'tblTempUsageDetail_20' ) end [2025-01-30 00:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:10:27] Production.INFO: ==26722== Releasing lock... [2025-01-30 00:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:10:27] Production.INFO: 82.25 MB #Memory Used# [2025-01-30 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:11:04 [end_date_ymd] => 2025-01-30 00:11:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:11:04' and `end` < '2025-01-30 00: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-30 00:11:19] Production.INFO: count ==7229 [2025-01-30 00:11:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:11:04 - End Time 2025-01-30 00:11:04 [2025-01-30 00:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359901', 'tblTempUsageDetail_20' ) start [2025-01-30 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359901', 'tblTempUsageDetail_20' ) end [2025-01-30 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359901', 'tblTempVendorCDR_20' ) start [2025-01-30 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359901', 'tblTempVendorCDR_20' ) end [2025-01-30 00:11:23] Production.INFO: ProcessCDR(1,14359901,1,1,2) [2025-01-30 00:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359901', 'tblTempUsageDetail_20' ) start [2025-01-30 00:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359901', 'tblTempUsageDetail_20' ) end [2025-01-30 00:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:11:26] Production.INFO: ==26840== Releasing lock... [2025-01-30 00:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:11:26] Production.INFO: 82.25 MB #Memory Used# [2025-01-30 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:12:05 [end_date_ymd] => 2025-01-30 00:12:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:12:05' and `end` < '2025-01-30 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-30 00:12:41] Production.INFO: count ==7174 [2025-01-30 00:12:45] Production.ERROR: pbx CDR StartTime 2025-01-29 21:12:05 - End Time 2025-01-30 00:12:05 [2025-01-30 00:12:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:12:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359906', 'tblTempUsageDetail_20' ) start [2025-01-30 00:12:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359906', 'tblTempUsageDetail_20' ) end [2025-01-30 00:12:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359906', 'tblTempVendorCDR_20' ) start [2025-01-30 00:12:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359906', 'tblTempVendorCDR_20' ) end [2025-01-30 00:12:46] Production.INFO: ProcessCDR(1,14359906,1,1,2) [2025-01-30 00:12:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:12:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:12:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:12:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:12:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359906', 'tblTempUsageDetail_20' ) start [2025-01-30 00:12:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359906', 'tblTempUsageDetail_20' ) end [2025-01-30 00:12:50] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:12:50] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:12:50] Production.INFO: ==26915== Releasing lock... [2025-01-30 00:12:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:12:50] Production.INFO: 82 MB #Memory Used# [2025-01-30 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:13:05 [end_date_ymd] => 2025-01-30 00:13:05 [RateCDR] => 1 ) [2025-01-30 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:13:05' and `end` < '2025-01-30 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:13:27] Production.INFO: count ==7119 [2025-01-30 00:13:31] Production.ERROR: pbx CDR StartTime 2025-01-29 21:13:05 - End Time 2025-01-30 00:13:05 [2025-01-30 00:13:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359911', 'tblTempUsageDetail_20' ) start [2025-01-30 00:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359911', 'tblTempUsageDetail_20' ) end [2025-01-30 00:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359911', 'tblTempVendorCDR_20' ) start [2025-01-30 00:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359911', 'tblTempVendorCDR_20' ) end [2025-01-30 00:13:31] Production.INFO: ProcessCDR(1,14359911,1,1,2) [2025-01-30 00:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359911', 'tblTempUsageDetail_20' ) start [2025-01-30 00:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359911', 'tblTempUsageDetail_20' ) end [2025-01-30 00:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:13:34] Production.INFO: ==26991== Releasing lock... [2025-01-30 00:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:13:34] Production.INFO: 81.5 MB #Memory Used# [2025-01-30 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:14:05 [end_date_ymd] => 2025-01-30 00:14:05 [RateCDR] => 1 ) [2025-01-30 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:14:05' and `end` < '2025-01-30 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:14:22] Production.INFO: count ==7088 [2025-01-30 00:14:26] Production.ERROR: pbx CDR StartTime 2025-01-29 21:14:05 - End Time 2025-01-30 00:14:05 [2025-01-30 00:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359916', 'tblTempUsageDetail_20' ) start [2025-01-30 00:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359916', 'tblTempUsageDetail_20' ) end [2025-01-30 00:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359916', 'tblTempVendorCDR_20' ) start [2025-01-30 00:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359916', 'tblTempVendorCDR_20' ) end [2025-01-30 00:14:26] Production.INFO: ProcessCDR(1,14359916,1,1,2) [2025-01-30 00:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359916', 'tblTempUsageDetail_20' ) start [2025-01-30 00:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359916', 'tblTempUsageDetail_20' ) end [2025-01-30 00:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:14:29] Production.INFO: ==27065== Releasing lock... [2025-01-30 00:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:14:29] Production.INFO: 81.25 MB #Memory Used# [2025-01-30 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:15:05 [end_date_ymd] => 2025-01-30 00:15:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:15:05' and `end` < '2025-01-30 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-30 00:15:18] Production.INFO: count ==7019 [2025-01-30 00:15:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:15:05 - End Time 2025-01-30 00:15:05 [2025-01-30 00:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359921', 'tblTempUsageDetail_20' ) start [2025-01-30 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359921', 'tblTempUsageDetail_20' ) end [2025-01-30 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359921', 'tblTempVendorCDR_20' ) start [2025-01-30 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359921', 'tblTempVendorCDR_20' ) end [2025-01-30 00:15:23] Production.INFO: ProcessCDR(1,14359921,1,1,2) [2025-01-30 00:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359921', 'tblTempUsageDetail_20' ) start [2025-01-30 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359921', 'tblTempUsageDetail_20' ) end [2025-01-30 00:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:15:26] Production.INFO: ==27141== Releasing lock... [2025-01-30 00:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:15:26] Production.INFO: 80.25 MB #Memory Used# [2025-01-30 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:16:05 [end_date_ymd] => 2025-01-30 00:16:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:16:05' and `end` < '2025-01-30 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-30 00:16:18] Production.INFO: count ==6948 [2025-01-30 00:16:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:16:05 - End Time 2025-01-30 00:16:05 [2025-01-30 00:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359926', 'tblTempUsageDetail_20' ) start [2025-01-30 00:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359926', 'tblTempUsageDetail_20' ) end [2025-01-30 00:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359926', 'tblTempVendorCDR_20' ) start [2025-01-30 00:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359926', 'tblTempVendorCDR_20' ) end [2025-01-30 00:16:23] Production.INFO: ProcessCDR(1,14359926,1,1,2) [2025-01-30 00:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359926', 'tblTempUsageDetail_20' ) start [2025-01-30 00:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359926', 'tblTempUsageDetail_20' ) end [2025-01-30 00:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:16:26] Production.INFO: ==27217== Releasing lock... [2025-01-30 00:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:16:26] Production.INFO: 79.75 MB #Memory Used# [2025-01-30 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:17:05 [end_date_ymd] => 2025-01-30 00:17:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:17:05' and `end` < '2025-01-30 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-30 00:17:19] Production.INFO: count ==6878 [2025-01-30 00:17:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:17:05 - End Time 2025-01-30 00:17:05 [2025-01-30 00:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359931', 'tblTempUsageDetail_20' ) start [2025-01-30 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359931', 'tblTempUsageDetail_20' ) end [2025-01-30 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359931', 'tblTempVendorCDR_20' ) start [2025-01-30 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359931', 'tblTempVendorCDR_20' ) end [2025-01-30 00:17:23] Production.INFO: ProcessCDR(1,14359931,1,1,2) [2025-01-30 00:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359931', 'tblTempUsageDetail_20' ) start [2025-01-30 00:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359931', 'tblTempUsageDetail_20' ) end [2025-01-30 00:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:17:27] Production.INFO: ==27292== Releasing lock... [2025-01-30 00:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:17:27] Production.INFO: 79.25 MB #Memory Used# [2025-01-30 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:18:05 [end_date_ymd] => 2025-01-30 00:18:05 [RateCDR] => 1 ) [2025-01-30 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:18:05' and `end` < '2025-01-30 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:18:18] Production.INFO: count ==6801 [2025-01-30 00:18:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:18:05 - End Time 2025-01-30 00:18:05 [2025-01-30 00:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359936', 'tblTempUsageDetail_20' ) start [2025-01-30 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359936', 'tblTempUsageDetail_20' ) end [2025-01-30 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359936', 'tblTempVendorCDR_20' ) start [2025-01-30 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359936', 'tblTempVendorCDR_20' ) end [2025-01-30 00:18:22] Production.INFO: ProcessCDR(1,14359936,1,1,2) [2025-01-30 00:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359936', 'tblTempUsageDetail_20' ) start [2025-01-30 00:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359936', 'tblTempUsageDetail_20' ) end [2025-01-30 00:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:18:25] Production.INFO: ==27381== Releasing lock... [2025-01-30 00:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:18:25] Production.INFO: 78.75 MB #Memory Used# [2025-01-30 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:19:05 [end_date_ymd] => 2025-01-30 00:19:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:19:05' and `end` < '2025-01-30 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-30 00:19:19] Production.INFO: count ==6728 [2025-01-30 00:19:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:19:05 - End Time 2025-01-30 00:19:05 [2025-01-30 00:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359941', 'tblTempUsageDetail_20' ) start [2025-01-30 00:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359941', 'tblTempUsageDetail_20' ) end [2025-01-30 00:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359941', 'tblTempVendorCDR_20' ) start [2025-01-30 00:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359941', 'tblTempVendorCDR_20' ) end [2025-01-30 00:19:23] Production.INFO: ProcessCDR(1,14359941,1,1,2) [2025-01-30 00:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359941', 'tblTempUsageDetail_20' ) start [2025-01-30 00:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359941', 'tblTempUsageDetail_20' ) end [2025-01-30 00:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:19:26] Production.INFO: ==27461== Releasing lock... [2025-01-30 00:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:19:26] Production.INFO: 78.25 MB #Memory Used# [2025-01-30 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:20:05 [end_date_ymd] => 2025-01-30 00:20:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:20:05' and `end` < '2025-01-30 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-30 00:20:19] Production.INFO: count ==6659 [2025-01-30 00:20:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:20:05 - End Time 2025-01-30 00:20:05 [2025-01-30 00:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359947', 'tblTempUsageDetail_20' ) start [2025-01-30 00:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359947', 'tblTempUsageDetail_20' ) end [2025-01-30 00:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359947', 'tblTempVendorCDR_20' ) start [2025-01-30 00:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359947', 'tblTempVendorCDR_20' ) end [2025-01-30 00:20:23] Production.INFO: ProcessCDR(1,14359947,1,1,2) [2025-01-30 00:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359947', 'tblTempUsageDetail_20' ) start [2025-01-30 00:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359947', 'tblTempUsageDetail_20' ) end [2025-01-30 00:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:20:26] Production.INFO: ==27537== Releasing lock... [2025-01-30 00:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:20:26] Production.INFO: 77.5 MB #Memory Used# [2025-01-30 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:21:05 [end_date_ymd] => 2025-01-30 00:21:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:21:05' and `end` < '2025-01-30 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-30 00:21:19] Production.INFO: count ==6618 [2025-01-30 00:21:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:21:05 - End Time 2025-01-30 00:21:05 [2025-01-30 00:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359952', 'tblTempUsageDetail_20' ) start [2025-01-30 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359952', 'tblTempUsageDetail_20' ) end [2025-01-30 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359952', 'tblTempVendorCDR_20' ) start [2025-01-30 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359952', 'tblTempVendorCDR_20' ) end [2025-01-30 00:21:23] Production.INFO: ProcessCDR(1,14359952,1,1,2) [2025-01-30 00:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359952', 'tblTempUsageDetail_20' ) start [2025-01-30 00:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359952', 'tblTempUsageDetail_20' ) end [2025-01-30 00:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:21:27] Production.INFO: ==27620== Releasing lock... [2025-01-30 00:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:21:27] Production.INFO: 77.25 MB #Memory Used# [2025-01-30 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:22:05 [end_date_ymd] => 2025-01-30 00:22:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:22:05' and `end` < '2025-01-30 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-30 00:22:18] Production.INFO: count ==6564 [2025-01-30 00:22:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:22:05 - End Time 2025-01-30 00:22:05 [2025-01-30 00:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359957', 'tblTempUsageDetail_20' ) start [2025-01-30 00:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359957', 'tblTempUsageDetail_20' ) end [2025-01-30 00:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359957', 'tblTempVendorCDR_20' ) start [2025-01-30 00:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359957', 'tblTempVendorCDR_20' ) end [2025-01-30 00:22:22] Production.INFO: ProcessCDR(1,14359957,1,1,2) [2025-01-30 00:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359957', 'tblTempUsageDetail_20' ) start [2025-01-30 00:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359957', 'tblTempUsageDetail_20' ) end [2025-01-30 00:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:22:26] Production.INFO: ==27697== Releasing lock... [2025-01-30 00:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:22:26] Production.INFO: 77 MB #Memory Used# [2025-01-30 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:23:05 [end_date_ymd] => 2025-01-30 00:23:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:23:05' and `end` < '2025-01-30 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-30 00:23:19] Production.INFO: count ==6499 [2025-01-30 00:23:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:23:05 - End Time 2025-01-30 00:23:05 [2025-01-30 00:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359962', 'tblTempUsageDetail_20' ) start [2025-01-30 00:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359962', 'tblTempUsageDetail_20' ) end [2025-01-30 00:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359962', 'tblTempVendorCDR_20' ) start [2025-01-30 00:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359962', 'tblTempVendorCDR_20' ) end [2025-01-30 00:23:23] Production.INFO: ProcessCDR(1,14359962,1,1,2) [2025-01-30 00:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359962', 'tblTempUsageDetail_20' ) start [2025-01-30 00:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359962', 'tblTempUsageDetail_20' ) end [2025-01-30 00:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:23:26] Production.INFO: ==27774== Releasing lock... [2025-01-30 00:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:23:26] Production.INFO: 76.5 MB #Memory Used# [2025-01-30 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:24:06 [end_date_ymd] => 2025-01-30 00:24:06 [RateCDR] => 1 ) [2025-01-30 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:24:06' and `end` < '2025-01-30 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:24:20] Production.INFO: count ==6467 [2025-01-30 00:24:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:24:06 - End Time 2025-01-30 00:24:06 [2025-01-30 00:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359967', 'tblTempUsageDetail_20' ) start [2025-01-30 00:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359967', 'tblTempUsageDetail_20' ) end [2025-01-30 00:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359967', 'tblTempVendorCDR_20' ) start [2025-01-30 00:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359967', 'tblTempVendorCDR_20' ) end [2025-01-30 00:24:23] Production.INFO: ProcessCDR(1,14359967,1,1,2) [2025-01-30 00:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359967', 'tblTempUsageDetail_20' ) start [2025-01-30 00:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359967', 'tblTempUsageDetail_20' ) end [2025-01-30 00:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:24:26] Production.INFO: ==27849== Releasing lock... [2025-01-30 00:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:24:26] Production.INFO: 76.25 MB #Memory Used# [2025-01-30 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:25:05 [end_date_ymd] => 2025-01-30 00:25:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:25:05' and `end` < '2025-01-30 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-30 00:25:18] Production.INFO: count ==6428 [2025-01-30 00:25:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:25:05 - End Time 2025-01-30 00:25:05 [2025-01-30 00:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359972', 'tblTempUsageDetail_20' ) start [2025-01-30 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359972', 'tblTempUsageDetail_20' ) end [2025-01-30 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359972', 'tblTempVendorCDR_20' ) start [2025-01-30 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359972', 'tblTempVendorCDR_20' ) end [2025-01-30 00:25:22] Production.INFO: ProcessCDR(1,14359972,1,1,2) [2025-01-30 00:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359972', 'tblTempUsageDetail_20' ) start [2025-01-30 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359972', 'tblTempUsageDetail_20' ) end [2025-01-30 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:25:25] Production.INFO: ==27933== Releasing lock... [2025-01-30 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:25:25] Production.INFO: 76 MB #Memory Used# [2025-01-30 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:26:05 [end_date_ymd] => 2025-01-30 00:26:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:26:05' and `end` < '2025-01-30 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-30 00:26:20] Production.INFO: count ==6363 [2025-01-30 00:26:24] Production.ERROR: pbx CDR StartTime 2025-01-29 21:26:05 - End Time 2025-01-30 00:26:05 [2025-01-30 00:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359977', 'tblTempUsageDetail_20' ) start [2025-01-30 00:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359977', 'tblTempUsageDetail_20' ) end [2025-01-30 00:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359977', 'tblTempVendorCDR_20' ) start [2025-01-30 00:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359977', 'tblTempVendorCDR_20' ) end [2025-01-30 00:26:24] Production.INFO: ProcessCDR(1,14359977,1,1,2) [2025-01-30 00:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359977', 'tblTempUsageDetail_20' ) start [2025-01-30 00:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359977', 'tblTempUsageDetail_20' ) end [2025-01-30 00:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:26:27] Production.INFO: ==28047== Releasing lock... [2025-01-30 00:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:26:27] Production.INFO: 75.5 MB #Memory Used# [2025-01-30 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:27:04 [end_date_ymd] => 2025-01-30 00:27:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:27:04' and `end` < '2025-01-30 00: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-30 00:27:18] Production.INFO: count ==6299 [2025-01-30 00:27:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:27:04 - End Time 2025-01-30 00:27:04 [2025-01-30 00:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359982', 'tblTempUsageDetail_20' ) start [2025-01-30 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359982', 'tblTempUsageDetail_20' ) end [2025-01-30 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359982', 'tblTempVendorCDR_20' ) start [2025-01-30 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359982', 'tblTempVendorCDR_20' ) end [2025-01-30 00:27:21] Production.INFO: ProcessCDR(1,14359982,1,1,2) [2025-01-30 00:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359982', 'tblTempUsageDetail_20' ) start [2025-01-30 00:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359982', 'tblTempUsageDetail_20' ) end [2025-01-30 00:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:27:24] Production.INFO: ==28127== Releasing lock... [2025-01-30 00:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:27:24] Production.INFO: 75 MB #Memory Used# [2025-01-30 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:28:05 [end_date_ymd] => 2025-01-30 00:28:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:28:05' and `end` < '2025-01-30 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-30 00:28:19] Production.INFO: count ==6251 [2025-01-30 00:28:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:28:05 - End Time 2025-01-30 00:28:05 [2025-01-30 00:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359987', 'tblTempUsageDetail_20' ) start [2025-01-30 00:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359987', 'tblTempUsageDetail_20' ) end [2025-01-30 00:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359987', 'tblTempVendorCDR_20' ) start [2025-01-30 00:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359987', 'tblTempVendorCDR_20' ) end [2025-01-30 00:28:23] Production.INFO: ProcessCDR(1,14359987,1,1,2) [2025-01-30 00:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359987', 'tblTempUsageDetail_20' ) start [2025-01-30 00:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359987', 'tblTempUsageDetail_20' ) end [2025-01-30 00:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:28:26] Production.INFO: ==28203== Releasing lock... [2025-01-30 00:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:28:26] Production.INFO: 74.5 MB #Memory Used# [2025-01-30 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:29:05 [end_date_ymd] => 2025-01-30 00:29:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:29:05' and `end` < '2025-01-30 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-30 00:29:20] Production.INFO: count ==6218 [2025-01-30 00:29:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:29:05 - End Time 2025-01-30 00:29:05 [2025-01-30 00:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359992', 'tblTempUsageDetail_20' ) start [2025-01-30 00:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359992', 'tblTempUsageDetail_20' ) end [2025-01-30 00:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359992', 'tblTempVendorCDR_20' ) start [2025-01-30 00:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359992', 'tblTempVendorCDR_20' ) end [2025-01-30 00:29:23] Production.INFO: ProcessCDR(1,14359992,1,1,2) [2025-01-30 00:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359992', 'tblTempUsageDetail_20' ) start [2025-01-30 00:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359992', 'tblTempUsageDetail_20' ) end [2025-01-30 00:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:29:26] Production.INFO: ==28282== Releasing lock... [2025-01-30 00:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:29:26] Production.INFO: 74.25 MB #Memory Used# [2025-01-30 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:30:05 [end_date_ymd] => 2025-01-30 00:30:05 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:30:05' and `end` < '2025-01-30 00: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-30 00:30:18] Production.INFO: count ==6193 [2025-01-30 00:30:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:30:05 - End Time 2025-01-30 00:30:05 [2025-01-30 00:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359998', 'tblTempUsageDetail_20' ) start [2025-01-30 00:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359998', 'tblTempUsageDetail_20' ) end [2025-01-30 00:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359998', 'tblTempVendorCDR_20' ) start [2025-01-30 00:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359998', 'tblTempVendorCDR_20' ) end [2025-01-30 00:30:23] Production.INFO: ProcessCDR(1,14359998,1,1,2) [2025-01-30 00:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359998', 'tblTempUsageDetail_20' ) start [2025-01-30 00:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359998', 'tblTempUsageDetail_20' ) end [2025-01-30 00:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:30:26] Production.INFO: ==28360== Releasing lock... [2025-01-30 00:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:30:26] Production.INFO: 74.25 MB #Memory Used# [2025-01-30 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:31:05 [end_date_ymd] => 2025-01-30 00:31:05 [RateCDR] => 1 ) [2025-01-30 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:31:05' and `end` < '2025-01-30 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:31:19] Production.INFO: count ==6176 [2025-01-30 00:31:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:31:05 - End Time 2025-01-30 00:31:05 [2025-01-30 00:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360003', 'tblTempUsageDetail_20' ) start [2025-01-30 00:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360003', 'tblTempUsageDetail_20' ) end [2025-01-30 00:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360003', 'tblTempVendorCDR_20' ) start [2025-01-30 00:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360003', 'tblTempVendorCDR_20' ) end [2025-01-30 00:31:22] Production.INFO: ProcessCDR(1,14360003,1,1,2) [2025-01-30 00:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360003', 'tblTempUsageDetail_20' ) start [2025-01-30 00:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360003', 'tblTempUsageDetail_20' ) end [2025-01-30 00:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:31:25] Production.INFO: ==28444== Releasing lock... [2025-01-30 00:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:31:25] Production.INFO: 74 MB #Memory Used# [2025-01-30 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:32:04 [end_date_ymd] => 2025-01-30 00:32:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:32:04' and `end` < '2025-01-30 00: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-30 00:32:18] Production.INFO: count ==6142 [2025-01-30 00:32:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:32:04 - End Time 2025-01-30 00:32:04 [2025-01-30 00:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360008', 'tblTempUsageDetail_20' ) start [2025-01-30 00:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360008', 'tblTempUsageDetail_20' ) end [2025-01-30 00:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360008', 'tblTempVendorCDR_20' ) start [2025-01-30 00:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360008', 'tblTempVendorCDR_20' ) end [2025-01-30 00:32:21] Production.INFO: ProcessCDR(1,14360008,1,1,2) [2025-01-30 00:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360008', 'tblTempUsageDetail_20' ) start [2025-01-30 00:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360008', 'tblTempUsageDetail_20' ) end [2025-01-30 00:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:32:24] Production.INFO: ==28523== Releasing lock... [2025-01-30 00:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:32:24] Production.INFO: 73.75 MB #Memory Used# [2025-01-30 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:33:05 [end_date_ymd] => 2025-01-30 00:33:05 [RateCDR] => 1 ) [2025-01-30 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:33:05' and `end` < '2025-01-30 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:33:18] Production.INFO: count ==6106 [2025-01-30 00:33:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:33:05 - End Time 2025-01-30 00:33:05 [2025-01-30 00:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360013', 'tblTempUsageDetail_20' ) start [2025-01-30 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360013', 'tblTempUsageDetail_20' ) end [2025-01-30 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360013', 'tblTempVendorCDR_20' ) start [2025-01-30 00:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360013', 'tblTempVendorCDR_20' ) end [2025-01-30 00:33:21] Production.INFO: ProcessCDR(1,14360013,1,1,2) [2025-01-30 00:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360013', 'tblTempUsageDetail_20' ) start [2025-01-30 00:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360013', 'tblTempUsageDetail_20' ) end [2025-01-30 00:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:33:25] Production.INFO: ==28598== Releasing lock... [2025-01-30 00:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:33:25] Production.INFO: 73.5 MB #Memory Used# [2025-01-30 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:34:05 [end_date_ymd] => 2025-01-30 00:34:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:34:05' and `end` < '2025-01-30 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-30 00:34:18] Production.INFO: count ==6077 [2025-01-30 00:34:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:34:05 - End Time 2025-01-30 00:34:05 [2025-01-30 00:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360018', 'tblTempUsageDetail_20' ) start [2025-01-30 00:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360018', 'tblTempUsageDetail_20' ) end [2025-01-30 00:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360018', 'tblTempVendorCDR_20' ) start [2025-01-30 00:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360018', 'tblTempVendorCDR_20' ) end [2025-01-30 00:34:22] Production.INFO: ProcessCDR(1,14360018,1,1,2) [2025-01-30 00:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360018', 'tblTempUsageDetail_20' ) start [2025-01-30 00:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360018', 'tblTempUsageDetail_20' ) end [2025-01-30 00:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:34:25] Production.INFO: ==28680== Releasing lock... [2025-01-30 00:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:34:25] Production.INFO: 73.25 MB #Memory Used# [2025-01-30 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:35:05 [end_date_ymd] => 2025-01-30 00:35:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:35:05' and `end` < '2025-01-30 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-30 00:35:18] Production.INFO: count ==6044 [2025-01-30 00:35:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:35:05 - End Time 2025-01-30 00:35:05 [2025-01-30 00:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360023', 'tblTempUsageDetail_20' ) start [2025-01-30 00:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360023', 'tblTempUsageDetail_20' ) end [2025-01-30 00:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360023', 'tblTempVendorCDR_20' ) start [2025-01-30 00:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360023', 'tblTempVendorCDR_20' ) end [2025-01-30 00:35:22] Production.INFO: ProcessCDR(1,14360023,1,1,2) [2025-01-30 00:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360023', 'tblTempUsageDetail_20' ) start [2025-01-30 00:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360023', 'tblTempUsageDetail_20' ) end [2025-01-30 00:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:35:25] Production.INFO: ==28756== Releasing lock... [2025-01-30 00:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:35:25] Production.INFO: 73 MB #Memory Used# [2025-01-30 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:36:06 [end_date_ymd] => 2025-01-30 00:36:06 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:36:06' and `end` < '2025-01-30 00: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-30 00:36:19] Production.INFO: count ==6011 [2025-01-30 00:36:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:36:06 - End Time 2025-01-30 00:36:06 [2025-01-30 00:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360028', 'tblTempUsageDetail_20' ) start [2025-01-30 00:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360028', 'tblTempUsageDetail_20' ) end [2025-01-30 00:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360028', 'tblTempVendorCDR_20' ) start [2025-01-30 00:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360028', 'tblTempVendorCDR_20' ) end [2025-01-30 00:36:22] Production.INFO: ProcessCDR(1,14360028,1,1,2) [2025-01-30 00:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360028', 'tblTempUsageDetail_20' ) start [2025-01-30 00:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360028', 'tblTempUsageDetail_20' ) end [2025-01-30 00:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:36:25] Production.INFO: ==28837== Releasing lock... [2025-01-30 00:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:36:25] Production.INFO: 72.75 MB #Memory Used# [2025-01-30 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:37:05 [end_date_ymd] => 2025-01-30 00:37:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:37:05' and `end` < '2025-01-30 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-30 00:37:18] Production.INFO: count ==6150 [2025-01-30 00:37:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:37:05 - End Time 2025-01-30 00:37:05 [2025-01-30 00:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360033', 'tblTempUsageDetail_20' ) start [2025-01-30 00:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360033', 'tblTempUsageDetail_20' ) end [2025-01-30 00:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360033', 'tblTempVendorCDR_20' ) start [2025-01-30 00:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360033', 'tblTempVendorCDR_20' ) end [2025-01-30 00:37:22] Production.INFO: ProcessCDR(1,14360033,1,1,2) [2025-01-30 00:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360033', 'tblTempUsageDetail_20' ) start [2025-01-30 00:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360033', 'tblTempUsageDetail_20' ) end [2025-01-30 00:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:37:26] Production.INFO: ==28922== Releasing lock... [2025-01-30 00:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:37:26] Production.INFO: 73.75 MB #Memory Used# [2025-01-30 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:38:05 [end_date_ymd] => 2025-01-30 00:38:05 [RateCDR] => 1 ) [2025-01-30 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:38:05' and `end` < '2025-01-30 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:38:19] Production.INFO: count ==6117 [2025-01-30 00:38:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:38:05 - End Time 2025-01-30 00:38:05 [2025-01-30 00:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360038', 'tblTempUsageDetail_20' ) start [2025-01-30 00:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360038', 'tblTempUsageDetail_20' ) end [2025-01-30 00:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360038', 'tblTempVendorCDR_20' ) start [2025-01-30 00:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360038', 'tblTempVendorCDR_20' ) end [2025-01-30 00:38:22] Production.INFO: ProcessCDR(1,14360038,1,1,2) [2025-01-30 00:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360038', 'tblTempUsageDetail_20' ) start [2025-01-30 00:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360038', 'tblTempUsageDetail_20' ) end [2025-01-30 00:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:38:25] Production.INFO: ==29000== Releasing lock... [2025-01-30 00:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:38:25] Production.INFO: 73.5 MB #Memory Used# [2025-01-30 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:39:05 [end_date_ymd] => 2025-01-30 00:39:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:39:05' and `end` < '2025-01-30 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-30 00:39:21] Production.INFO: count ==6078 [2025-01-30 00:39:25] Production.ERROR: pbx CDR StartTime 2025-01-29 21:39:05 - End Time 2025-01-30 00:39:05 [2025-01-30 00:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360043', 'tblTempUsageDetail_20' ) start [2025-01-30 00:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360043', 'tblTempUsageDetail_20' ) end [2025-01-30 00:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360043', 'tblTempVendorCDR_20' ) start [2025-01-30 00:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360043', 'tblTempVendorCDR_20' ) end [2025-01-30 00:39:25] Production.INFO: ProcessCDR(1,14360043,1,1,2) [2025-01-30 00:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360043', 'tblTempUsageDetail_20' ) start [2025-01-30 00:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360043', 'tblTempUsageDetail_20' ) end [2025-01-30 00:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:39:28] Production.INFO: ==29077== Releasing lock... [2025-01-30 00:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:39:28] Production.INFO: 73.25 MB #Memory Used# [2025-01-30 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:40:06 [end_date_ymd] => 2025-01-30 00:40:06 [RateCDR] => 1 ) [2025-01-30 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-29 21:40:06' and `end` < '2025-01-30 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-30 00:40:19] Production.INFO: count ==6026 [2025-01-30 00:40:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:40:06 - End Time 2025-01-30 00:40:06 [2025-01-30 00:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360048', 'tblTempUsageDetail_20' ) start [2025-01-30 00:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360048', 'tblTempUsageDetail_20' ) end [2025-01-30 00:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360048', 'tblTempVendorCDR_20' ) start [2025-01-30 00:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360048', 'tblTempVendorCDR_20' ) end [2025-01-30 00:40:23] Production.INFO: ProcessCDR(1,14360048,1,1,2) [2025-01-30 00:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360048', 'tblTempUsageDetail_20' ) start [2025-01-30 00:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360048', 'tblTempUsageDetail_20' ) end [2025-01-30 00:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:40:26] Production.INFO: ==29160== Releasing lock... [2025-01-30 00:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:40:26] Production.INFO: 73 MB #Memory Used# [2025-01-30 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:41:04 [end_date_ymd] => 2025-01-30 00:41:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:41:04' and `end` < '2025-01-30 00: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-30 00:41:19] Production.INFO: count ==6167 [2025-01-30 00:41:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:41:04 - End Time 2025-01-30 00:41:04 [2025-01-30 00:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360054', 'tblTempUsageDetail_20' ) start [2025-01-30 00:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360054', 'tblTempUsageDetail_20' ) end [2025-01-30 00:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360054', 'tblTempVendorCDR_20' ) start [2025-01-30 00:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360054', 'tblTempVendorCDR_20' ) end [2025-01-30 00:41:22] Production.INFO: ProcessCDR(1,14360054,1,1,2) [2025-01-30 00:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360054', 'tblTempUsageDetail_20' ) start [2025-01-30 00:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360054', 'tblTempUsageDetail_20' ) end [2025-01-30 00:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:41:26] Production.INFO: ==29273== Releasing lock... [2025-01-30 00:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:41:26] Production.INFO: 74 MB #Memory Used# [2025-01-30 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:42:05 [end_date_ymd] => 2025-01-30 00:42:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:42:05' and `end` < '2025-01-30 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-30 00:42:19] Production.INFO: count ==6164 [2025-01-30 00:42:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:42:05 - End Time 2025-01-30 00:42:05 [2025-01-30 00:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360059', 'tblTempUsageDetail_20' ) start [2025-01-30 00:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360059', 'tblTempUsageDetail_20' ) end [2025-01-30 00:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360059', 'tblTempVendorCDR_20' ) start [2025-01-30 00:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360059', 'tblTempVendorCDR_20' ) end [2025-01-30 00:42:23] Production.INFO: ProcessCDR(1,14360059,1,1,2) [2025-01-30 00:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360059', 'tblTempUsageDetail_20' ) start [2025-01-30 00:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360059', 'tblTempUsageDetail_20' ) end [2025-01-30 00:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:42:28] Production.INFO: ==29355== Releasing lock... [2025-01-30 00:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:42:28] Production.INFO: 74 MB #Memory Used# [2025-01-30 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:43:05 [end_date_ymd] => 2025-01-30 00:43:05 [RateCDR] => 1 ) [2025-01-30 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:43:05' and `end` < '2025-01-30 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:43:18] Production.INFO: count ==6117 [2025-01-30 00:43:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:43:05 - End Time 2025-01-30 00:43:05 [2025-01-30 00:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360064', 'tblTempUsageDetail_20' ) start [2025-01-30 00:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360064', 'tblTempUsageDetail_20' ) end [2025-01-30 00:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360064', 'tblTempVendorCDR_20' ) start [2025-01-30 00:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360064', 'tblTempVendorCDR_20' ) end [2025-01-30 00:43:22] Production.INFO: ProcessCDR(1,14360064,1,1,2) [2025-01-30 00:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360064', 'tblTempUsageDetail_20' ) start [2025-01-30 00:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360064', 'tblTempUsageDetail_20' ) end [2025-01-30 00:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:43:25] Production.INFO: ==29436== Releasing lock... [2025-01-30 00:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:43:25] Production.INFO: 73.5 MB #Memory Used# [2025-01-30 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:44:05 [end_date_ymd] => 2025-01-30 00:44:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:44:05' and `end` < '2025-01-30 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-30 00:44:18] Production.INFO: count ==6040 [2025-01-30 00:44:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:44:05 - End Time 2025-01-30 00:44:05 [2025-01-30 00:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360069', 'tblTempUsageDetail_20' ) start [2025-01-30 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360069', 'tblTempUsageDetail_20' ) end [2025-01-30 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360069', 'tblTempVendorCDR_20' ) start [2025-01-30 00:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360069', 'tblTempVendorCDR_20' ) end [2025-01-30 00:44:22] Production.INFO: ProcessCDR(1,14360069,1,1,2) [2025-01-30 00:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360069', 'tblTempUsageDetail_20' ) start [2025-01-30 00:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360069', 'tblTempUsageDetail_20' ) end [2025-01-30 00:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:44:27] Production.INFO: ==29514== Releasing lock... [2025-01-30 00:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:44:27] Production.INFO: 73 MB #Memory Used# [2025-01-30 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:45:04 [end_date_ymd] => 2025-01-30 00:45:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:45:04' and `end` < '2025-01-30 00: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-30 00:45:18] Production.INFO: count ==5972 [2025-01-30 00:45:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:45:04 - End Time 2025-01-30 00:45:04 [2025-01-30 00:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360074', 'tblTempUsageDetail_20' ) start [2025-01-30 00:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360074', 'tblTempUsageDetail_20' ) end [2025-01-30 00:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360074', 'tblTempVendorCDR_20' ) start [2025-01-30 00:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360074', 'tblTempVendorCDR_20' ) end [2025-01-30 00:45:21] Production.INFO: ProcessCDR(1,14360074,1,1,2) [2025-01-30 00:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360074', 'tblTempUsageDetail_20' ) start [2025-01-30 00:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360074', 'tblTempUsageDetail_20' ) end [2025-01-30 00:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:45:24] Production.INFO: ==29598== Releasing lock... [2025-01-30 00:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:45:24] Production.INFO: 72.5 MB #Memory Used# [2025-01-30 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:46:05 [end_date_ymd] => 2025-01-30 00:46:05 [RateCDR] => 1 ) [2025-01-30 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:46:05' and `end` < '2025-01-30 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:46:18] Production.INFO: count ==5901 [2025-01-30 00:46:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:46:05 - End Time 2025-01-30 00:46:05 [2025-01-30 00:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360079', 'tblTempUsageDetail_20' ) start [2025-01-30 00:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360079', 'tblTempUsageDetail_20' ) end [2025-01-30 00:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360079', 'tblTempVendorCDR_20' ) start [2025-01-30 00:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360079', 'tblTempVendorCDR_20' ) end [2025-01-30 00:46:21] Production.INFO: ProcessCDR(1,14360079,1,1,2) [2025-01-30 00:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360079', 'tblTempUsageDetail_20' ) start [2025-01-30 00:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360079', 'tblTempUsageDetail_20' ) end [2025-01-30 00:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:46:25] Production.INFO: ==29673== Releasing lock... [2025-01-30 00:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:46:25] Production.INFO: 72 MB #Memory Used# [2025-01-30 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:47:05 [end_date_ymd] => 2025-01-30 00:47:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:47:05' and `end` < '2025-01-30 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-30 00:47:18] Production.INFO: count ==5831 [2025-01-30 00:47:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:47:05 - End Time 2025-01-30 00:47:05 [2025-01-30 00:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360084', 'tblTempUsageDetail_20' ) start [2025-01-30 00:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360084', 'tblTempUsageDetail_20' ) end [2025-01-30 00:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360084', 'tblTempVendorCDR_20' ) start [2025-01-30 00:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360084', 'tblTempVendorCDR_20' ) end [2025-01-30 00:47:22] Production.INFO: ProcessCDR(1,14360084,1,1,2) [2025-01-30 00:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360084', 'tblTempUsageDetail_20' ) start [2025-01-30 00:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360084', 'tblTempUsageDetail_20' ) end [2025-01-30 00:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:47:25] Production.INFO: ==29754== Releasing lock... [2025-01-30 00:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:47:25] Production.INFO: 71.5 MB #Memory Used# [2025-01-30 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:48:05 [end_date_ymd] => 2025-01-30 00:48:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:48:05' and `end` < '2025-01-30 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-30 00:48:19] Production.INFO: count ==5764 [2025-01-30 00:48:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:48:05 - End Time 2025-01-30 00:48:05 [2025-01-30 00:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360089', 'tblTempUsageDetail_20' ) start [2025-01-30 00:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360089', 'tblTempUsageDetail_20' ) end [2025-01-30 00:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360089', 'tblTempVendorCDR_20' ) start [2025-01-30 00:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360089', 'tblTempVendorCDR_20' ) end [2025-01-30 00:48:22] Production.INFO: ProcessCDR(1,14360089,1,1,2) [2025-01-30 00:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360089', 'tblTempUsageDetail_20' ) start [2025-01-30 00:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360089', 'tblTempUsageDetail_20' ) end [2025-01-30 00:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:48:25] Production.INFO: ==29829== Releasing lock... [2025-01-30 00:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:48:25] Production.INFO: 71 MB #Memory Used# [2025-01-30 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:49:05 [end_date_ymd] => 2025-01-30 00:49:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:49:05' and `end` < '2025-01-30 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-30 00:49:19] Production.INFO: count ==5706 [2025-01-30 00:49:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:49:05 - End Time 2025-01-30 00:49:05 [2025-01-30 00:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360094', 'tblTempUsageDetail_20' ) start [2025-01-30 00:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360094', 'tblTempUsageDetail_20' ) end [2025-01-30 00:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360094', 'tblTempVendorCDR_20' ) start [2025-01-30 00:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360094', 'tblTempVendorCDR_20' ) end [2025-01-30 00:49:23] Production.INFO: ProcessCDR(1,14360094,1,1,2) [2025-01-30 00:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360094', 'tblTempUsageDetail_20' ) start [2025-01-30 00:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360094', 'tblTempUsageDetail_20' ) end [2025-01-30 00:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:49:27] Production.INFO: ==29914== Releasing lock... [2025-01-30 00:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:49:27] Production.INFO: 70.5 MB #Memory Used# [2025-01-30 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:50:06 [end_date_ymd] => 2025-01-30 00:50:06 [RateCDR] => 1 ) [2025-01-30 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:50:06' and `end` < '2025-01-30 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:50:19] Production.INFO: count ==5647 [2025-01-30 00:50:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:50:06 - End Time 2025-01-30 00:50:06 [2025-01-30 00:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360100', 'tblTempUsageDetail_20' ) start [2025-01-30 00:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360100', 'tblTempUsageDetail_20' ) end [2025-01-30 00:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360100', 'tblTempVendorCDR_20' ) start [2025-01-30 00:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360100', 'tblTempVendorCDR_20' ) end [2025-01-30 00:50:22] Production.INFO: ProcessCDR(1,14360100,1,1,2) [2025-01-30 00:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360100', 'tblTempUsageDetail_20' ) start [2025-01-30 00:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360100', 'tblTempUsageDetail_20' ) end [2025-01-30 00:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:50:25] Production.INFO: ==29999== Releasing lock... [2025-01-30 00:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:50:25] Production.INFO: 70 MB #Memory Used# [2025-01-30 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:51:05 [end_date_ymd] => 2025-01-30 00:51:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:51:05' and `end` < '2025-01-30 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-30 00:51:20] Production.INFO: count ==5601 [2025-01-30 00:51:23] Production.ERROR: pbx CDR StartTime 2025-01-29 21:51:05 - End Time 2025-01-30 00:51:05 [2025-01-30 00:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360105', 'tblTempUsageDetail_20' ) start [2025-01-30 00:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360105', 'tblTempUsageDetail_20' ) end [2025-01-30 00:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360105', 'tblTempVendorCDR_20' ) start [2025-01-30 00:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360105', 'tblTempVendorCDR_20' ) end [2025-01-30 00:51:23] Production.INFO: ProcessCDR(1,14360105,1,1,2) [2025-01-30 00:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360105', 'tblTempUsageDetail_20' ) start [2025-01-30 00:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360105', 'tblTempUsageDetail_20' ) end [2025-01-30 00:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:51:26] Production.INFO: ==30087== Releasing lock... [2025-01-30 00:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:51:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-30 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:52:05 [end_date_ymd] => 2025-01-30 00:52:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:52:05' and `end` < '2025-01-30 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-30 00:52:19] Production.INFO: count ==5540 [2025-01-30 00:52:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:52:05 - End Time 2025-01-30 00:52:05 [2025-01-30 00:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360110', 'tblTempUsageDetail_20' ) start [2025-01-30 00:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360110', 'tblTempUsageDetail_20' ) end [2025-01-30 00:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360110', 'tblTempVendorCDR_20' ) start [2025-01-30 00:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360110', 'tblTempVendorCDR_20' ) end [2025-01-30 00:52:22] Production.INFO: ProcessCDR(1,14360110,1,1,2) [2025-01-30 00:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360110', 'tblTempUsageDetail_20' ) start [2025-01-30 00:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360110', 'tblTempUsageDetail_20' ) end [2025-01-30 00:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:52:25] Production.INFO: ==30165== Releasing lock... [2025-01-30 00:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:52:25] Production.INFO: 69.25 MB #Memory Used# [2025-01-30 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:53:05 [end_date_ymd] => 2025-01-30 00:53:05 [RateCDR] => 1 ) [2025-01-30 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 21:53:05' and `end` < '2025-01-30 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 00:53:18] Production.INFO: count ==5465 [2025-01-30 00:53:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:53:05 - End Time 2025-01-30 00:53:05 [2025-01-30 00:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360115', 'tblTempUsageDetail_20' ) start [2025-01-30 00:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360115', 'tblTempUsageDetail_20' ) end [2025-01-30 00:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360115', 'tblTempVendorCDR_20' ) start [2025-01-30 00:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360115', 'tblTempVendorCDR_20' ) end [2025-01-30 00:53:21] Production.INFO: ProcessCDR(1,14360115,1,1,2) [2025-01-30 00:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360115', 'tblTempUsageDetail_20' ) start [2025-01-30 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360115', 'tblTempUsageDetail_20' ) end [2025-01-30 00:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:53:24] Production.INFO: ==30248== Releasing lock... [2025-01-30 00:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:53:24] Production.INFO: 68.75 MB #Memory Used# [2025-01-30 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:54:05 [end_date_ymd] => 2025-01-30 00:54:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:54:05' and `end` < '2025-01-30 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-30 00:54:18] Production.INFO: count ==5439 [2025-01-30 00:54:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:54:05 - End Time 2025-01-30 00:54:05 [2025-01-30 00:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360120', 'tblTempUsageDetail_20' ) start [2025-01-30 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360120', 'tblTempUsageDetail_20' ) end [2025-01-30 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360120', 'tblTempVendorCDR_20' ) start [2025-01-30 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360120', 'tblTempVendorCDR_20' ) end [2025-01-30 00:54:21] Production.INFO: ProcessCDR(1,14360120,1,1,2) [2025-01-30 00:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360120', 'tblTempUsageDetail_20' ) start [2025-01-30 00:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360120', 'tblTempUsageDetail_20' ) end [2025-01-30 00:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:54:24] Production.INFO: ==30331== Releasing lock... [2025-01-30 00:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:54:24] Production.INFO: 68.5 MB #Memory Used# [2025-01-30 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:55:04 [end_date_ymd] => 2025-01-30 00:55:04 [RateCDR] => 1 ) [2025-01-30 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-29 21:55:04' and `end` < '2025-01-30 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-30 00:55:18] Production.INFO: count ==5364 [2025-01-30 00:55:20] Production.ERROR: pbx CDR StartTime 2025-01-29 21:55:04 - End Time 2025-01-30 00:55:04 [2025-01-30 00:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360125', 'tblTempUsageDetail_20' ) start [2025-01-30 00:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360125', 'tblTempUsageDetail_20' ) end [2025-01-30 00:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360125', 'tblTempVendorCDR_20' ) start [2025-01-30 00:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360125', 'tblTempVendorCDR_20' ) end [2025-01-30 00:55:21] Production.INFO: ProcessCDR(1,14360125,1,1,2) [2025-01-30 00:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360125', 'tblTempUsageDetail_20' ) start [2025-01-30 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360125', 'tblTempUsageDetail_20' ) end [2025-01-30 00:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:55:24] Production.INFO: ==30407== Releasing lock... [2025-01-30 00:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:55:24] Production.INFO: 68 MB #Memory Used# [2025-01-30 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:56:05 [end_date_ymd] => 2025-01-30 00:56:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:56:05' and `end` < '2025-01-30 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-30 00:56:18] Production.INFO: count ==5338 [2025-01-30 00:56:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:56:05 - End Time 2025-01-30 00:56:05 [2025-01-30 00:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360130', 'tblTempUsageDetail_20' ) start [2025-01-30 00:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360130', 'tblTempUsageDetail_20' ) end [2025-01-30 00:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360130', 'tblTempVendorCDR_20' ) start [2025-01-30 00:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360130', 'tblTempVendorCDR_20' ) end [2025-01-30 00:56:21] Production.INFO: ProcessCDR(1,14360130,1,1,2) [2025-01-30 00:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360130', 'tblTempUsageDetail_20' ) start [2025-01-30 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360130', 'tblTempUsageDetail_20' ) end [2025-01-30 00:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:56:24] Production.INFO: ==30490== Releasing lock... [2025-01-30 00:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:56:24] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:57:04 [end_date_ymd] => 2025-01-30 00:57:04 [RateCDR] => 1 ) [2025-01-30 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-29 21:57:04' and `end` < '2025-01-30 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-30 00:57:17] Production.INFO: count ==5270 [2025-01-30 00:57:20] Production.ERROR: pbx CDR StartTime 2025-01-29 21:57:04 - End Time 2025-01-30 00:57:04 [2025-01-30 00:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360135', 'tblTempUsageDetail_20' ) start [2025-01-30 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360135', 'tblTempUsageDetail_20' ) end [2025-01-30 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360135', 'tblTempVendorCDR_20' ) start [2025-01-30 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360135', 'tblTempVendorCDR_20' ) end [2025-01-30 00:57:20] Production.INFO: ProcessCDR(1,14360135,1,1,2) [2025-01-30 00:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360135', 'tblTempUsageDetail_20' ) start [2025-01-30 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360135', 'tblTempUsageDetail_20' ) end [2025-01-30 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:57:23] Production.INFO: ==30608== Releasing lock... [2025-01-30 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:57:23] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:58:04 [end_date_ymd] => 2025-01-30 00:58:04 [RateCDR] => 1 ) [2025-01-30 00: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-29 21:58:04' and `end` < '2025-01-30 00: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-30 00:58:18] Production.INFO: count ==5312 [2025-01-30 00:58:21] Production.ERROR: pbx CDR StartTime 2025-01-29 21:58:04 - End Time 2025-01-30 00:58:04 [2025-01-30 00:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360140', 'tblTempUsageDetail_20' ) start [2025-01-30 00:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360140', 'tblTempUsageDetail_20' ) end [2025-01-30 00:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360140', 'tblTempVendorCDR_20' ) start [2025-01-30 00:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360140', 'tblTempVendorCDR_20' ) end [2025-01-30 00:58:21] Production.INFO: ProcessCDR(1,14360140,1,1,2) [2025-01-30 00:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360140', 'tblTempUsageDetail_20' ) start [2025-01-30 00:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360140', 'tblTempUsageDetail_20' ) end [2025-01-30 00:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:58:24] Production.INFO: ==30685== Releasing lock... [2025-01-30 00:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:58:24] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 21:59:05 [end_date_ymd] => 2025-01-30 00:59:05 [RateCDR] => 1 ) [2025-01-30 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-29 21:59:05' and `end` < '2025-01-30 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-30 00:59:19] Production.INFO: count ==5247 [2025-01-30 00:59:22] Production.ERROR: pbx CDR StartTime 2025-01-29 21:59:05 - End Time 2025-01-30 00:59:05 [2025-01-30 00:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 00:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360145', 'tblTempUsageDetail_20' ) start [2025-01-30 00:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360145', 'tblTempUsageDetail_20' ) end [2025-01-30 00:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360145', 'tblTempVendorCDR_20' ) start [2025-01-30 00:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360145', 'tblTempVendorCDR_20' ) end [2025-01-30 00:59:22] Production.INFO: ProcessCDR(1,14360145,1,1,2) [2025-01-30 00:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 00:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 00:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360145', 'tblTempUsageDetail_20' ) start [2025-01-30 00:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360145', 'tblTempUsageDetail_20' ) end [2025-01-30 00:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 00:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 00:59:25] Production.INFO: ==30767== Releasing lock... [2025-01-30 00:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 00:59:25] Production.INFO: 67 MB #Memory Used# [2025-01-30 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:00:06 [end_date_ymd] => 2025-01-30 01:00:06 [RateCDR] => 1 ) [2025-01-30 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:00:06' and `end` < '2025-01-30 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:00:19] Production.INFO: count ==5179 [2025-01-30 01:00:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:00:06 - End Time 2025-01-30 01:00:06 [2025-01-30 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360151', 'tblTempUsageDetail_20' ) start [2025-01-30 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360151', 'tblTempUsageDetail_20' ) end [2025-01-30 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360151', 'tblTempVendorCDR_20' ) start [2025-01-30 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360151', 'tblTempVendorCDR_20' ) end [2025-01-30 01:00:22] Production.INFO: ProcessCDR(1,14360151,1,1,2) [2025-01-30 01:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360151', 'tblTempUsageDetail_20' ) start [2025-01-30 01:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360151', 'tblTempUsageDetail_20' ) end [2025-01-30 01:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:00:25] Production.INFO: ==30857== Releasing lock... [2025-01-30 01:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:00:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:01:05 [end_date_ymd] => 2025-01-30 01:01:05 [RateCDR] => 1 ) [2025-01-30 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:01:05' and `end` < '2025-01-30 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:01:18] Production.INFO: count ==5121 [2025-01-30 01:01:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:01:05 - End Time 2025-01-30 01:01:05 [2025-01-30 01:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360156', 'tblTempUsageDetail_20' ) start [2025-01-30 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360156', 'tblTempUsageDetail_20' ) end [2025-01-30 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360156', 'tblTempVendorCDR_20' ) start [2025-01-30 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360156', 'tblTempVendorCDR_20' ) end [2025-01-30 01:01:21] Production.INFO: ProcessCDR(1,14360156,1,1,2) [2025-01-30 01:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360156', 'tblTempUsageDetail_20' ) start [2025-01-30 01:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360156', 'tblTempUsageDetail_20' ) end [2025-01-30 01:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:01:25] Production.INFO: ==30959== Releasing lock... [2025-01-30 01:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:01:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:02:05 [end_date_ymd] => 2025-01-30 01:02:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:02:05' and `end` < '2025-01-30 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-30 01:02:18] Production.INFO: count ==5042 [2025-01-30 01:02:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:02:05 - End Time 2025-01-30 01:02:05 [2025-01-30 01:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360161', 'tblTempUsageDetail_20' ) start [2025-01-30 01:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360161', 'tblTempUsageDetail_20' ) end [2025-01-30 01:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360161', 'tblTempVendorCDR_20' ) start [2025-01-30 01:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360161', 'tblTempVendorCDR_20' ) end [2025-01-30 01:02:21] Production.INFO: ProcessCDR(1,14360161,1,1,2) [2025-01-30 01:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360161', 'tblTempUsageDetail_20' ) start [2025-01-30 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360161', 'tblTempUsageDetail_20' ) end [2025-01-30 01:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:02:24] Production.INFO: ==31044== Releasing lock... [2025-01-30 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:02:24] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:03:05 [end_date_ymd] => 2025-01-30 01:03:05 [RateCDR] => 1 ) [2025-01-30 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:03:05' and `end` < '2025-01-30 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:03:18] Production.INFO: count ==4965 [2025-01-30 01:03:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:03:05 - End Time 2025-01-30 01:03:05 [2025-01-30 01:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360166', 'tblTempUsageDetail_20' ) start [2025-01-30 01:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360166', 'tblTempUsageDetail_20' ) end [2025-01-30 01:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360166', 'tblTempVendorCDR_20' ) start [2025-01-30 01:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360166', 'tblTempVendorCDR_20' ) end [2025-01-30 01:03:21] Production.INFO: ProcessCDR(1,14360166,1,1,2) [2025-01-30 01:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360166', 'tblTempUsageDetail_20' ) start [2025-01-30 01:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360166', 'tblTempUsageDetail_20' ) end [2025-01-30 01:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:03:24] Production.INFO: ==31129== Releasing lock... [2025-01-30 01:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:03:24] Production.INFO: 65 MB #Memory Used# [2025-01-30 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:04:05 [end_date_ymd] => 2025-01-30 01:04:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:04:05' and `end` < '2025-01-30 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-30 01:04:19] Production.INFO: count ==4910 [2025-01-30 01:04:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:04:05 - End Time 2025-01-30 01:04:05 [2025-01-30 01:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360171', 'tblTempUsageDetail_20' ) start [2025-01-30 01:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360171', 'tblTempUsageDetail_20' ) end [2025-01-30 01:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360171', 'tblTempVendorCDR_20' ) start [2025-01-30 01:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360171', 'tblTempVendorCDR_20' ) end [2025-01-30 01:04:22] Production.INFO: ProcessCDR(1,14360171,1,1,2) [2025-01-30 01:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360171', 'tblTempUsageDetail_20' ) start [2025-01-30 01:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360171', 'tblTempUsageDetail_20' ) end [2025-01-30 01:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:04:25] Production.INFO: ==31218== Releasing lock... [2025-01-30 01:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:04:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-30 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:05:04 [end_date_ymd] => 2025-01-30 01:05:04 [RateCDR] => 1 ) [2025-01-30 01: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-29 22:05:04' and `end` < '2025-01-30 01: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-30 01:05:17] Production.INFO: count ==4849 [2025-01-30 01:05:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:05:04 - End Time 2025-01-30 01:05:04 [2025-01-30 01:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360176', 'tblTempUsageDetail_20' ) start [2025-01-30 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360176', 'tblTempUsageDetail_20' ) end [2025-01-30 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360176', 'tblTempVendorCDR_20' ) start [2025-01-30 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360176', 'tblTempVendorCDR_20' ) end [2025-01-30 01:05:20] Production.INFO: ProcessCDR(1,14360176,1,1,2) [2025-01-30 01:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360176', 'tblTempUsageDetail_20' ) start [2025-01-30 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360176', 'tblTempUsageDetail_20' ) end [2025-01-30 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:05:23] Production.INFO: ==31305== Releasing lock... [2025-01-30 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:05:23] Production.INFO: 64 MB #Memory Used# [2025-01-30 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:06:05 [end_date_ymd] => 2025-01-30 01:06:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:06:05' and `end` < '2025-01-30 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-30 01:06:18] Production.INFO: count ==4789 [2025-01-30 01:06:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:06:05 - End Time 2025-01-30 01:06:05 [2025-01-30 01:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360181', 'tblTempUsageDetail_20' ) start [2025-01-30 01:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360181', 'tblTempUsageDetail_20' ) end [2025-01-30 01:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360181', 'tblTempVendorCDR_20' ) start [2025-01-30 01:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360181', 'tblTempVendorCDR_20' ) end [2025-01-30 01:06:21] Production.INFO: ProcessCDR(1,14360181,1,1,2) [2025-01-30 01:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360181', 'tblTempUsageDetail_20' ) start [2025-01-30 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360181', 'tblTempUsageDetail_20' ) end [2025-01-30 01:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:06:24] Production.INFO: ==31390== Releasing lock... [2025-01-30 01:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:06:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:07:05 [end_date_ymd] => 2025-01-30 01:07:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:07:05' and `end` < '2025-01-30 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-30 01:07:19] Production.INFO: count ==4729 [2025-01-30 01:07:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:07:05 - End Time 2025-01-30 01:07:05 [2025-01-30 01:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360186', 'tblTempUsageDetail_20' ) start [2025-01-30 01:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360186', 'tblTempUsageDetail_20' ) end [2025-01-30 01:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360186', 'tblTempVendorCDR_20' ) start [2025-01-30 01:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360186', 'tblTempVendorCDR_20' ) end [2025-01-30 01:07:21] Production.INFO: ProcessCDR(1,14360186,1,1,2) [2025-01-30 01:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360186', 'tblTempUsageDetail_20' ) start [2025-01-30 01:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360186', 'tblTempUsageDetail_20' ) end [2025-01-30 01:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:07:24] Production.INFO: ==31480== Releasing lock... [2025-01-30 01:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:07:24] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:08:05 [end_date_ymd] => 2025-01-30 01:08:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:08:05' and `end` < '2025-01-30 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-30 01:08:19] Production.INFO: count ==4667 [2025-01-30 01:08:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:08:05 - End Time 2025-01-30 01:08:05 [2025-01-30 01:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360191', 'tblTempUsageDetail_20' ) start [2025-01-30 01:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360191', 'tblTempUsageDetail_20' ) end [2025-01-30 01:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360191', 'tblTempVendorCDR_20' ) start [2025-01-30 01:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360191', 'tblTempVendorCDR_20' ) end [2025-01-30 01:08:22] Production.INFO: ProcessCDR(1,14360191,1,1,2) [2025-01-30 01:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360191', 'tblTempUsageDetail_20' ) start [2025-01-30 01:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360191', 'tblTempUsageDetail_20' ) end [2025-01-30 01:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:08:24] Production.INFO: ==31567== Releasing lock... [2025-01-30 01:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:08:24] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:09:05 [end_date_ymd] => 2025-01-30 01:09:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:09:05' and `end` < '2025-01-30 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-30 01:09:18] Production.INFO: count ==4604 [2025-01-30 01:09:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:09:05 - End Time 2025-01-30 01:09:05 [2025-01-30 01:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360196', 'tblTempUsageDetail_20' ) start [2025-01-30 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360196', 'tblTempUsageDetail_20' ) end [2025-01-30 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360196', 'tblTempVendorCDR_20' ) start [2025-01-30 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360196', 'tblTempVendorCDR_20' ) end [2025-01-30 01:09:20] Production.INFO: ProcessCDR(1,14360196,1,1,2) [2025-01-30 01:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360196', 'tblTempUsageDetail_20' ) start [2025-01-30 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360196', 'tblTempUsageDetail_20' ) end [2025-01-30 01:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:09:23] Production.INFO: ==31652== Releasing lock... [2025-01-30 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:09:23] Production.INFO: 62.25 MB #Memory Used# [2025-01-30 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:10:06 [end_date_ymd] => 2025-01-30 01:10:06 [RateCDR] => 1 ) [2025-01-30 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-29 22:10:06' and `end` < '2025-01-30 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-30 01:10:19] Production.INFO: count ==4548 [2025-01-30 01:10:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:10:06 - End Time 2025-01-30 01:10:06 [2025-01-30 01:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360202', 'tblTempUsageDetail_20' ) start [2025-01-30 01:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360202', 'tblTempUsageDetail_20' ) end [2025-01-30 01:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360202', 'tblTempVendorCDR_20' ) start [2025-01-30 01:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360202', 'tblTempVendorCDR_20' ) end [2025-01-30 01:10:21] Production.INFO: ProcessCDR(1,14360202,1,1,2) [2025-01-30 01:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360202', 'tblTempUsageDetail_20' ) start [2025-01-30 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360202', 'tblTempUsageDetail_20' ) end [2025-01-30 01:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:10:24] Production.INFO: ==31738== Releasing lock... [2025-01-30 01:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:10:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-30 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:11:05 [end_date_ymd] => 2025-01-30 01:11:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:11:05' and `end` < '2025-01-30 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-30 01:11:19] Production.INFO: count ==4490 [2025-01-30 01:11:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:11:05 - End Time 2025-01-30 01:11:05 [2025-01-30 01:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360207', 'tblTempUsageDetail_20' ) start [2025-01-30 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360207', 'tblTempUsageDetail_20' ) end [2025-01-30 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360207', 'tblTempVendorCDR_20' ) start [2025-01-30 01:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360207', 'tblTempVendorCDR_20' ) end [2025-01-30 01:11:21] Production.INFO: ProcessCDR(1,14360207,1,1,2) [2025-01-30 01:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360207', 'tblTempUsageDetail_20' ) start [2025-01-30 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360207', 'tblTempUsageDetail_20' ) end [2025-01-30 01:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:11:24] Production.INFO: ==31831== Releasing lock... [2025-01-30 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:11:24] Production.INFO: 61.5 MB #Memory Used# [2025-01-30 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:12:05 [end_date_ymd] => 2025-01-30 01:12:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:12:05' and `end` < '2025-01-30 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-30 01:12:18] Production.INFO: count ==4434 [2025-01-30 01:12:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:12:05 - End Time 2025-01-30 01:12:05 [2025-01-30 01:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360212', 'tblTempUsageDetail_20' ) start [2025-01-30 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360212', 'tblTempUsageDetail_20' ) end [2025-01-30 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360212', 'tblTempVendorCDR_20' ) start [2025-01-30 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360212', 'tblTempVendorCDR_20' ) end [2025-01-30 01:12:20] Production.INFO: ProcessCDR(1,14360212,1,1,2) [2025-01-30 01:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360212', 'tblTempUsageDetail_20' ) start [2025-01-30 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360212', 'tblTempUsageDetail_20' ) end [2025-01-30 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:12:23] Production.INFO: ==31954== Releasing lock... [2025-01-30 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:12:23] Production.INFO: 61 MB #Memory Used# [2025-01-30 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:13:04 [end_date_ymd] => 2025-01-30 01:13:04 [RateCDR] => 1 ) [2025-01-30 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-29 22:13:04' and `end` < '2025-01-30 01: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-30 01:13:18] Production.INFO: count ==4376 [2025-01-30 01:13:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:13:04 - End Time 2025-01-30 01:13:04 [2025-01-30 01:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360217', 'tblTempUsageDetail_20' ) start [2025-01-30 01:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360217', 'tblTempUsageDetail_20' ) end [2025-01-30 01:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360217', 'tblTempVendorCDR_20' ) start [2025-01-30 01:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360217', 'tblTempVendorCDR_20' ) end [2025-01-30 01:13:20] Production.INFO: ProcessCDR(1,14360217,1,1,2) [2025-01-30 01:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360217', 'tblTempUsageDetail_20' ) start [2025-01-30 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360217', 'tblTempUsageDetail_20' ) end [2025-01-30 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:13:23] Production.INFO: ==32036== Releasing lock... [2025-01-30 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:13:23] Production.INFO: 60.5 MB #Memory Used# [2025-01-30 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:14:05 [end_date_ymd] => 2025-01-30 01:14:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:14:05' and `end` < '2025-01-30 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-30 01:14:18] Production.INFO: count ==4324 [2025-01-30 01:14:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:14:05 - End Time 2025-01-30 01:14:05 [2025-01-30 01:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360222', 'tblTempUsageDetail_20' ) start [2025-01-30 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360222', 'tblTempUsageDetail_20' ) end [2025-01-30 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360222', 'tblTempVendorCDR_20' ) start [2025-01-30 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360222', 'tblTempVendorCDR_20' ) end [2025-01-30 01:14:20] Production.INFO: ProcessCDR(1,14360222,1,1,2) [2025-01-30 01:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360222', 'tblTempUsageDetail_20' ) start [2025-01-30 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360222', 'tblTempUsageDetail_20' ) end [2025-01-30 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:14:23] Production.INFO: ==32126== Releasing lock... [2025-01-30 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:14:23] Production.INFO: 60.25 MB #Memory Used# [2025-01-30 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:15:05 [end_date_ymd] => 2025-01-30 01:15:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:15:05' and `end` < '2025-01-30 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-30 01:15:18] Production.INFO: count ==4285 [2025-01-30 01:15:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:15:05 - End Time 2025-01-30 01:15:05 [2025-01-30 01:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360227', 'tblTempUsageDetail_20' ) start [2025-01-30 01:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360227', 'tblTempUsageDetail_20' ) end [2025-01-30 01:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360227', 'tblTempVendorCDR_20' ) start [2025-01-30 01:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360227', 'tblTempVendorCDR_20' ) end [2025-01-30 01:15:20] Production.INFO: ProcessCDR(1,14360227,1,1,2) [2025-01-30 01:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360227', 'tblTempUsageDetail_20' ) start [2025-01-30 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360227', 'tblTempUsageDetail_20' ) end [2025-01-30 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:15:23] Production.INFO: ==32211== Releasing lock... [2025-01-30 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:15:23] Production.INFO: 60 MB #Memory Used# [2025-01-30 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:16:05 [end_date_ymd] => 2025-01-30 01:16:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:16:05' and `end` < '2025-01-30 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-30 01:16:19] Production.INFO: count ==4214 [2025-01-30 01:16:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:16:05 - End Time 2025-01-30 01:16:05 [2025-01-30 01:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360232', 'tblTempUsageDetail_20' ) start [2025-01-30 01:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360232', 'tblTempUsageDetail_20' ) end [2025-01-30 01:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360232', 'tblTempVendorCDR_20' ) start [2025-01-30 01:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360232', 'tblTempVendorCDR_20' ) end [2025-01-30 01:16:21] Production.INFO: ProcessCDR(1,14360232,1,1,2) [2025-01-30 01:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360232', 'tblTempUsageDetail_20' ) start [2025-01-30 01:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360232', 'tblTempUsageDetail_20' ) end [2025-01-30 01:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:16:24] Production.INFO: ==32286== Releasing lock... [2025-01-30 01:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:16:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:17:05 [end_date_ymd] => 2025-01-30 01:17:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:17:05' and `end` < '2025-01-30 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-30 01:17:19] Production.INFO: count ==4155 [2025-01-30 01:17:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:17:05 - End Time 2025-01-30 01:17:05 [2025-01-30 01:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360237', 'tblTempUsageDetail_20' ) start [2025-01-30 01:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360237', 'tblTempUsageDetail_20' ) end [2025-01-30 01:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360237', 'tblTempVendorCDR_20' ) start [2025-01-30 01:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360237', 'tblTempVendorCDR_20' ) end [2025-01-30 01:17:21] Production.INFO: ProcessCDR(1,14360237,1,1,2) [2025-01-30 01:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360237', 'tblTempUsageDetail_20' ) start [2025-01-30 01:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360237', 'tblTempUsageDetail_20' ) end [2025-01-30 01:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:17:24] Production.INFO: ==32367== Releasing lock... [2025-01-30 01:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:17:24] Production.INFO: 59 MB #Memory Used# [2025-01-30 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:18:05 [end_date_ymd] => 2025-01-30 01:18:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:18:05' and `end` < '2025-01-30 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-30 01:18:17] Production.INFO: count ==4090 [2025-01-30 01:18:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:18:05 - End Time 2025-01-30 01:18:05 [2025-01-30 01:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360242', 'tblTempUsageDetail_20' ) start [2025-01-30 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360242', 'tblTempUsageDetail_20' ) end [2025-01-30 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360242', 'tblTempVendorCDR_20' ) start [2025-01-30 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360242', 'tblTempVendorCDR_20' ) end [2025-01-30 01:18:20] Production.INFO: ProcessCDR(1,14360242,1,1,2) [2025-01-30 01:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360242', 'tblTempUsageDetail_20' ) start [2025-01-30 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360242', 'tblTempUsageDetail_20' ) end [2025-01-30 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:18:23] Production.INFO: ==32456== Releasing lock... [2025-01-30 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:18:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-30 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:19:05 [end_date_ymd] => 2025-01-30 01:19:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:19:05' and `end` < '2025-01-30 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-30 01:19:18] Production.INFO: count ==4049 [2025-01-30 01:19:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:19:05 - End Time 2025-01-30 01:19:05 [2025-01-30 01:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360247', 'tblTempUsageDetail_20' ) start [2025-01-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360247', 'tblTempUsageDetail_20' ) end [2025-01-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360247', 'tblTempVendorCDR_20' ) start [2025-01-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360247', 'tblTempVendorCDR_20' ) end [2025-01-30 01:19:21] Production.INFO: ProcessCDR(1,14360247,1,1,2) [2025-01-30 01:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360247', 'tblTempUsageDetail_20' ) start [2025-01-30 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360247', 'tblTempUsageDetail_20' ) end [2025-01-30 01:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:19:24] Production.INFO: ==32543== Releasing lock... [2025-01-30 01:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:19:24] Production.INFO: 58 MB #Memory Used# [2025-01-30 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:20:06 [end_date_ymd] => 2025-01-30 01:20:06 [RateCDR] => 1 ) [2025-01-30 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-29 22:20:06' and `end` < '2025-01-30 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-30 01:20:19] Production.INFO: count ==3992 [2025-01-30 01:20:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:20:06 - End Time 2025-01-30 01:20:06 [2025-01-30 01:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360253', 'tblTempUsageDetail_20' ) start [2025-01-30 01:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360253', 'tblTempUsageDetail_20' ) end [2025-01-30 01:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360253', 'tblTempVendorCDR_20' ) start [2025-01-30 01:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360253', 'tblTempVendorCDR_20' ) end [2025-01-30 01:20:21] Production.INFO: ProcessCDR(1,14360253,1,1,2) [2025-01-30 01:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360253', 'tblTempUsageDetail_20' ) start [2025-01-30 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360253', 'tblTempUsageDetail_20' ) end [2025-01-30 01:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:20:24] Production.INFO: ==32631== Releasing lock... [2025-01-30 01:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:20:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:21:04 [end_date_ymd] => 2025-01-30 01:21:04 [RateCDR] => 1 ) [2025-01-30 01: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-29 22:21:04' and `end` < '2025-01-30 01: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-30 01:21:17] Production.INFO: count ==3929 [2025-01-30 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:21:04 - End Time 2025-01-30 01:21:04 [2025-01-30 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360258', 'tblTempUsageDetail_20' ) start [2025-01-30 01:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360258', 'tblTempUsageDetail_20' ) end [2025-01-30 01:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360258', 'tblTempVendorCDR_20' ) start [2025-01-30 01:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360258', 'tblTempVendorCDR_20' ) end [2025-01-30 01:21:20] Production.INFO: ProcessCDR(1,14360258,1,1,2) [2025-01-30 01:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360258', 'tblTempUsageDetail_20' ) start [2025-01-30 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360258', 'tblTempUsageDetail_20' ) end [2025-01-30 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:21:23] Production.INFO: ==32714== Releasing lock... [2025-01-30 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:21:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:22:05 [end_date_ymd] => 2025-01-30 01:22:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:22:05' and `end` < '2025-01-30 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-30 01:22:18] Production.INFO: count ==3849 [2025-01-30 01:22:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:22:05 - End Time 2025-01-30 01:22:05 [2025-01-30 01:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360263', 'tblTempUsageDetail_20' ) start [2025-01-30 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360263', 'tblTempUsageDetail_20' ) end [2025-01-30 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360263', 'tblTempVendorCDR_20' ) start [2025-01-30 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360263', 'tblTempVendorCDR_20' ) end [2025-01-30 01:22:20] Production.INFO: ProcessCDR(1,14360263,1,1,2) [2025-01-30 01:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360263', 'tblTempUsageDetail_20' ) start [2025-01-30 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360263', 'tblTempUsageDetail_20' ) end [2025-01-30 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:22:23] Production.INFO: ==353== Releasing lock... [2025-01-30 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:22:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-30 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:23:04 [end_date_ymd] => 2025-01-30 01:23:04 [RateCDR] => 1 ) [2025-01-30 01: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-29 22:23:04' and `end` < '2025-01-30 01: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-30 01:23:18] Production.INFO: count ==3783 [2025-01-30 01:23:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:23:04 - End Time 2025-01-30 01:23:04 [2025-01-30 01:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360268', 'tblTempUsageDetail_20' ) start [2025-01-30 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360268', 'tblTempUsageDetail_20' ) end [2025-01-30 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360268', 'tblTempVendorCDR_20' ) start [2025-01-30 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360268', 'tblTempVendorCDR_20' ) end [2025-01-30 01:23:20] Production.INFO: ProcessCDR(1,14360268,1,1,2) [2025-01-30 01:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360268', 'tblTempUsageDetail_20' ) start [2025-01-30 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360268', 'tblTempUsageDetail_20' ) end [2025-01-30 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:23:23] Production.INFO: ==431== Releasing lock... [2025-01-30 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:23:23] Production.INFO: 56 MB #Memory Used# [2025-01-30 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:24:05 [end_date_ymd] => 2025-01-30 01:24:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:24:05' and `end` < '2025-01-30 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-30 01:24:19] Production.INFO: count ==3718 [2025-01-30 01:24:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:24:05 - End Time 2025-01-30 01:24:05 [2025-01-30 01:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360273', 'tblTempUsageDetail_20' ) start [2025-01-30 01:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360273', 'tblTempUsageDetail_20' ) end [2025-01-30 01:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360273', 'tblTempVendorCDR_20' ) start [2025-01-30 01:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360273', 'tblTempVendorCDR_20' ) end [2025-01-30 01:24:21] Production.INFO: ProcessCDR(1,14360273,1,1,2) [2025-01-30 01:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360273', 'tblTempUsageDetail_20' ) start [2025-01-30 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360273', 'tblTempUsageDetail_20' ) end [2025-01-30 01:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:24:24] Production.INFO: ==522== Releasing lock... [2025-01-30 01:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:24:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-30 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:25:04 [end_date_ymd] => 2025-01-30 01:25:04 [RateCDR] => 1 ) [2025-01-30 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-29 22:25:04' and `end` < '2025-01-30 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-30 01:25:17] Production.INFO: count ==3657 [2025-01-30 01:25:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:25:04 - End Time 2025-01-30 01:25:04 [2025-01-30 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360278', 'tblTempUsageDetail_20' ) start [2025-01-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360278', 'tblTempUsageDetail_20' ) end [2025-01-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360278', 'tblTempVendorCDR_20' ) start [2025-01-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360278', 'tblTempVendorCDR_20' ) end [2025-01-30 01:25:19] Production.INFO: ProcessCDR(1,14360278,1,1,2) [2025-01-30 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360278', 'tblTempUsageDetail_20' ) start [2025-01-30 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360278', 'tblTempUsageDetail_20' ) end [2025-01-30 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:25:22] Production.INFO: ==609== Releasing lock... [2025-01-30 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:25:22] Production.INFO: 55.25 MB #Memory Used# [2025-01-30 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:26:04 [end_date_ymd] => 2025-01-30 01:26:04 [RateCDR] => 1 ) [2025-01-30 01: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-29 22:26:04' and `end` < '2025-01-30 01: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-30 01:26:17] Production.INFO: count ==3594 [2025-01-30 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:26:04 - End Time 2025-01-30 01:26:04 [2025-01-30 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360283', 'tblTempUsageDetail_20' ) start [2025-01-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360283', 'tblTempUsageDetail_20' ) end [2025-01-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360283', 'tblTempVendorCDR_20' ) start [2025-01-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360283', 'tblTempVendorCDR_20' ) end [2025-01-30 01:26:19] Production.INFO: ProcessCDR(1,14360283,1,1,2) [2025-01-30 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360283', 'tblTempUsageDetail_20' ) start [2025-01-30 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360283', 'tblTempUsageDetail_20' ) end [2025-01-30 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:26:22] Production.INFO: ==724== Releasing lock... [2025-01-30 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:26:22] Production.INFO: 54.75 MB #Memory Used# [2025-01-30 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:27:05 [end_date_ymd] => 2025-01-30 01:27:05 [RateCDR] => 1 ) [2025-01-30 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:27:05' and `end` < '2025-01-30 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:27:19] Production.INFO: count ==3550 [2025-01-30 01:27:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:27:05 - End Time 2025-01-30 01:27:05 [2025-01-30 01:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360288', 'tblTempUsageDetail_20' ) start [2025-01-30 01:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360288', 'tblTempUsageDetail_20' ) end [2025-01-30 01:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360288', 'tblTempVendorCDR_20' ) start [2025-01-30 01:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360288', 'tblTempVendorCDR_20' ) end [2025-01-30 01:27:21] Production.INFO: ProcessCDR(1,14360288,1,1,2) [2025-01-30 01:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360288', 'tblTempUsageDetail_20' ) start [2025-01-30 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360288', 'tblTempUsageDetail_20' ) end [2025-01-30 01:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:27:24] Production.INFO: ==814== Releasing lock... [2025-01-30 01:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:27:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-30 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:28:05 [end_date_ymd] => 2025-01-30 01:28:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:28:05' and `end` < '2025-01-30 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-30 01:28:17] Production.INFO: count ==3517 [2025-01-30 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:28:05 - End Time 2025-01-30 01:28:05 [2025-01-30 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360293', 'tblTempUsageDetail_20' ) start [2025-01-30 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360293', 'tblTempUsageDetail_20' ) end [2025-01-30 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360293', 'tblTempVendorCDR_20' ) start [2025-01-30 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360293', 'tblTempVendorCDR_20' ) end [2025-01-30 01:28:19] Production.INFO: ProcessCDR(1,14360293,1,1,2) [2025-01-30 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360293', 'tblTempUsageDetail_20' ) start [2025-01-30 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360293', 'tblTempUsageDetail_20' ) end [2025-01-30 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:28:22] Production.INFO: ==936== Releasing lock... [2025-01-30 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:28:22] Production.INFO: 54 MB #Memory Used# [2025-01-30 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:29:05 [end_date_ymd] => 2025-01-30 01:29:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:29:05' and `end` < '2025-01-30 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-30 01:29:18] Production.INFO: count ==3483 [2025-01-30 01:29:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:29:05 - End Time 2025-01-30 01:29:05 [2025-01-30 01:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360298', 'tblTempUsageDetail_20' ) start [2025-01-30 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360298', 'tblTempUsageDetail_20' ) end [2025-01-30 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360298', 'tblTempVendorCDR_20' ) start [2025-01-30 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360298', 'tblTempVendorCDR_20' ) end [2025-01-30 01:29:20] Production.INFO: ProcessCDR(1,14360298,1,1,2) [2025-01-30 01:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360298', 'tblTempUsageDetail_20' ) start [2025-01-30 01:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360298', 'tblTempUsageDetail_20' ) end [2025-01-30 01:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:29:24] Production.INFO: ==1028== Releasing lock... [2025-01-30 01:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:29:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:30:05 [end_date_ymd] => 2025-01-30 01:30:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:30:05' and `end` < '2025-01-30 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-30 01:30:18] Production.INFO: count ==3453 [2025-01-30 01:30:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:30:05 - End Time 2025-01-30 01:30:05 [2025-01-30 01:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360304', 'tblTempUsageDetail_20' ) start [2025-01-30 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360304', 'tblTempUsageDetail_20' ) end [2025-01-30 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360304', 'tblTempVendorCDR_20' ) start [2025-01-30 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360304', 'tblTempVendorCDR_20' ) end [2025-01-30 01:30:20] Production.INFO: ProcessCDR(1,14360304,1,1,2) [2025-01-30 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360304', 'tblTempUsageDetail_20' ) start [2025-01-30 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360304', 'tblTempUsageDetail_20' ) end [2025-01-30 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:30:23] Production.INFO: ==1121== Releasing lock... [2025-01-30 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:30:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:31:04 [end_date_ymd] => 2025-01-30 01:31:04 [RateCDR] => 1 ) [2025-01-30 01: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-29 22:31:04' and `end` < '2025-01-30 01: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-30 01:31:17] Production.INFO: count ==3541 [2025-01-30 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:31:04 - End Time 2025-01-30 01:31:04 [2025-01-30 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360309', 'tblTempUsageDetail_20' ) start [2025-01-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360309', 'tblTempUsageDetail_20' ) end [2025-01-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360309', 'tblTempVendorCDR_20' ) start [2025-01-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360309', 'tblTempVendorCDR_20' ) end [2025-01-30 01:31:19] Production.INFO: ProcessCDR(1,14360309,1,1,2) [2025-01-30 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360309', 'tblTempUsageDetail_20' ) start [2025-01-30 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360309', 'tblTempUsageDetail_20' ) end [2025-01-30 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:31:22] Production.INFO: ==1217== Releasing lock... [2025-01-30 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:31:22] Production.INFO: 54.25 MB #Memory Used# [2025-01-30 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:32:05 [end_date_ymd] => 2025-01-30 01:32:05 [RateCDR] => 1 ) [2025-01-30 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:32:05' and `end` < '2025-01-30 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:32:18] Production.INFO: count ==3528 [2025-01-30 01:32:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:32:05 - End Time 2025-01-30 01:32:05 [2025-01-30 01:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360314', 'tblTempUsageDetail_20' ) start [2025-01-30 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360314', 'tblTempUsageDetail_20' ) end [2025-01-30 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360314', 'tblTempVendorCDR_20' ) start [2025-01-30 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360314', 'tblTempVendorCDR_20' ) end [2025-01-30 01:32:20] Production.INFO: ProcessCDR(1,14360314,1,1,2) [2025-01-30 01:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360314', 'tblTempUsageDetail_20' ) start [2025-01-30 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360314', 'tblTempUsageDetail_20' ) end [2025-01-30 01:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:32:23] Production.INFO: ==1309== Releasing lock... [2025-01-30 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:32:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-30 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:33:05 [end_date_ymd] => 2025-01-30 01:33:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:33:05' and `end` < '2025-01-30 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-30 01:33:18] Production.INFO: count ==3492 [2025-01-30 01:33:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:33:05 - End Time 2025-01-30 01:33:05 [2025-01-30 01:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360319', 'tblTempUsageDetail_20' ) start [2025-01-30 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360319', 'tblTempUsageDetail_20' ) end [2025-01-30 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360319', 'tblTempVendorCDR_20' ) start [2025-01-30 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360319', 'tblTempVendorCDR_20' ) end [2025-01-30 01:33:20] Production.INFO: ProcessCDR(1,14360319,1,1,2) [2025-01-30 01:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360319', 'tblTempUsageDetail_20' ) start [2025-01-30 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360319', 'tblTempUsageDetail_20' ) end [2025-01-30 01:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:33:23] Production.INFO: ==1394== Releasing lock... [2025-01-30 01:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:33:23] Production.INFO: 54 MB #Memory Used# [2025-01-30 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:34:06 [end_date_ymd] => 2025-01-30 01:34:06 [RateCDR] => 1 ) [2025-01-30 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:34:06' and `end` < '2025-01-30 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:34:18] Production.INFO: count ==3459 [2025-01-30 01:34:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:34:06 - End Time 2025-01-30 01:34:06 [2025-01-30 01:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360324', 'tblTempUsageDetail_20' ) start [2025-01-30 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360324', 'tblTempUsageDetail_20' ) end [2025-01-30 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360324', 'tblTempVendorCDR_20' ) start [2025-01-30 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360324', 'tblTempVendorCDR_20' ) end [2025-01-30 01:34:20] Production.INFO: ProcessCDR(1,14360324,1,1,2) [2025-01-30 01:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360324', 'tblTempUsageDetail_20' ) start [2025-01-30 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360324', 'tblTempUsageDetail_20' ) end [2025-01-30 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:34:23] Production.INFO: ==1476== Releasing lock... [2025-01-30 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:34:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:35:05 [end_date_ymd] => 2025-01-30 01:35:05 [RateCDR] => 1 ) [2025-01-30 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:35:05' and `end` < '2025-01-30 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:35:18] Production.INFO: count ==3425 [2025-01-30 01:35:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:35:05 - End Time 2025-01-30 01:35:05 [2025-01-30 01:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360329', 'tblTempUsageDetail_20' ) start [2025-01-30 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360329', 'tblTempUsageDetail_20' ) end [2025-01-30 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360329', 'tblTempVendorCDR_20' ) start [2025-01-30 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360329', 'tblTempVendorCDR_20' ) end [2025-01-30 01:35:20] Production.INFO: ProcessCDR(1,14360329,1,1,2) [2025-01-30 01:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360329', 'tblTempUsageDetail_20' ) start [2025-01-30 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360329', 'tblTempUsageDetail_20' ) end [2025-01-30 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:35:23] Production.INFO: ==1596== Releasing lock... [2025-01-30 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:35:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-30 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:36:05 [end_date_ymd] => 2025-01-30 01:36:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:36:05' and `end` < '2025-01-30 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-30 01:36:18] Production.INFO: count ==3392 [2025-01-30 01:36:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:36:05 - End Time 2025-01-30 01:36:05 [2025-01-30 01:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360334', 'tblTempUsageDetail_20' ) start [2025-01-30 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360334', 'tblTempUsageDetail_20' ) end [2025-01-30 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360334', 'tblTempVendorCDR_20' ) start [2025-01-30 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360334', 'tblTempVendorCDR_20' ) end [2025-01-30 01:36:20] Production.INFO: ProcessCDR(1,14360334,1,1,2) [2025-01-30 01:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360334', 'tblTempUsageDetail_20' ) start [2025-01-30 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360334', 'tblTempUsageDetail_20' ) end [2025-01-30 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:36:23] Production.INFO: ==1679== Releasing lock... [2025-01-30 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:36:23] Production.INFO: 53.25 MB #Memory Used# [2025-01-30 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:37:05 [end_date_ymd] => 2025-01-30 01:37:05 [RateCDR] => 1 ) [2025-01-30 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:37:05' and `end` < '2025-01-30 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:37:18] Production.INFO: count ==3358 [2025-01-30 01:37:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:37:05 - End Time 2025-01-30 01:37:05 [2025-01-30 01:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360339', 'tblTempUsageDetail_20' ) start [2025-01-30 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360339', 'tblTempUsageDetail_20' ) end [2025-01-30 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360339', 'tblTempVendorCDR_20' ) start [2025-01-30 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360339', 'tblTempVendorCDR_20' ) end [2025-01-30 01:37:20] Production.INFO: ProcessCDR(1,14360339,1,1,2) [2025-01-30 01:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360339', 'tblTempUsageDetail_20' ) start [2025-01-30 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360339', 'tblTempUsageDetail_20' ) end [2025-01-30 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:37:23] Production.INFO: ==1759== Releasing lock... [2025-01-30 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:37:23] Production.INFO: 53 MB #Memory Used# [2025-01-30 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:38:05 [end_date_ymd] => 2025-01-30 01:38:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:38:05' and `end` < '2025-01-30 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-30 01:38:18] Production.INFO: count ==3308 [2025-01-30 01:38:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:38:05 - End Time 2025-01-30 01:38:05 [2025-01-30 01:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360344', 'tblTempUsageDetail_20' ) start [2025-01-30 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360344', 'tblTempUsageDetail_20' ) end [2025-01-30 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360344', 'tblTempVendorCDR_20' ) start [2025-01-30 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360344', 'tblTempVendorCDR_20' ) end [2025-01-30 01:38:20] Production.INFO: ProcessCDR(1,14360344,1,1,2) [2025-01-30 01:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360344', 'tblTempUsageDetail_20' ) start [2025-01-30 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360344', 'tblTempUsageDetail_20' ) end [2025-01-30 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:38:23] Production.INFO: ==1848== Releasing lock... [2025-01-30 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:38:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-30 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:39:05 [end_date_ymd] => 2025-01-30 01:39:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:39:05' and `end` < '2025-01-30 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-30 01:39:19] Production.INFO: count ==3274 [2025-01-30 01:39:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:39:05 - End Time 2025-01-30 01:39:05 [2025-01-30 01:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360349', 'tblTempUsageDetail_20' ) start [2025-01-30 01:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360349', 'tblTempUsageDetail_20' ) end [2025-01-30 01:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360349', 'tblTempVendorCDR_20' ) start [2025-01-30 01:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360349', 'tblTempVendorCDR_20' ) end [2025-01-30 01:39:21] Production.INFO: ProcessCDR(1,14360349,1,1,2) [2025-01-30 01:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360349', 'tblTempUsageDetail_20' ) start [2025-01-30 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360349', 'tblTempUsageDetail_20' ) end [2025-01-30 01:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:39:24] Production.INFO: ==1926== Releasing lock... [2025-01-30 01:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:39:24] Production.INFO: 52.25 MB #Memory Used# [2025-01-30 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:40:06 [end_date_ymd] => 2025-01-30 01:40:06 [RateCDR] => 1 ) [2025-01-30 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:40:06' and `end` < '2025-01-30 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:40:18] Production.INFO: count ==3243 [2025-01-30 01:40:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:40:06 - End Time 2025-01-30 01:40:06 [2025-01-30 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360355', 'tblTempUsageDetail_20' ) start [2025-01-30 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360355', 'tblTempUsageDetail_20' ) end [2025-01-30 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360355', 'tblTempVendorCDR_20' ) start [2025-01-30 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360355', 'tblTempVendorCDR_20' ) end [2025-01-30 01:40:20] Production.INFO: ProcessCDR(1,14360355,1,1,2) [2025-01-30 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360355', 'tblTempUsageDetail_20' ) start [2025-01-30 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360355', 'tblTempUsageDetail_20' ) end [2025-01-30 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:40:24] Production.INFO: ==2007== Releasing lock... [2025-01-30 01:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:40:24] Production.INFO: 52 MB #Memory Used# [2025-01-30 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:41:05 [end_date_ymd] => 2025-01-30 01:41:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:41:05' and `end` < '2025-01-30 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-30 01:41:19] Production.INFO: count ==3195 [2025-01-30 01:41:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:41:05 - End Time 2025-01-30 01:41:05 [2025-01-30 01:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360360', 'tblTempUsageDetail_20' ) start [2025-01-30 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360360', 'tblTempUsageDetail_20' ) end [2025-01-30 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360360', 'tblTempVendorCDR_20' ) start [2025-01-30 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360360', 'tblTempVendorCDR_20' ) end [2025-01-30 01:41:20] Production.INFO: ProcessCDR(1,14360360,1,1,2) [2025-01-30 01:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360360', 'tblTempUsageDetail_20' ) start [2025-01-30 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360360', 'tblTempUsageDetail_20' ) end [2025-01-30 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:41:23] Production.INFO: ==2086== Releasing lock... [2025-01-30 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:41:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-30 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:42:05 [end_date_ymd] => 2025-01-30 01:42:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:42:05' and `end` < '2025-01-30 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-30 01:42:19] Production.INFO: count ==3145 [2025-01-30 01:42:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:42:05 - End Time 2025-01-30 01:42:05 [2025-01-30 01:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360365', 'tblTempUsageDetail_20' ) start [2025-01-30 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360365', 'tblTempUsageDetail_20' ) end [2025-01-30 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360365', 'tblTempVendorCDR_20' ) start [2025-01-30 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360365', 'tblTempVendorCDR_20' ) end [2025-01-30 01:42:21] Production.INFO: ProcessCDR(1,14360365,1,1,2) [2025-01-30 01:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360365', 'tblTempUsageDetail_20' ) start [2025-01-30 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360365', 'tblTempUsageDetail_20' ) end [2025-01-30 01:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:42:24] Production.INFO: ==2164== Releasing lock... [2025-01-30 01:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:42:24] Production.INFO: 51.25 MB #Memory Used# [2025-01-30 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:43:06 [end_date_ymd] => 2025-01-30 01:43:06 [RateCDR] => 1 ) [2025-01-30 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:43:06' and `end` < '2025-01-30 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:43:18] Production.INFO: count ==3081 [2025-01-30 01:43:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:43:06 - End Time 2025-01-30 01:43:06 [2025-01-30 01:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360370', 'tblTempUsageDetail_20' ) start [2025-01-30 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360370', 'tblTempUsageDetail_20' ) end [2025-01-30 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360370', 'tblTempVendorCDR_20' ) start [2025-01-30 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360370', 'tblTempVendorCDR_20' ) end [2025-01-30 01:43:20] Production.INFO: ProcessCDR(1,14360370,1,1,2) [2025-01-30 01:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360370', 'tblTempUsageDetail_20' ) start [2025-01-30 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360370', 'tblTempUsageDetail_20' ) end [2025-01-30 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:43:23] Production.INFO: ==2277== Releasing lock... [2025-01-30 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:43:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-30 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:44:05 [end_date_ymd] => 2025-01-30 01:44:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:44:05' and `end` < '2025-01-30 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-30 01:44:19] Production.INFO: count ==3017 [2025-01-30 01:44:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:44:05 - End Time 2025-01-30 01:44:05 [2025-01-30 01:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360375', 'tblTempUsageDetail_20' ) start [2025-01-30 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360375', 'tblTempUsageDetail_20' ) end [2025-01-30 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360375', 'tblTempVendorCDR_20' ) start [2025-01-30 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360375', 'tblTempVendorCDR_20' ) end [2025-01-30 01:44:20] Production.INFO: ProcessCDR(1,14360375,1,1,2) [2025-01-30 01:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360375', 'tblTempUsageDetail_20' ) start [2025-01-30 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360375', 'tblTempUsageDetail_20' ) end [2025-01-30 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:44:23] Production.INFO: ==2356== Releasing lock... [2025-01-30 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:44:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-30 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:45:05 [end_date_ymd] => 2025-01-30 01:45:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:45:05' and `end` < '2025-01-30 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-30 01:45:18] Production.INFO: count ==2975 [2025-01-30 01:45:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:45:05 - End Time 2025-01-30 01:45:05 [2025-01-30 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360380', 'tblTempUsageDetail_20' ) start [2025-01-30 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360380', 'tblTempUsageDetail_20' ) end [2025-01-30 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360380', 'tblTempVendorCDR_20' ) start [2025-01-30 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360380', 'tblTempVendorCDR_20' ) end [2025-01-30 01:45:19] Production.INFO: ProcessCDR(1,14360380,1,1,2) [2025-01-30 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360380', 'tblTempUsageDetail_20' ) start [2025-01-30 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360380', 'tblTempUsageDetail_20' ) end [2025-01-30 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:45:22] Production.INFO: ==2431== Releasing lock... [2025-01-30 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:45:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:46:05 [end_date_ymd] => 2025-01-30 01:46:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:46:05' and `end` < '2025-01-30 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-30 01:46:20] Production.INFO: count ==2950 [2025-01-30 01:46:22] Production.ERROR: pbx CDR StartTime 2025-01-29 22:46:05 - End Time 2025-01-30 01:46:05 [2025-01-30 01:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360385', 'tblTempUsageDetail_20' ) start [2025-01-30 01:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360385', 'tblTempUsageDetail_20' ) end [2025-01-30 01:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360385', 'tblTempVendorCDR_20' ) start [2025-01-30 01:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360385', 'tblTempVendorCDR_20' ) end [2025-01-30 01:46:22] Production.INFO: ProcessCDR(1,14360385,1,1,2) [2025-01-30 01:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360385', 'tblTempUsageDetail_20' ) start [2025-01-30 01:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360385', 'tblTempUsageDetail_20' ) end [2025-01-30 01:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:46:25] Production.INFO: ==2511== Releasing lock... [2025-01-30 01:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:46:25] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:47:05 [end_date_ymd] => 2025-01-30 01:47:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:47:05' and `end` < '2025-01-30 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-30 01:47:18] Production.INFO: count ==2950 [2025-01-30 01:47:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:47:05 - End Time 2025-01-30 01:47:05 [2025-01-30 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360390', 'tblTempUsageDetail_20' ) start [2025-01-30 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360390', 'tblTempUsageDetail_20' ) end [2025-01-30 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360390', 'tblTempVendorCDR_20' ) start [2025-01-30 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360390', 'tblTempVendorCDR_20' ) end [2025-01-30 01:47:19] Production.INFO: ProcessCDR(1,14360390,1,1,2) [2025-01-30 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360390', 'tblTempUsageDetail_20' ) start [2025-01-30 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360390', 'tblTempUsageDetail_20' ) end [2025-01-30 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:47:23] Production.INFO: ==2592== Releasing lock... [2025-01-30 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:47:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:48:05 [end_date_ymd] => 2025-01-30 01:48:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:48:05' and `end` < '2025-01-30 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-30 01:48:18] Production.INFO: count ==2950 [2025-01-30 01:48:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:48:05 - End Time 2025-01-30 01:48:05 [2025-01-30 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360395', 'tblTempUsageDetail_20' ) start [2025-01-30 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360395', 'tblTempUsageDetail_20' ) end [2025-01-30 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360395', 'tblTempVendorCDR_20' ) start [2025-01-30 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360395', 'tblTempVendorCDR_20' ) end [2025-01-30 01:48:19] Production.INFO: ProcessCDR(1,14360395,1,1,2) [2025-01-30 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360395', 'tblTempUsageDetail_20' ) start [2025-01-30 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360395', 'tblTempUsageDetail_20' ) end [2025-01-30 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:48:22] Production.INFO: ==2677== Releasing lock... [2025-01-30 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:48:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:49:04 [end_date_ymd] => 2025-01-30 01:49:04 [RateCDR] => 1 ) [2025-01-30 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-29 22:49:04' and `end` < '2025-01-30 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-30 01:49:18] Production.INFO: count ==2950 [2025-01-30 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:49:04 - End Time 2025-01-30 01:49:04 [2025-01-30 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360400', 'tblTempUsageDetail_20' ) start [2025-01-30 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360400', 'tblTempUsageDetail_20' ) end [2025-01-30 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360400', 'tblTempVendorCDR_20' ) start [2025-01-30 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360400', 'tblTempVendorCDR_20' ) end [2025-01-30 01:49:20] Production.INFO: ProcessCDR(1,14360400,1,1,2) [2025-01-30 01:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360400', 'tblTempUsageDetail_20' ) start [2025-01-30 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360400', 'tblTempUsageDetail_20' ) end [2025-01-30 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:49:23] Production.INFO: ==2776== Releasing lock... [2025-01-30 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:49:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:50:05 [end_date_ymd] => 2025-01-30 01:50:05 [RateCDR] => 1 ) [2025-01-30 01: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-29 22:50:05' and `end` < '2025-01-30 01: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-30 01:50:18] Production.INFO: count ==2954 [2025-01-30 01:50:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:50:05 - End Time 2025-01-30 01:50:05 [2025-01-30 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360405', 'tblTempUsageDetail_20' ) start [2025-01-30 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360405', 'tblTempUsageDetail_20' ) end [2025-01-30 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360405', 'tblTempVendorCDR_20' ) start [2025-01-30 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360405', 'tblTempVendorCDR_20' ) end [2025-01-30 01:50:20] Production.INFO: ProcessCDR(1,14360405,1,1,2) [2025-01-30 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360405', 'tblTempUsageDetail_20' ) start [2025-01-30 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360405', 'tblTempUsageDetail_20' ) end [2025-01-30 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:50:23] Production.INFO: ==2866== Releasing lock... [2025-01-30 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:50:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:51:05 [end_date_ymd] => 2025-01-30 01:51:05 [RateCDR] => 1 ) [2025-01-30 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:51:05' and `end` < '2025-01-30 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:51:18] Production.INFO: count ==2954 [2025-01-30 01:51:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:51:05 - End Time 2025-01-30 01:51:05 [2025-01-30 01:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360411', 'tblTempUsageDetail_20' ) start [2025-01-30 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360411', 'tblTempUsageDetail_20' ) end [2025-01-30 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360411', 'tblTempVendorCDR_20' ) start [2025-01-30 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360411', 'tblTempVendorCDR_20' ) end [2025-01-30 01:51:20] Production.INFO: ProcessCDR(1,14360411,1,1,2) [2025-01-30 01:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360411', 'tblTempUsageDetail_20' ) start [2025-01-30 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360411', 'tblTempUsageDetail_20' ) end [2025-01-30 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:51:23] Production.INFO: ==2949== Releasing lock... [2025-01-30 01:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:51:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:52:05 [end_date_ymd] => 2025-01-30 01:52:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:52:05' and `end` < '2025-01-30 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-30 01:52:18] Production.INFO: count ==2938 [2025-01-30 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:52:05 - End Time 2025-01-30 01:52:05 [2025-01-30 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360416', 'tblTempUsageDetail_20' ) start [2025-01-30 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360416', 'tblTempUsageDetail_20' ) end [2025-01-30 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360416', 'tblTempVendorCDR_20' ) start [2025-01-30 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360416', 'tblTempVendorCDR_20' ) end [2025-01-30 01:52:19] Production.INFO: ProcessCDR(1,14360416,1,1,2) [2025-01-30 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360416', 'tblTempUsageDetail_20' ) start [2025-01-30 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360416', 'tblTempUsageDetail_20' ) end [2025-01-30 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:52:23] Production.INFO: ==3033== Releasing lock... [2025-01-30 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:52:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:53:06 [end_date_ymd] => 2025-01-30 01:53:06 [RateCDR] => 1 ) [2025-01-30 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:53:06' and `end` < '2025-01-30 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:53:20] Production.INFO: count ==2903 [2025-01-30 01:53:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:53:06 - End Time 2025-01-30 01:53:06 [2025-01-30 01:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360421', 'tblTempUsageDetail_20' ) start [2025-01-30 01:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360421', 'tblTempUsageDetail_20' ) end [2025-01-30 01:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360421', 'tblTempVendorCDR_20' ) start [2025-01-30 01:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360421', 'tblTempVendorCDR_20' ) end [2025-01-30 01:53:21] Production.INFO: ProcessCDR(1,14360421,1,1,2) [2025-01-30 01:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360421', 'tblTempUsageDetail_20' ) start [2025-01-30 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360421', 'tblTempUsageDetail_20' ) end [2025-01-30 01:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:53:24] Production.INFO: ==3120== Releasing lock... [2025-01-30 01:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:53:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-30 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:54:05 [end_date_ymd] => 2025-01-30 01:54:05 [RateCDR] => 1 ) [2025-01-30 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:54:05' and `end` < '2025-01-30 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:54:18] Production.INFO: count ==2869 [2025-01-30 01:54:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:54:05 - End Time 2025-01-30 01:54:05 [2025-01-30 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360426', 'tblTempUsageDetail_20' ) start [2025-01-30 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360426', 'tblTempUsageDetail_20' ) end [2025-01-30 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360426', 'tblTempVendorCDR_20' ) start [2025-01-30 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360426', 'tblTempVendorCDR_20' ) end [2025-01-30 01:54:19] Production.INFO: ProcessCDR(1,14360426,1,1,2) [2025-01-30 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360426', 'tblTempUsageDetail_20' ) start [2025-01-30 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360426', 'tblTempUsageDetail_20' ) end [2025-01-30 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:54:22] Production.INFO: ==3197== Releasing lock... [2025-01-30 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:54:22] Production.INFO: 49 MB #Memory Used# [2025-01-30 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:55:05 [end_date_ymd] => 2025-01-30 01:55:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:55:05' and `end` < '2025-01-30 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-30 01:55:19] Production.INFO: count ==2838 [2025-01-30 01:55:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:55:05 - End Time 2025-01-30 01:55:05 [2025-01-30 01:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360431', 'tblTempUsageDetail_20' ) start [2025-01-30 01:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360431', 'tblTempUsageDetail_20' ) end [2025-01-30 01:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360431', 'tblTempVendorCDR_20' ) start [2025-01-30 01:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360431', 'tblTempVendorCDR_20' ) end [2025-01-30 01:55:21] Production.INFO: ProcessCDR(1,14360431,1,1,2) [2025-01-30 01:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360431', 'tblTempUsageDetail_20' ) start [2025-01-30 01:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360431', 'tblTempUsageDetail_20' ) end [2025-01-30 01:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:55:24] Production.INFO: ==3276== Releasing lock... [2025-01-30 01:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:55:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-30 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:56:05 [end_date_ymd] => 2025-01-30 01:56:05 [RateCDR] => 1 ) [2025-01-30 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:56:05' and `end` < '2025-01-30 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:56:19] Production.INFO: count ==2804 [2025-01-30 01:56:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:56:05 - End Time 2025-01-30 01:56:05 [2025-01-30 01:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360436', 'tblTempUsageDetail_20' ) start [2025-01-30 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360436', 'tblTempUsageDetail_20' ) end [2025-01-30 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360436', 'tblTempVendorCDR_20' ) start [2025-01-30 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360436', 'tblTempVendorCDR_20' ) end [2025-01-30 01:56:20] Production.INFO: ProcessCDR(1,14360436,1,1,2) [2025-01-30 01:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360436', 'tblTempUsageDetail_20' ) start [2025-01-30 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360436', 'tblTempUsageDetail_20' ) end [2025-01-30 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:56:23] Production.INFO: ==3353== Releasing lock... [2025-01-30 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:56:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-30 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:57:06 [end_date_ymd] => 2025-01-30 01:57:06 [RateCDR] => 1 ) [2025-01-30 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:57:06' and `end` < '2025-01-30 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:57:19] Production.INFO: count ==2767 [2025-01-30 01:57:20] Production.ERROR: pbx CDR StartTime 2025-01-29 22:57:06 - End Time 2025-01-30 01:57:06 [2025-01-30 01:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360441', 'tblTempUsageDetail_20' ) start [2025-01-30 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360441', 'tblTempUsageDetail_20' ) end [2025-01-30 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360441', 'tblTempVendorCDR_20' ) start [2025-01-30 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360441', 'tblTempVendorCDR_20' ) end [2025-01-30 01:57:20] Production.INFO: ProcessCDR(1,14360441,1,1,2) [2025-01-30 01:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360441', 'tblTempUsageDetail_20' ) start [2025-01-30 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360441', 'tblTempUsageDetail_20' ) end [2025-01-30 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:57:24] Production.INFO: ==3433== Releasing lock... [2025-01-30 01:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:57:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-30 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:58:05 [end_date_ymd] => 2025-01-30 01:58:05 [RateCDR] => 1 ) [2025-01-30 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-29 22:58:05' and `end` < '2025-01-30 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-30 01:58:18] Production.INFO: count ==2731 [2025-01-30 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 22:58:05 - End Time 2025-01-30 01:58:05 [2025-01-30 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360446', 'tblTempUsageDetail_20' ) start [2025-01-30 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360446', 'tblTempUsageDetail_20' ) end [2025-01-30 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360446', 'tblTempVendorCDR_20' ) start [2025-01-30 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360446', 'tblTempVendorCDR_20' ) end [2025-01-30 01:58:19] Production.INFO: ProcessCDR(1,14360446,1,1,2) [2025-01-30 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360446', 'tblTempUsageDetail_20' ) start [2025-01-30 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360446', 'tblTempUsageDetail_20' ) end [2025-01-30 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:58:22] Production.INFO: ==3514== Releasing lock... [2025-01-30 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:58:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 22:59:06 [end_date_ymd] => 2025-01-30 01:59:06 [RateCDR] => 1 ) [2025-01-30 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 22:59:06' and `end` < '2025-01-30 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 01:59:19] Production.INFO: count ==2696 [2025-01-30 01:59:21] Production.ERROR: pbx CDR StartTime 2025-01-29 22:59:06 - End Time 2025-01-30 01:59:06 [2025-01-30 01:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 01:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360451', 'tblTempUsageDetail_20' ) start [2025-01-30 01:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360451', 'tblTempUsageDetail_20' ) end [2025-01-30 01:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360451', 'tblTempVendorCDR_20' ) start [2025-01-30 01:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360451', 'tblTempVendorCDR_20' ) end [2025-01-30 01:59:21] Production.INFO: ProcessCDR(1,14360451,1,1,2) [2025-01-30 01:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 01:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360451', 'tblTempUsageDetail_20' ) start [2025-01-30 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360451', 'tblTempUsageDetail_20' ) end [2025-01-30 01:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 01:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 01:59:24] Production.INFO: ==3636== Releasing lock... [2025-01-30 01:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 01:59:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:00:06 [end_date_ymd] => 2025-01-30 02:00:06 [RateCDR] => 1 ) [2025-01-30 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:00:06' and `end` < '2025-01-30 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:00:18] Production.INFO: count ==2667 [2025-01-30 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:00:06 - End Time 2025-01-30 02:00:06 [2025-01-30 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360456', 'tblTempUsageDetail_20' ) start [2025-01-30 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360456', 'tblTempUsageDetail_20' ) end [2025-01-30 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360456', 'tblTempVendorCDR_20' ) start [2025-01-30 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360456', 'tblTempVendorCDR_20' ) end [2025-01-30 02:00:20] Production.INFO: ProcessCDR(1,14360456,1,1,2) [2025-01-30 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360456', 'tblTempUsageDetail_20' ) start [2025-01-30 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360456', 'tblTempUsageDetail_20' ) end [2025-01-30 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:00:23] Production.INFO: ==3716== Releasing lock... [2025-01-30 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:00:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-30 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:01:05 [end_date_ymd] => 2025-01-30 02:01:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:01:05' and `end` < '2025-01-30 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-30 02:01:19] Production.INFO: count ==2629 [2025-01-30 02:01:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:01:05 - End Time 2025-01-30 02:01:05 [2025-01-30 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360462', 'tblTempUsageDetail_20' ) start [2025-01-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360462', 'tblTempUsageDetail_20' ) end [2025-01-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360462', 'tblTempVendorCDR_20' ) start [2025-01-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360462', 'tblTempVendorCDR_20' ) end [2025-01-30 02:01:20] Production.INFO: ProcessCDR(1,14360462,1,1,2) [2025-01-30 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360462', 'tblTempUsageDetail_20' ) start [2025-01-30 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360462', 'tblTempUsageDetail_20' ) end [2025-01-30 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:01:23] Production.INFO: ==3901== Releasing lock... [2025-01-30 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:01:23] Production.INFO: 48 MB #Memory Used# [2025-01-30 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:02:06 [end_date_ymd] => 2025-01-30 02:02:06 [RateCDR] => 1 ) [2025-01-30 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:02:06' and `end` < '2025-01-30 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:02:19] Production.INFO: count ==2593 [2025-01-30 02:02:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:02:06 - End Time 2025-01-30 02:02:06 [2025-01-30 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360467', 'tblTempUsageDetail_20' ) start [2025-01-30 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360467', 'tblTempUsageDetail_20' ) end [2025-01-30 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360467', 'tblTempVendorCDR_20' ) start [2025-01-30 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360467', 'tblTempVendorCDR_20' ) end [2025-01-30 02:02:20] Production.INFO: ProcessCDR(1,14360467,1,1,2) [2025-01-30 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360467', 'tblTempUsageDetail_20' ) start [2025-01-30 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360467', 'tblTempUsageDetail_20' ) end [2025-01-30 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:02:23] Production.INFO: ==3985== Releasing lock... [2025-01-30 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:02:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-30 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:03:05 [end_date_ymd] => 2025-01-30 02:03:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:03:05' and `end` < '2025-01-30 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-30 02:03:17] Production.INFO: count ==2558 [2025-01-30 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:03:05 - End Time 2025-01-30 02:03:05 [2025-01-30 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360472', 'tblTempUsageDetail_20' ) start [2025-01-30 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360472', 'tblTempUsageDetail_20' ) end [2025-01-30 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360472', 'tblTempVendorCDR_20' ) start [2025-01-30 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360472', 'tblTempVendorCDR_20' ) end [2025-01-30 02:03:19] Production.INFO: ProcessCDR(1,14360472,1,1,2) [2025-01-30 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360472', 'tblTempUsageDetail_20' ) start [2025-01-30 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360472', 'tblTempUsageDetail_20' ) end [2025-01-30 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:03:22] Production.INFO: ==4067== Releasing lock... [2025-01-30 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:03:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-30 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:04:06 [end_date_ymd] => 2025-01-30 02:04:06 [RateCDR] => 1 ) [2025-01-30 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:04:06' and `end` < '2025-01-30 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:04:19] Production.INFO: count ==2513 [2025-01-30 02:04:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:04:06 - End Time 2025-01-30 02:04:06 [2025-01-30 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360477', 'tblTempUsageDetail_20' ) start [2025-01-30 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360477', 'tblTempUsageDetail_20' ) end [2025-01-30 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360477', 'tblTempVendorCDR_20' ) start [2025-01-30 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360477', 'tblTempVendorCDR_20' ) end [2025-01-30 02:04:20] Production.INFO: ProcessCDR(1,14360477,1,1,2) [2025-01-30 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360477', 'tblTempUsageDetail_20' ) start [2025-01-30 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360477', 'tblTempUsageDetail_20' ) end [2025-01-30 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:04:23] Production.INFO: ==4152== Releasing lock... [2025-01-30 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:04:23] Production.INFO: 47 MB #Memory Used# [2025-01-30 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:05:05 [end_date_ymd] => 2025-01-30 02:05:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:05:05' and `end` < '2025-01-30 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-30 02:05:18] Production.INFO: count ==2451 [2025-01-30 02:05:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:05:05 - End Time 2025-01-30 02:05:05 [2025-01-30 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360482', 'tblTempUsageDetail_20' ) start [2025-01-30 02:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360482', 'tblTempUsageDetail_20' ) end [2025-01-30 02:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360482', 'tblTempVendorCDR_20' ) start [2025-01-30 02:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360482', 'tblTempVendorCDR_20' ) end [2025-01-30 02:05:20] Production.INFO: ProcessCDR(1,14360482,1,1,2) [2025-01-30 02:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360482', 'tblTempUsageDetail_20' ) start [2025-01-30 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360482', 'tblTempUsageDetail_20' ) end [2025-01-30 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:05:23] Production.INFO: ==4239== Releasing lock... [2025-01-30 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:05:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-30 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:06:05 [end_date_ymd] => 2025-01-30 02:06:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:06:05' and `end` < '2025-01-30 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-30 02:06:18] Production.INFO: count ==2389 [2025-01-30 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:06:05 - End Time 2025-01-30 02:06:05 [2025-01-30 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360487', 'tblTempUsageDetail_20' ) start [2025-01-30 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360487', 'tblTempUsageDetail_20' ) end [2025-01-30 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360487', 'tblTempVendorCDR_20' ) start [2025-01-30 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360487', 'tblTempVendorCDR_20' ) end [2025-01-30 02:06:20] Production.INFO: ProcessCDR(1,14360487,1,1,2) [2025-01-30 02:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360487', 'tblTempUsageDetail_20' ) start [2025-01-30 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360487', 'tblTempUsageDetail_20' ) end [2025-01-30 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:06:23] Production.INFO: ==4318== Releasing lock... [2025-01-30 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:06:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:07:05 [end_date_ymd] => 2025-01-30 02:07:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:07:05' and `end` < '2025-01-30 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-30 02:07:18] Production.INFO: count ==2372 [2025-01-30 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:07:05 - End Time 2025-01-30 02:07:05 [2025-01-30 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360492', 'tblTempUsageDetail_20' ) start [2025-01-30 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360492', 'tblTempUsageDetail_20' ) end [2025-01-30 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360492', 'tblTempVendorCDR_20' ) start [2025-01-30 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360492', 'tblTempVendorCDR_20' ) end [2025-01-30 02:07:19] Production.INFO: ProcessCDR(1,14360492,1,1,2) [2025-01-30 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360492', 'tblTempUsageDetail_20' ) start [2025-01-30 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360492', 'tblTempUsageDetail_20' ) end [2025-01-30 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:07:22] Production.INFO: ==4407== Releasing lock... [2025-01-30 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:07:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:08:05 [end_date_ymd] => 2025-01-30 02:08:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:08:05' and `end` < '2025-01-30 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-30 02:08:18] Production.INFO: count ==2372 [2025-01-30 02:08:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:08:05 - End Time 2025-01-30 02:08:05 [2025-01-30 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360497', 'tblTempUsageDetail_20' ) start [2025-01-30 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360497', 'tblTempUsageDetail_20' ) end [2025-01-30 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360497', 'tblTempVendorCDR_20' ) start [2025-01-30 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360497', 'tblTempVendorCDR_20' ) end [2025-01-30 02:08:19] Production.INFO: ProcessCDR(1,14360497,1,1,2) [2025-01-30 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360497', 'tblTempUsageDetail_20' ) start [2025-01-30 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360497', 'tblTempUsageDetail_20' ) end [2025-01-30 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:08:22] Production.INFO: ==4510== Releasing lock... [2025-01-30 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:08:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:09:04 [end_date_ymd] => 2025-01-30 02:09:04 [RateCDR] => 1 ) [2025-01-30 02: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-29 23:09:04' and `end` < '2025-01-30 02: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-30 02:09:17] Production.INFO: count ==2372 [2025-01-30 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:09:04 - End Time 2025-01-30 02:09:04 [2025-01-30 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360502', 'tblTempUsageDetail_20' ) start [2025-01-30 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360502', 'tblTempUsageDetail_20' ) end [2025-01-30 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360502', 'tblTempVendorCDR_20' ) start [2025-01-30 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360502', 'tblTempVendorCDR_20' ) end [2025-01-30 02:09:19] Production.INFO: ProcessCDR(1,14360502,1,1,2) [2025-01-30 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360502', 'tblTempUsageDetail_20' ) start [2025-01-30 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360502', 'tblTempUsageDetail_20' ) end [2025-01-30 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:09:22] Production.INFO: ==4604== Releasing lock... [2025-01-30 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:09:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:10:06 [end_date_ymd] => 2025-01-30 02:10:06 [RateCDR] => 1 ) [2025-01-30 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-29 23:10:06' and `end` < '2025-01-30 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-30 02:10:18] Production.INFO: count ==2377 [2025-01-30 02:10:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:10:06 - End Time 2025-01-30 02:10:06 [2025-01-30 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360508', 'tblTempUsageDetail_20' ) start [2025-01-30 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360508', 'tblTempUsageDetail_20' ) end [2025-01-30 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360508', 'tblTempVendorCDR_20' ) start [2025-01-30 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360508', 'tblTempVendorCDR_20' ) end [2025-01-30 02:10:20] Production.INFO: ProcessCDR(1,14360508,1,1,2) [2025-01-30 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360508', 'tblTempUsageDetail_20' ) start [2025-01-30 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360508', 'tblTempUsageDetail_20' ) end [2025-01-30 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:10:23] Production.INFO: ==4693== Releasing lock... [2025-01-30 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:10:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:11:05 [end_date_ymd] => 2025-01-30 02:11:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:11:05' and `end` < '2025-01-30 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-30 02:11:18] Production.INFO: count ==2380 [2025-01-30 02:11:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:11:05 - End Time 2025-01-30 02:11:05 [2025-01-30 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360513', 'tblTempUsageDetail_20' ) start [2025-01-30 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360513', 'tblTempUsageDetail_20' ) end [2025-01-30 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360513', 'tblTempVendorCDR_20' ) start [2025-01-30 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360513', 'tblTempVendorCDR_20' ) end [2025-01-30 02:11:19] Production.INFO: ProcessCDR(1,14360513,1,1,2) [2025-01-30 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360513', 'tblTempUsageDetail_20' ) start [2025-01-30 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360513', 'tblTempUsageDetail_20' ) end [2025-01-30 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:11:22] Production.INFO: ==4778== Releasing lock... [2025-01-30 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:11:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:12:05 [end_date_ymd] => 2025-01-30 02:12:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:12:05' and `end` < '2025-01-30 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-30 02:12:18] Production.INFO: count ==2461 [2025-01-30 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:12:05 - End Time 2025-01-30 02:12:05 [2025-01-30 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360518', 'tblTempUsageDetail_20' ) start [2025-01-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360518', 'tblTempUsageDetail_20' ) end [2025-01-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360518', 'tblTempVendorCDR_20' ) start [2025-01-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360518', 'tblTempVendorCDR_20' ) end [2025-01-30 02:12:19] Production.INFO: ProcessCDR(1,14360518,1,1,2) [2025-01-30 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360518', 'tblTempUsageDetail_20' ) start [2025-01-30 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360518', 'tblTempUsageDetail_20' ) end [2025-01-30 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:12:22] Production.INFO: ==4871== Releasing lock... [2025-01-30 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:12:22] Production.INFO: 47 MB #Memory Used# [2025-01-30 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:13:05 [end_date_ymd] => 2025-01-30 02:13:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:13:05' and `end` < '2025-01-30 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-30 02:13:18] Production.INFO: count ==2396 [2025-01-30 02:13:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:13:05 - End Time 2025-01-30 02:13:05 [2025-01-30 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360523', 'tblTempUsageDetail_20' ) start [2025-01-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360523', 'tblTempUsageDetail_20' ) end [2025-01-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360523', 'tblTempVendorCDR_20' ) start [2025-01-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360523', 'tblTempVendorCDR_20' ) end [2025-01-30 02:13:19] Production.INFO: ProcessCDR(1,14360523,1,1,2) [2025-01-30 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360523', 'tblTempUsageDetail_20' ) start [2025-01-30 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360523', 'tblTempUsageDetail_20' ) end [2025-01-30 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:13:22] Production.INFO: ==4950== Releasing lock... [2025-01-30 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:13:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-30 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:14:05 [end_date_ymd] => 2025-01-30 02:14:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:14:05' and `end` < '2025-01-30 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-30 02:14:18] Production.INFO: count ==2344 [2025-01-30 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:14:05 - End Time 2025-01-30 02:14:05 [2025-01-30 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360528', 'tblTempUsageDetail_20' ) start [2025-01-30 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360528', 'tblTempUsageDetail_20' ) end [2025-01-30 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360528', 'tblTempVendorCDR_20' ) start [2025-01-30 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360528', 'tblTempVendorCDR_20' ) end [2025-01-30 02:14:20] Production.INFO: ProcessCDR(1,14360528,1,1,2) [2025-01-30 02:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360528', 'tblTempUsageDetail_20' ) start [2025-01-30 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360528', 'tblTempUsageDetail_20' ) end [2025-01-30 02:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:14:23] Production.INFO: ==5074== Releasing lock... [2025-01-30 02:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:14:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-30 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:15:05 [end_date_ymd] => 2025-01-30 02:15:05 [RateCDR] => 1 ) [2025-01-30 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:15:05' and `end` < '2025-01-30 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:15:18] Production.INFO: count ==2315 [2025-01-30 02:15:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:15:05 - End Time 2025-01-30 02:15:05 [2025-01-30 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360533', 'tblTempUsageDetail_20' ) start [2025-01-30 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360533', 'tblTempUsageDetail_20' ) end [2025-01-30 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360533', 'tblTempVendorCDR_20' ) start [2025-01-30 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360533', 'tblTempVendorCDR_20' ) end [2025-01-30 02:15:19] Production.INFO: ProcessCDR(1,14360533,1,1,2) [2025-01-30 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360533', 'tblTempUsageDetail_20' ) start [2025-01-30 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360533', 'tblTempUsageDetail_20' ) end [2025-01-30 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:15:22] Production.INFO: ==5173== Releasing lock... [2025-01-30 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:15:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-30 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:16:05 [end_date_ymd] => 2025-01-30 02:16:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:16:05' and `end` < '2025-01-30 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-30 02:16:18] Production.INFO: count ==2279 [2025-01-30 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:16:05 - End Time 2025-01-30 02:16:05 [2025-01-30 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360538', 'tblTempUsageDetail_20' ) start [2025-01-30 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360538', 'tblTempUsageDetail_20' ) end [2025-01-30 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360538', 'tblTempVendorCDR_20' ) start [2025-01-30 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360538', 'tblTempVendorCDR_20' ) end [2025-01-30 02:16:19] Production.INFO: ProcessCDR(1,14360538,1,1,2) [2025-01-30 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360538', 'tblTempUsageDetail_20' ) start [2025-01-30 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360538', 'tblTempUsageDetail_20' ) end [2025-01-30 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:16:23] Production.INFO: ==5271== Releasing lock... [2025-01-30 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:16:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:17:05 [end_date_ymd] => 2025-01-30 02:17:05 [RateCDR] => 1 ) [2025-01-30 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:17:05' and `end` < '2025-01-30 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:17:18] Production.INFO: count ==2276 [2025-01-30 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:17:05 - End Time 2025-01-30 02:17:05 [2025-01-30 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360543', 'tblTempUsageDetail_20' ) start [2025-01-30 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360543', 'tblTempUsageDetail_20' ) end [2025-01-30 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360543', 'tblTempVendorCDR_20' ) start [2025-01-30 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360543', 'tblTempVendorCDR_20' ) end [2025-01-30 02:17:19] Production.INFO: ProcessCDR(1,14360543,1,1,2) [2025-01-30 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360543', 'tblTempUsageDetail_20' ) start [2025-01-30 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360543', 'tblTempUsageDetail_20' ) end [2025-01-30 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:17:22] Production.INFO: ==5381== Releasing lock... [2025-01-30 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:17:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:18:05 [end_date_ymd] => 2025-01-30 02:18:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:18:05' and `end` < '2025-01-30 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-30 02:18:18] Production.INFO: count ==2276 [2025-01-30 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:18:05 - End Time 2025-01-30 02:18:05 [2025-01-30 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360548', 'tblTempUsageDetail_20' ) start [2025-01-30 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360548', 'tblTempUsageDetail_20' ) end [2025-01-30 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360548', 'tblTempVendorCDR_20' ) start [2025-01-30 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360548', 'tblTempVendorCDR_20' ) end [2025-01-30 02:18:19] Production.INFO: ProcessCDR(1,14360548,1,1,2) [2025-01-30 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360548', 'tblTempUsageDetail_20' ) start [2025-01-30 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360548', 'tblTempUsageDetail_20' ) end [2025-01-30 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:18:22] Production.INFO: ==5479== Releasing lock... [2025-01-30 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:18:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:19:05 [end_date_ymd] => 2025-01-30 02:19:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:19:05' and `end` < '2025-01-30 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-30 02:19:18] Production.INFO: count ==2276 [2025-01-30 02:19:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:19:05 - End Time 2025-01-30 02:19:05 [2025-01-30 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360553', 'tblTempUsageDetail_20' ) start [2025-01-30 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360553', 'tblTempUsageDetail_20' ) end [2025-01-30 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360553', 'tblTempVendorCDR_20' ) start [2025-01-30 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360553', 'tblTempVendorCDR_20' ) end [2025-01-30 02:19:19] Production.INFO: ProcessCDR(1,14360553,1,1,2) [2025-01-30 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360553', 'tblTempUsageDetail_20' ) start [2025-01-30 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360553', 'tblTempUsageDetail_20' ) end [2025-01-30 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:19:22] Production.INFO: ==5581== Releasing lock... [2025-01-30 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:19:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:20:06 [end_date_ymd] => 2025-01-30 02:20:06 [RateCDR] => 1 ) [2025-01-30 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-29 23:20:06' and `end` < '2025-01-30 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-30 02:20:18] Production.INFO: count ==2333 [2025-01-30 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:20:06 - End Time 2025-01-30 02:20:06 [2025-01-30 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360559', 'tblTempUsageDetail_20' ) start [2025-01-30 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360559', 'tblTempUsageDetail_20' ) end [2025-01-30 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360559', 'tblTempVendorCDR_20' ) start [2025-01-30 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360559', 'tblTempVendorCDR_20' ) end [2025-01-30 02:20:20] Production.INFO: ProcessCDR(1,14360559,1,1,2) [2025-01-30 02:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360559', 'tblTempUsageDetail_20' ) start [2025-01-30 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360559', 'tblTempUsageDetail_20' ) end [2025-01-30 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:20:23] Production.INFO: ==5683== Releasing lock... [2025-01-30 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:20:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:21:04 [end_date_ymd] => 2025-01-30 02:21:04 [RateCDR] => 1 ) [2025-01-30 02: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-29 23:21:04' and `end` < '2025-01-30 02: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-30 02:21:17] Production.INFO: count ==2411 [2025-01-30 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:21:04 - End Time 2025-01-30 02:21:04 [2025-01-30 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360564', 'tblTempUsageDetail_20' ) start [2025-01-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360564', 'tblTempUsageDetail_20' ) end [2025-01-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360564', 'tblTempVendorCDR_20' ) start [2025-01-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360564', 'tblTempVendorCDR_20' ) end [2025-01-30 02:21:18] Production.INFO: ProcessCDR(1,14360564,1,1,2) [2025-01-30 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360564', 'tblTempUsageDetail_20' ) start [2025-01-30 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360564', 'tblTempUsageDetail_20' ) end [2025-01-30 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:21:21] Production.INFO: ==5765== Releasing lock... [2025-01-30 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:21:21] Production.INFO: 46.75 MB #Memory Used# [2025-01-30 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:22:05 [end_date_ymd] => 2025-01-30 02:22:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:22:05' and `end` < '2025-01-30 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-30 02:22:18] Production.INFO: count ==2370 [2025-01-30 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:22:05 - End Time 2025-01-30 02:22:05 [2025-01-30 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360569', 'tblTempUsageDetail_20' ) start [2025-01-30 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360569', 'tblTempUsageDetail_20' ) end [2025-01-30 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360569', 'tblTempVendorCDR_20' ) start [2025-01-30 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360569', 'tblTempVendorCDR_20' ) end [2025-01-30 02:22:20] Production.INFO: ProcessCDR(1,14360569,1,1,2) [2025-01-30 02:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360569', 'tblTempUsageDetail_20' ) start [2025-01-30 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360569', 'tblTempUsageDetail_20' ) end [2025-01-30 02:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:22:23] Production.INFO: ==5859== Releasing lock... [2025-01-30 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:22:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:23:05 [end_date_ymd] => 2025-01-30 02:23:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:23:05' and `end` < '2025-01-30 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-30 02:23:17] Production.INFO: count ==2331 [2025-01-30 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:23:05 - End Time 2025-01-30 02:23:05 [2025-01-30 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360574', 'tblTempUsageDetail_20' ) start [2025-01-30 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360574', 'tblTempUsageDetail_20' ) end [2025-01-30 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360574', 'tblTempVendorCDR_20' ) start [2025-01-30 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360574', 'tblTempVendorCDR_20' ) end [2025-01-30 02:23:19] Production.INFO: ProcessCDR(1,14360574,1,1,2) [2025-01-30 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360574', 'tblTempUsageDetail_20' ) start [2025-01-30 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360574', 'tblTempUsageDetail_20' ) end [2025-01-30 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:23:22] Production.INFO: ==5951== Releasing lock... [2025-01-30 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:23:22] Production.INFO: 46 MB #Memory Used# [2025-01-30 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:24:05 [end_date_ymd] => 2025-01-30 02:24:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:24:05' and `end` < '2025-01-30 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-30 02:24:17] Production.INFO: count ==2296 [2025-01-30 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:24:05 - End Time 2025-01-30 02:24:05 [2025-01-30 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360579', 'tblTempUsageDetail_20' ) start [2025-01-30 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360579', 'tblTempUsageDetail_20' ) end [2025-01-30 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360579', 'tblTempVendorCDR_20' ) start [2025-01-30 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360579', 'tblTempVendorCDR_20' ) end [2025-01-30 02:24:19] Production.INFO: ProcessCDR(1,14360579,1,1,2) [2025-01-30 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360579', 'tblTempUsageDetail_20' ) start [2025-01-30 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360579', 'tblTempUsageDetail_20' ) end [2025-01-30 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:24:22] Production.INFO: ==6039== Releasing lock... [2025-01-30 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:24:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:25:05 [end_date_ymd] => 2025-01-30 02:25:05 [RateCDR] => 1 ) [2025-01-30 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:25:05' and `end` < '2025-01-30 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:25:18] Production.INFO: count ==2262 [2025-01-30 02:25:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:25:05 - End Time 2025-01-30 02:25:05 [2025-01-30 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360584', 'tblTempUsageDetail_20' ) start [2025-01-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360584', 'tblTempUsageDetail_20' ) end [2025-01-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360584', 'tblTempVendorCDR_20' ) start [2025-01-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360584', 'tblTempVendorCDR_20' ) end [2025-01-30 02:25:19] Production.INFO: ProcessCDR(1,14360584,1,1,2) [2025-01-30 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360584', 'tblTempUsageDetail_20' ) start [2025-01-30 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360584', 'tblTempUsageDetail_20' ) end [2025-01-30 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:25:22] Production.INFO: ==6127== Releasing lock... [2025-01-30 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:25:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-30 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:26:05 [end_date_ymd] => 2025-01-30 02:26:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:26:05' and `end` < '2025-01-30 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-30 02:26:18] Production.INFO: count ==2228 [2025-01-30 02:26:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:26:05 - End Time 2025-01-30 02:26:05 [2025-01-30 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360589', 'tblTempUsageDetail_20' ) start [2025-01-30 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360589', 'tblTempUsageDetail_20' ) end [2025-01-30 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360589', 'tblTempVendorCDR_20' ) start [2025-01-30 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360589', 'tblTempVendorCDR_20' ) end [2025-01-30 02:26:19] Production.INFO: ProcessCDR(1,14360589,1,1,2) [2025-01-30 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360589', 'tblTempUsageDetail_20' ) start [2025-01-30 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360589', 'tblTempUsageDetail_20' ) end [2025-01-30 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:26:22] Production.INFO: ==6213== Releasing lock... [2025-01-30 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:26:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:27:05 [end_date_ymd] => 2025-01-30 02:27:05 [RateCDR] => 1 ) [2025-01-30 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:27:05' and `end` < '2025-01-30 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:27:18] Production.INFO: count ==2191 [2025-01-30 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:27:05 - End Time 2025-01-30 02:27:05 [2025-01-30 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360594', 'tblTempUsageDetail_20' ) start [2025-01-30 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360594', 'tblTempUsageDetail_20' ) end [2025-01-30 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360594', 'tblTempVendorCDR_20' ) start [2025-01-30 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360594', 'tblTempVendorCDR_20' ) end [2025-01-30 02:27:19] Production.INFO: ProcessCDR(1,14360594,1,1,2) [2025-01-30 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360594', 'tblTempUsageDetail_20' ) start [2025-01-30 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360594', 'tblTempUsageDetail_20' ) end [2025-01-30 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:27:22] Production.INFO: ==6306== Releasing lock... [2025-01-30 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:27:22] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:28:04 [end_date_ymd] => 2025-01-30 02:28:04 [RateCDR] => 1 ) [2025-01-30 02: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-29 23:28:04' and `end` < '2025-01-30 02: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-30 02:28:17] Production.INFO: count ==2164 [2025-01-30 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:28:04 - End Time 2025-01-30 02:28:04 [2025-01-30 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360599', 'tblTempUsageDetail_20' ) start [2025-01-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360599', 'tblTempUsageDetail_20' ) end [2025-01-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360599', 'tblTempVendorCDR_20' ) start [2025-01-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360599', 'tblTempVendorCDR_20' ) end [2025-01-30 02:28:18] Production.INFO: ProcessCDR(1,14360599,1,1,2) [2025-01-30 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360599', 'tblTempUsageDetail_20' ) start [2025-01-30 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360599', 'tblTempUsageDetail_20' ) end [2025-01-30 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:28:21] Production.INFO: ==6398== Releasing lock... [2025-01-30 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:28:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-30 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:29:05 [end_date_ymd] => 2025-01-30 02:29:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:29:05' and `end` < '2025-01-30 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-30 02:29:18] Production.INFO: count ==2142 [2025-01-30 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:29:05 - End Time 2025-01-30 02:29:05 [2025-01-30 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360604', 'tblTempUsageDetail_20' ) start [2025-01-30 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360604', 'tblTempUsageDetail_20' ) end [2025-01-30 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360604', 'tblTempVendorCDR_20' ) start [2025-01-30 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360604', 'tblTempVendorCDR_20' ) end [2025-01-30 02:29:19] Production.INFO: ProcessCDR(1,14360604,1,1,2) [2025-01-30 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360604', 'tblTempUsageDetail_20' ) start [2025-01-30 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360604', 'tblTempUsageDetail_20' ) end [2025-01-30 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:29:22] Production.INFO: ==6483== Releasing lock... [2025-01-30 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:29:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:30:05 [end_date_ymd] => 2025-01-30 02:30:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:30:05' and `end` < '2025-01-30 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-30 02:30:18] Production.INFO: count ==2114 [2025-01-30 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:30:05 - End Time 2025-01-30 02:30:05 [2025-01-30 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360609', 'tblTempUsageDetail_20' ) start [2025-01-30 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360609', 'tblTempUsageDetail_20' ) end [2025-01-30 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360609', 'tblTempVendorCDR_20' ) start [2025-01-30 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360609', 'tblTempVendorCDR_20' ) end [2025-01-30 02:30:19] Production.INFO: ProcessCDR(1,14360609,1,1,2) [2025-01-30 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360609', 'tblTempUsageDetail_20' ) start [2025-01-30 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360609', 'tblTempUsageDetail_20' ) end [2025-01-30 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:30:22] Production.INFO: ==6608== Releasing lock... [2025-01-30 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:30:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-30 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:31:05 [end_date_ymd] => 2025-01-30 02:31:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:31:05' and `end` < '2025-01-30 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-30 02:31:17] Production.INFO: count ==2120 [2025-01-30 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:31:05 - End Time 2025-01-30 02:31:05 [2025-01-30 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360615', 'tblTempUsageDetail_20' ) start [2025-01-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360615', 'tblTempUsageDetail_20' ) end [2025-01-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360615', 'tblTempVendorCDR_20' ) start [2025-01-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360615', 'tblTempVendorCDR_20' ) end [2025-01-30 02:31:18] Production.INFO: ProcessCDR(1,14360615,1,1,2) [2025-01-30 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360615', 'tblTempUsageDetail_20' ) start [2025-01-30 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360615', 'tblTempUsageDetail_20' ) end [2025-01-30 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:31:21] Production.INFO: ==6697== Releasing lock... [2025-01-30 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:31:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:32:05 [end_date_ymd] => 2025-01-30 02:32:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:32:05' and `end` < '2025-01-30 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-30 02:32:18] Production.INFO: count ==2365 [2025-01-30 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:32:05 - End Time 2025-01-30 02:32:05 [2025-01-30 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360620', 'tblTempUsageDetail_20' ) start [2025-01-30 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360620', 'tblTempUsageDetail_20' ) end [2025-01-30 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360620', 'tblTempVendorCDR_20' ) start [2025-01-30 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360620', 'tblTempVendorCDR_20' ) end [2025-01-30 02:32:19] Production.INFO: ProcessCDR(1,14360620,1,1,2) [2025-01-30 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360620', 'tblTempUsageDetail_20' ) start [2025-01-30 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360620', 'tblTempUsageDetail_20' ) end [2025-01-30 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:32:23] Production.INFO: ==6784== Releasing lock... [2025-01-30 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:32:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-30 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:33:04 [end_date_ymd] => 2025-01-30 02:33:04 [RateCDR] => 1 ) [2025-01-30 02: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-29 23:33:04' and `end` < '2025-01-30 02: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-30 02:33:18] Production.INFO: count ==2328 [2025-01-30 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:33:04 - End Time 2025-01-30 02:33:04 [2025-01-30 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360625', 'tblTempUsageDetail_20' ) start [2025-01-30 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360625', 'tblTempUsageDetail_20' ) end [2025-01-30 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360625', 'tblTempVendorCDR_20' ) start [2025-01-30 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360625', 'tblTempVendorCDR_20' ) end [2025-01-30 02:33:19] Production.INFO: ProcessCDR(1,14360625,1,1,2) [2025-01-30 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360625', 'tblTempUsageDetail_20' ) start [2025-01-30 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360625', 'tblTempUsageDetail_20' ) end [2025-01-30 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:33:22] Production.INFO: ==6868== Releasing lock... [2025-01-30 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:33:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:34:05 [end_date_ymd] => 2025-01-30 02:34:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:34:05' and `end` < '2025-01-30 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-30 02:34:19] Production.INFO: count ==2291 [2025-01-30 02:34:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:34:05 - End Time 2025-01-30 02:34:05 [2025-01-30 02:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360630', 'tblTempUsageDetail_20' ) start [2025-01-30 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360630', 'tblTempUsageDetail_20' ) end [2025-01-30 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360630', 'tblTempVendorCDR_20' ) start [2025-01-30 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360630', 'tblTempVendorCDR_20' ) end [2025-01-30 02:34:20] Production.INFO: ProcessCDR(1,14360630,1,1,2) [2025-01-30 02:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360630', 'tblTempUsageDetail_20' ) start [2025-01-30 02:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360630', 'tblTempUsageDetail_20' ) end [2025-01-30 02:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:34:24] Production.INFO: ==6954== Releasing lock... [2025-01-30 02:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:34:24] Production.INFO: 46 MB #Memory Used# [2025-01-30 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:35:05 [end_date_ymd] => 2025-01-30 02:35:05 [RateCDR] => 1 ) [2025-01-30 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:35:05' and `end` < '2025-01-30 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:35:17] Production.INFO: count ==2257 [2025-01-30 02:35:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:35:05 - End Time 2025-01-30 02:35:05 [2025-01-30 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360635', 'tblTempUsageDetail_20' ) start [2025-01-30 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360635', 'tblTempUsageDetail_20' ) end [2025-01-30 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360635', 'tblTempVendorCDR_20' ) start [2025-01-30 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360635', 'tblTempVendorCDR_20' ) end [2025-01-30 02:35:19] Production.INFO: ProcessCDR(1,14360635,1,1,2) [2025-01-30 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360635', 'tblTempUsageDetail_20' ) start [2025-01-30 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360635', 'tblTempUsageDetail_20' ) end [2025-01-30 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:35:22] Production.INFO: ==7043== Releasing lock... [2025-01-30 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:35:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:36:05 [end_date_ymd] => 2025-01-30 02:36:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:36:05' and `end` < '2025-01-30 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-30 02:36:19] Production.INFO: count ==2232 [2025-01-30 02:36:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:36:05 - End Time 2025-01-30 02:36:05 [2025-01-30 02:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360640', 'tblTempUsageDetail_20' ) start [2025-01-30 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360640', 'tblTempUsageDetail_20' ) end [2025-01-30 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360640', 'tblTempVendorCDR_20' ) start [2025-01-30 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360640', 'tblTempVendorCDR_20' ) end [2025-01-30 02:36:20] Production.INFO: ProcessCDR(1,14360640,1,1,2) [2025-01-30 02:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360640', 'tblTempUsageDetail_20' ) start [2025-01-30 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360640', 'tblTempUsageDetail_20' ) end [2025-01-30 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:36:23] Production.INFO: ==7130== Releasing lock... [2025-01-30 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:36:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:37:05 [end_date_ymd] => 2025-01-30 02:37:05 [RateCDR] => 1 ) [2025-01-30 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:37:05' and `end` < '2025-01-30 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:37:19] Production.INFO: count ==2232 [2025-01-30 02:37:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:37:05 - End Time 2025-01-30 02:37:05 [2025-01-30 02:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360645', 'tblTempUsageDetail_20' ) start [2025-01-30 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360645', 'tblTempUsageDetail_20' ) end [2025-01-30 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360645', 'tblTempVendorCDR_20' ) start [2025-01-30 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360645', 'tblTempVendorCDR_20' ) end [2025-01-30 02:37:20] Production.INFO: ProcessCDR(1,14360645,1,1,2) [2025-01-30 02:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360645', 'tblTempUsageDetail_20' ) start [2025-01-30 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360645', 'tblTempUsageDetail_20' ) end [2025-01-30 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:37:23] Production.INFO: ==7223== Releasing lock... [2025-01-30 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:37:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:38:05 [end_date_ymd] => 2025-01-30 02:38:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:38:05' and `end` < '2025-01-30 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-30 02:38:18] Production.INFO: count ==2232 [2025-01-30 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:38:05 - End Time 2025-01-30 02:38:05 [2025-01-30 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360650', 'tblTempUsageDetail_20' ) start [2025-01-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360650', 'tblTempUsageDetail_20' ) end [2025-01-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360650', 'tblTempVendorCDR_20' ) start [2025-01-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360650', 'tblTempVendorCDR_20' ) end [2025-01-30 02:38:19] Production.INFO: ProcessCDR(1,14360650,1,1,2) [2025-01-30 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360650', 'tblTempUsageDetail_20' ) start [2025-01-30 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360650', 'tblTempUsageDetail_20' ) end [2025-01-30 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:38:22] Production.INFO: ==7316== Releasing lock... [2025-01-30 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:38:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:39:05 [end_date_ymd] => 2025-01-30 02:39:05 [RateCDR] => 1 ) [2025-01-30 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:39:05' and `end` < '2025-01-30 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:39:18] Production.INFO: count ==2219 [2025-01-30 02:39:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:39:05 - End Time 2025-01-30 02:39:05 [2025-01-30 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360654', 'tblTempUsageDetail_20' ) start [2025-01-30 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360654', 'tblTempUsageDetail_20' ) end [2025-01-30 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360654', 'tblTempVendorCDR_20' ) start [2025-01-30 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360654', 'tblTempVendorCDR_20' ) end [2025-01-30 02:39:20] Production.INFO: ProcessCDR(1,14360654,1,1,2) [2025-01-30 02:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360654', 'tblTempUsageDetail_20' ) start [2025-01-30 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360654', 'tblTempUsageDetail_20' ) end [2025-01-30 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:39:22] Production.INFO: ==7403== Releasing lock... [2025-01-30 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:39:22] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:40:06 [end_date_ymd] => 2025-01-30 02:40:06 [RateCDR] => 1 ) [2025-01-30 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-29 23:40:06' and `end` < '2025-01-30 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-30 02:40:19] Production.INFO: count ==2197 [2025-01-30 02:40:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:40:06 - End Time 2025-01-30 02:40:06 [2025-01-30 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360661', 'tblTempUsageDetail_20' ) start [2025-01-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360661', 'tblTempUsageDetail_20' ) end [2025-01-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360661', 'tblTempVendorCDR_20' ) start [2025-01-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360661', 'tblTempVendorCDR_20' ) end [2025-01-30 02:40:20] Production.INFO: ProcessCDR(1,14360661,1,1,2) [2025-01-30 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360661', 'tblTempUsageDetail_20' ) start [2025-01-30 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360661', 'tblTempUsageDetail_20' ) end [2025-01-30 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:40:23] Production.INFO: ==7491== Releasing lock... [2025-01-30 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:40:23] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:41:05 [end_date_ymd] => 2025-01-30 02:41:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:41:05' and `end` < '2025-01-30 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-30 02:41:19] Production.INFO: count ==2198 [2025-01-30 02:41:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:41:05 - End Time 2025-01-30 02:41:05 [2025-01-30 02:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360666', 'tblTempUsageDetail_20' ) start [2025-01-30 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360666', 'tblTempUsageDetail_20' ) end [2025-01-30 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360666', 'tblTempVendorCDR_20' ) start [2025-01-30 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360666', 'tblTempVendorCDR_20' ) end [2025-01-30 02:41:20] Production.INFO: ProcessCDR(1,14360666,1,1,2) [2025-01-30 02:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360666', 'tblTempUsageDetail_20' ) start [2025-01-30 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360666', 'tblTempUsageDetail_20' ) end [2025-01-30 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:41:23] Production.INFO: ==7587== Releasing lock... [2025-01-30 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:41:23] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:42:05 [end_date_ymd] => 2025-01-30 02:42:05 [RateCDR] => 1 ) [2025-01-30 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:42:05' and `end` < '2025-01-30 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:42:18] Production.INFO: count ==2198 [2025-01-30 02:42:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:42:05 - End Time 2025-01-30 02:42:05 [2025-01-30 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360671', 'tblTempUsageDetail_20' ) start [2025-01-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360671', 'tblTempUsageDetail_20' ) end [2025-01-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360671', 'tblTempVendorCDR_20' ) start [2025-01-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360671', 'tblTempVendorCDR_20' ) end [2025-01-30 02:42:19] Production.INFO: ProcessCDR(1,14360671,1,1,2) [2025-01-30 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360671', 'tblTempUsageDetail_20' ) start [2025-01-30 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360671', 'tblTempUsageDetail_20' ) end [2025-01-30 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:42:22] Production.INFO: ==7674== Releasing lock... [2025-01-30 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:42:22] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:43:05 [end_date_ymd] => 2025-01-30 02:43:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:43:05' and `end` < '2025-01-30 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-30 02:43:18] Production.INFO: count ==2198 [2025-01-30 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:43:05 - End Time 2025-01-30 02:43:05 [2025-01-30 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360676', 'tblTempUsageDetail_20' ) start [2025-01-30 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360676', 'tblTempUsageDetail_20' ) end [2025-01-30 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360676', 'tblTempVendorCDR_20' ) start [2025-01-30 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360676', 'tblTempVendorCDR_20' ) end [2025-01-30 02:43:19] Production.INFO: ProcessCDR(1,14360676,1,1,2) [2025-01-30 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360676', 'tblTempUsageDetail_20' ) start [2025-01-30 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360676', 'tblTempUsageDetail_20' ) end [2025-01-30 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:43:21] Production.INFO: ==7761== Releasing lock... [2025-01-30 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:43:21] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:44:06 [end_date_ymd] => 2025-01-30 02:44:06 [RateCDR] => 1 ) [2025-01-30 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:44:06' and `end` < '2025-01-30 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:44:19] Production.INFO: count ==2198 [2025-01-30 02:44:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:44:06 - End Time 2025-01-30 02:44:06 [2025-01-30 02:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360681', 'tblTempUsageDetail_20' ) start [2025-01-30 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360681', 'tblTempUsageDetail_20' ) end [2025-01-30 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360681', 'tblTempVendorCDR_20' ) start [2025-01-30 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360681', 'tblTempVendorCDR_20' ) end [2025-01-30 02:44:20] Production.INFO: ProcessCDR(1,14360681,1,1,2) [2025-01-30 02:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360681', 'tblTempUsageDetail_20' ) start [2025-01-30 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360681', 'tblTempUsageDetail_20' ) end [2025-01-30 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:44:23] Production.INFO: ==7857== Releasing lock... [2025-01-30 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:44:23] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:45:05 [end_date_ymd] => 2025-01-30 02:45:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:45:05' and `end` < '2025-01-30 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-30 02:45:18] Production.INFO: count ==2197 [2025-01-30 02:45:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:45:05 - End Time 2025-01-30 02:45:05 [2025-01-30 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360686', 'tblTempUsageDetail_20' ) start [2025-01-30 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360686', 'tblTempUsageDetail_20' ) end [2025-01-30 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360686', 'tblTempVendorCDR_20' ) start [2025-01-30 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360686', 'tblTempVendorCDR_20' ) end [2025-01-30 02:45:19] Production.INFO: ProcessCDR(1,14360686,1,1,2) [2025-01-30 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360686', 'tblTempUsageDetail_20' ) start [2025-01-30 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360686', 'tblTempUsageDetail_20' ) end [2025-01-30 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:45:22] Production.INFO: ==8007== Releasing lock... [2025-01-30 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:45:22] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:46:05 [end_date_ymd] => 2025-01-30 02:46:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:46:05' and `end` < '2025-01-30 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-30 02:46:19] Production.INFO: count ==2197 [2025-01-30 02:46:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:46:05 - End Time 2025-01-30 02:46:05 [2025-01-30 02:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360691', 'tblTempUsageDetail_20' ) start [2025-01-30 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360691', 'tblTempUsageDetail_20' ) end [2025-01-30 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360691', 'tblTempVendorCDR_20' ) start [2025-01-30 02:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360691', 'tblTempVendorCDR_20' ) end [2025-01-30 02:46:20] Production.INFO: ProcessCDR(1,14360691,1,1,2) [2025-01-30 02:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360691', 'tblTempUsageDetail_20' ) start [2025-01-30 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360691', 'tblTempUsageDetail_20' ) end [2025-01-30 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:46:23] Production.INFO: ==8117== Releasing lock... [2025-01-30 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:46:23] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:47:05 [end_date_ymd] => 2025-01-30 02:47:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:47:05' and `end` < '2025-01-30 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-30 02:47:19] Production.INFO: count ==2197 [2025-01-30 02:47:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:47:05 - End Time 2025-01-30 02:47:05 [2025-01-30 02:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360696', 'tblTempUsageDetail_20' ) start [2025-01-30 02:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360696', 'tblTempUsageDetail_20' ) end [2025-01-30 02:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360696', 'tblTempVendorCDR_20' ) start [2025-01-30 02:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360696', 'tblTempVendorCDR_20' ) end [2025-01-30 02:47:20] Production.INFO: ProcessCDR(1,14360696,1,1,2) [2025-01-30 02:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360696', 'tblTempUsageDetail_20' ) start [2025-01-30 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360696', 'tblTempUsageDetail_20' ) end [2025-01-30 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:47:23] Production.INFO: ==8223== Releasing lock... [2025-01-30 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:47:23] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:48:05 [end_date_ymd] => 2025-01-30 02:48:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:48:05' and `end` < '2025-01-30 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-30 02:48:19] Production.INFO: count ==2185 [2025-01-30 02:48:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:48:05 - End Time 2025-01-30 02:48:05 [2025-01-30 02:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360701', 'tblTempUsageDetail_20' ) start [2025-01-30 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360701', 'tblTempUsageDetail_20' ) end [2025-01-30 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360701', 'tblTempVendorCDR_20' ) start [2025-01-30 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360701', 'tblTempVendorCDR_20' ) end [2025-01-30 02:48:20] Production.INFO: ProcessCDR(1,14360701,1,1,2) [2025-01-30 02:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360701', 'tblTempUsageDetail_20' ) start [2025-01-30 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360701', 'tblTempUsageDetail_20' ) end [2025-01-30 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:48:23] Production.INFO: ==8321== Releasing lock... [2025-01-30 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:48:23] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:49:05 [end_date_ymd] => 2025-01-30 02:49:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:49:05' and `end` < '2025-01-30 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-30 02:49:17] Production.INFO: count ==2179 [2025-01-30 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:49:05 - End Time 2025-01-30 02:49:05 [2025-01-30 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360706', 'tblTempUsageDetail_20' ) start [2025-01-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360706', 'tblTempUsageDetail_20' ) end [2025-01-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360706', 'tblTempVendorCDR_20' ) start [2025-01-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360706', 'tblTempVendorCDR_20' ) end [2025-01-30 02:49:18] Production.INFO: ProcessCDR(1,14360706,1,1,2) [2025-01-30 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360706', 'tblTempUsageDetail_20' ) start [2025-01-30 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360706', 'tblTempUsageDetail_20' ) end [2025-01-30 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:49:21] Production.INFO: ==8402== Releasing lock... [2025-01-30 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:49:21] Production.INFO: 45 MB #Memory Used# [2025-01-30 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:50:06 [end_date_ymd] => 2025-01-30 02:50:06 [RateCDR] => 1 ) [2025-01-30 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:50:06' and `end` < '2025-01-30 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:50:19] Production.INFO: count ==2176 [2025-01-30 02:50:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:50:06 - End Time 2025-01-30 02:50:06 [2025-01-30 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360712', 'tblTempUsageDetail_20' ) start [2025-01-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360712', 'tblTempUsageDetail_20' ) end [2025-01-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360712', 'tblTempVendorCDR_20' ) start [2025-01-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360712', 'tblTempVendorCDR_20' ) end [2025-01-30 02:50:20] Production.INFO: ProcessCDR(1,14360712,1,1,2) [2025-01-30 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360712', 'tblTempUsageDetail_20' ) start [2025-01-30 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360712', 'tblTempUsageDetail_20' ) end [2025-01-30 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:50:23] Production.INFO: ==8491== Releasing lock... [2025-01-30 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:50:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:51:06 [end_date_ymd] => 2025-01-30 02:51:06 [RateCDR] => 1 ) [2025-01-30 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:51:06' and `end` < '2025-01-30 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:51:19] Production.INFO: count ==2148 [2025-01-30 02:51:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:51:06 - End Time 2025-01-30 02:51:06 [2025-01-30 02:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360717', 'tblTempUsageDetail_20' ) start [2025-01-30 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360717', 'tblTempUsageDetail_20' ) end [2025-01-30 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360717', 'tblTempVendorCDR_20' ) start [2025-01-30 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360717', 'tblTempVendorCDR_20' ) end [2025-01-30 02:51:20] Production.INFO: ProcessCDR(1,14360717,1,1,2) [2025-01-30 02:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360717', 'tblTempUsageDetail_20' ) start [2025-01-30 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360717', 'tblTempUsageDetail_20' ) end [2025-01-30 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:51:23] Production.INFO: ==8572== Releasing lock... [2025-01-30 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:51:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:52:05 [end_date_ymd] => 2025-01-30 02:52:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:52:05' and `end` < '2025-01-30 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-30 02:52:19] Production.INFO: count ==2120 [2025-01-30 02:52:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:52:05 - End Time 2025-01-30 02:52:05 [2025-01-30 02:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360722', 'tblTempUsageDetail_20' ) start [2025-01-30 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360722', 'tblTempUsageDetail_20' ) end [2025-01-30 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360722', 'tblTempVendorCDR_20' ) start [2025-01-30 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360722', 'tblTempVendorCDR_20' ) end [2025-01-30 02:52:20] Production.INFO: ProcessCDR(1,14360722,1,1,2) [2025-01-30 02:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360722', 'tblTempUsageDetail_20' ) start [2025-01-30 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360722', 'tblTempUsageDetail_20' ) end [2025-01-30 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:52:23] Production.INFO: ==8660== Releasing lock... [2025-01-30 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:52:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:53:06 [end_date_ymd] => 2025-01-30 02:53:06 [RateCDR] => 1 ) [2025-01-30 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 23:53:06' and `end` < '2025-01-30 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 02:53:20] Production.INFO: count ==2115 [2025-01-30 02:53:21] Production.ERROR: pbx CDR StartTime 2025-01-29 23:53:06 - End Time 2025-01-30 02:53:06 [2025-01-30 02:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360727', 'tblTempUsageDetail_20' ) start [2025-01-30 02:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360727', 'tblTempUsageDetail_20' ) end [2025-01-30 02:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360727', 'tblTempVendorCDR_20' ) start [2025-01-30 02:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360727', 'tblTempVendorCDR_20' ) end [2025-01-30 02:53:21] Production.INFO: ProcessCDR(1,14360727,1,1,2) [2025-01-30 02:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360727', 'tblTempUsageDetail_20' ) start [2025-01-30 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360727', 'tblTempUsageDetail_20' ) end [2025-01-30 02:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:53:24] Production.INFO: ==8752== Releasing lock... [2025-01-30 02:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:53:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:54:05 [end_date_ymd] => 2025-01-30 02:54:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:54:05' and `end` < '2025-01-30 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-30 02:54:17] Production.INFO: count ==2111 [2025-01-30 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:54:05 - End Time 2025-01-30 02:54:05 [2025-01-30 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360732', 'tblTempUsageDetail_20' ) start [2025-01-30 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360732', 'tblTempUsageDetail_20' ) end [2025-01-30 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360732', 'tblTempVendorCDR_20' ) start [2025-01-30 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360732', 'tblTempVendorCDR_20' ) end [2025-01-30 02:54:18] Production.INFO: ProcessCDR(1,14360732,1,1,2) [2025-01-30 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360732', 'tblTempUsageDetail_20' ) start [2025-01-30 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360732', 'tblTempUsageDetail_20' ) end [2025-01-30 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:54:22] Production.INFO: ==8835== Releasing lock... [2025-01-30 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:54:22] Production.INFO: 44 MB #Memory Used# [2025-01-30 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:55:05 [end_date_ymd] => 2025-01-30 02:55:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:55:05' and `end` < '2025-01-30 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-30 02:55:19] Production.INFO: count ==2080 [2025-01-30 02:55:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:55:05 - End Time 2025-01-30 02:55:05 [2025-01-30 02:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360737', 'tblTempUsageDetail_20' ) start [2025-01-30 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360737', 'tblTempUsageDetail_20' ) end [2025-01-30 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360737', 'tblTempVendorCDR_20' ) start [2025-01-30 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360737', 'tblTempVendorCDR_20' ) end [2025-01-30 02:55:20] Production.INFO: ProcessCDR(1,14360737,1,1,2) [2025-01-30 02:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360737', 'tblTempUsageDetail_20' ) start [2025-01-30 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360737', 'tblTempUsageDetail_20' ) end [2025-01-30 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:55:23] Production.INFO: ==8923== Releasing lock... [2025-01-30 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:55:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-30 02:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:56:04 [end_date_ymd] => 2025-01-30 02:56:04 [RateCDR] => 1 ) [2025-01-30 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-29 23:56:04' and `end` < '2025-01-30 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-30 02:56:17] Production.INFO: count ==2051 [2025-01-30 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-29 23:56:04 - End Time 2025-01-30 02:56:04 [2025-01-30 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360742', 'tblTempUsageDetail_20' ) start [2025-01-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360742', 'tblTempUsageDetail_20' ) end [2025-01-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360742', 'tblTempVendorCDR_20' ) start [2025-01-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360742', 'tblTempVendorCDR_20' ) end [2025-01-30 02:56:18] Production.INFO: ProcessCDR(1,14360742,1,1,2) [2025-01-30 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360742', 'tblTempUsageDetail_20' ) start [2025-01-30 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360742', 'tblTempUsageDetail_20' ) end [2025-01-30 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:56:21] Production.INFO: ==9006== Releasing lock... [2025-01-30 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:56:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-30 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:57:05 [end_date_ymd] => 2025-01-30 02:57:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:57:05' and `end` < '2025-01-30 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-30 02:57:19] Production.INFO: count ==2019 [2025-01-30 02:57:20] Production.ERROR: pbx CDR StartTime 2025-01-29 23:57:05 - End Time 2025-01-30 02:57:05 [2025-01-30 02:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360747', 'tblTempUsageDetail_20' ) start [2025-01-30 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360747', 'tblTempUsageDetail_20' ) end [2025-01-30 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360747', 'tblTempVendorCDR_20' ) start [2025-01-30 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360747', 'tblTempVendorCDR_20' ) end [2025-01-30 02:57:20] Production.INFO: ProcessCDR(1,14360747,1,1,2) [2025-01-30 02:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360747', 'tblTempUsageDetail_20' ) start [2025-01-30 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360747', 'tblTempUsageDetail_20' ) end [2025-01-30 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:57:23] Production.INFO: ==9088== Releasing lock... [2025-01-30 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:57:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-30 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:58:05 [end_date_ymd] => 2025-01-30 02:58:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:58:05' and `end` < '2025-01-30 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-30 02:58:18] Production.INFO: count ==2001 [2025-01-30 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:58:05 - End Time 2025-01-30 02:58:05 [2025-01-30 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360752', 'tblTempUsageDetail_20' ) start [2025-01-30 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360752', 'tblTempUsageDetail_20' ) end [2025-01-30 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360752', 'tblTempVendorCDR_20' ) start [2025-01-30 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360752', 'tblTempVendorCDR_20' ) end [2025-01-30 02:58:19] Production.INFO: ProcessCDR(1,14360752,1,1,2) [2025-01-30 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360752', 'tblTempUsageDetail_20' ) start [2025-01-30 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360752', 'tblTempUsageDetail_20' ) end [2025-01-30 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:58:23] Production.INFO: ==9172== Releasing lock... [2025-01-30 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:58:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-30 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 23:59:05 [end_date_ymd] => 2025-01-30 02:59:05 [RateCDR] => 1 ) [2025-01-30 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-29 23:59:05' and `end` < '2025-01-30 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-30 02:59:18] Production.INFO: count ==1988 [2025-01-30 02:59:19] Production.ERROR: pbx CDR StartTime 2025-01-29 23:59:05 - End Time 2025-01-30 02:59:05 [2025-01-30 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360757', 'tblTempUsageDetail_20' ) start [2025-01-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360757', 'tblTempUsageDetail_20' ) end [2025-01-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360757', 'tblTempVendorCDR_20' ) start [2025-01-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360757', 'tblTempVendorCDR_20' ) end [2025-01-30 02:59:19] Production.INFO: ProcessCDR(1,14360757,1,1,2) [2025-01-30 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360757', 'tblTempUsageDetail_20' ) start [2025-01-30 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360757', 'tblTempUsageDetail_20' ) end [2025-01-30 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 02:59:22] Production.INFO: ==9254== Releasing lock... [2025-01-30 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 02:59:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-30 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:00:06 [end_date_ymd] => 2025-01-30 03:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 00:00:06' and `end` < '2025-01-30 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-30 03:00:19] Production.INFO: count ==1956 [2025-01-30 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:00:06 - End Time 2025-01-30 03:00:06 [2025-01-30 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360763', 'tblTempUsageDetail_20' ) start [2025-01-30 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360763', 'tblTempUsageDetail_20' ) end [2025-01-30 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360763', 'tblTempVendorCDR_20' ) start [2025-01-30 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360763', 'tblTempVendorCDR_20' ) end [2025-01-30 03:00:20] Production.INFO: ProcessCDR(1,14360763,1,1,2) [2025-01-30 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360763', 'tblTempUsageDetail_20' ) start [2025-01-30 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360763', 'tblTempUsageDetail_20' ) end [2025-01-30 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:00:23] Production.INFO: ==9342== Releasing lock... [2025-01-30 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:00:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-30 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:01:04 [end_date_ymd] => 2025-01-30 03:01:04 [RateCDR] => 1 ) [2025-01-30 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-30 00:01:04' and `end` < '2025-01-30 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-30 03:01:18] Production.INFO: count ==1926 [2025-01-30 03:01:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:01:04 - End Time 2025-01-30 03:01:04 [2025-01-30 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360768', 'tblTempUsageDetail_20' ) start [2025-01-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360768', 'tblTempUsageDetail_20' ) end [2025-01-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360768', 'tblTempVendorCDR_20' ) start [2025-01-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360768', 'tblTempVendorCDR_20' ) end [2025-01-30 03:01:19] Production.INFO: ProcessCDR(1,14360768,1,1,2) [2025-01-30 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360768', 'tblTempUsageDetail_20' ) start [2025-01-30 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360768', 'tblTempUsageDetail_20' ) end [2025-01-30 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:01:22] Production.INFO: ==9476== Releasing lock... [2025-01-30 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:01:22] Production.INFO: 43 MB #Memory Used# [2025-01-30 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:02:05 [end_date_ymd] => 2025-01-30 03:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:02:05' and `end` < '2025-01-30 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-30 03:02:18] Production.INFO: count ==1911 [2025-01-30 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:02:05 - End Time 2025-01-30 03:02:05 [2025-01-30 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360773', 'tblTempUsageDetail_20' ) start [2025-01-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360773', 'tblTempUsageDetail_20' ) end [2025-01-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360773', 'tblTempVendorCDR_20' ) start [2025-01-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360773', 'tblTempVendorCDR_20' ) end [2025-01-30 03:02:19] Production.INFO: ProcessCDR(1,14360773,1,1,2) [2025-01-30 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360773', 'tblTempUsageDetail_20' ) start [2025-01-30 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360773', 'tblTempUsageDetail_20' ) end [2025-01-30 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:02:22] Production.INFO: ==9634== Releasing lock... [2025-01-30 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:02:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:03:05 [end_date_ymd] => 2025-01-30 03:03:05 [RateCDR] => 1 ) [2025-01-30 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:03:05' and `end` < '2025-01-30 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:03:18] Production.INFO: count ==1878 [2025-01-30 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:03:05 - End Time 2025-01-30 03:03:05 [2025-01-30 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360778', 'tblTempUsageDetail_20' ) start [2025-01-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360778', 'tblTempUsageDetail_20' ) end [2025-01-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360778', 'tblTempVendorCDR_20' ) start [2025-01-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360778', 'tblTempVendorCDR_20' ) end [2025-01-30 03:03:19] Production.INFO: ProcessCDR(1,14360778,1,1,2) [2025-01-30 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360778', 'tblTempUsageDetail_20' ) start [2025-01-30 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360778', 'tblTempUsageDetail_20' ) end [2025-01-30 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:03:22] Production.INFO: ==9715== Releasing lock... [2025-01-30 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:03:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:04:05 [end_date_ymd] => 2025-01-30 03:04:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:04:05' and `end` < '2025-01-30 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-30 03:04:18] Production.INFO: count ==1851 [2025-01-30 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:04:05 - End Time 2025-01-30 03:04:05 [2025-01-30 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360783', 'tblTempUsageDetail_20' ) start [2025-01-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360783', 'tblTempUsageDetail_20' ) end [2025-01-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360783', 'tblTempVendorCDR_20' ) start [2025-01-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360783', 'tblTempVendorCDR_20' ) end [2025-01-30 03:04:18] Production.INFO: ProcessCDR(1,14360783,1,1,2) [2025-01-30 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360783', 'tblTempUsageDetail_20' ) start [2025-01-30 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360783', 'tblTempUsageDetail_20' ) end [2025-01-30 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:04:22] Production.INFO: ==9793== Releasing lock... [2025-01-30 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:04:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-30 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:05:06 [end_date_ymd] => 2025-01-30 03:05:06 [RateCDR] => 1 ) [2025-01-30 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:05:06' and `end` < '2025-01-30 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:05:18] Production.INFO: count ==1817 [2025-01-30 03:05:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:05:06 - End Time 2025-01-30 03:05:06 [2025-01-30 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360788', 'tblTempUsageDetail_20' ) start [2025-01-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360788', 'tblTempUsageDetail_20' ) end [2025-01-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360788', 'tblTempVendorCDR_20' ) start [2025-01-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360788', 'tblTempVendorCDR_20' ) end [2025-01-30 03:05:19] Production.INFO: ProcessCDR(1,14360788,1,1,2) [2025-01-30 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360788', 'tblTempUsageDetail_20' ) start [2025-01-30 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360788', 'tblTempUsageDetail_20' ) end [2025-01-30 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:05:22] Production.INFO: ==9872== Releasing lock... [2025-01-30 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:05:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-30 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:06:05 [end_date_ymd] => 2025-01-30 03:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:06:05' and `end` < '2025-01-30 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-30 03:06:19] Production.INFO: count ==1795 [2025-01-30 03:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:06:05 - End Time 2025-01-30 03:06:05 [2025-01-30 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360793', 'tblTempUsageDetail_20' ) start [2025-01-30 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360793', 'tblTempUsageDetail_20' ) end [2025-01-30 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360793', 'tblTempVendorCDR_20' ) start [2025-01-30 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360793', 'tblTempVendorCDR_20' ) end [2025-01-30 03:06:19] Production.INFO: ProcessCDR(1,14360793,1,1,2) [2025-01-30 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360793', 'tblTempUsageDetail_20' ) start [2025-01-30 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360793', 'tblTempUsageDetail_20' ) end [2025-01-30 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:06:22] Production.INFO: ==10033== Releasing lock... [2025-01-30 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:06:22] Production.INFO: 42 MB #Memory Used# [2025-01-30 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:07:05 [end_date_ymd] => 2025-01-30 03:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:07:05' and `end` < '2025-01-30 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-30 03:07:19] Production.INFO: count ==1771 [2025-01-30 03:07:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:07:05 - End Time 2025-01-30 03:07:05 [2025-01-30 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360798', 'tblTempUsageDetail_20' ) start [2025-01-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360798', 'tblTempUsageDetail_20' ) end [2025-01-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360798', 'tblTempVendorCDR_20' ) start [2025-01-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360798', 'tblTempVendorCDR_20' ) end [2025-01-30 03:07:19] Production.INFO: ProcessCDR(1,14360798,1,1,2) [2025-01-30 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360798', 'tblTempUsageDetail_20' ) start [2025-01-30 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360798', 'tblTempUsageDetail_20' ) end [2025-01-30 03:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:07:23] Production.INFO: ==10112== Releasing lock... [2025-01-30 03:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:07:23] Production.INFO: 42 MB #Memory Used# [2025-01-30 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:08:05 [end_date_ymd] => 2025-01-30 03:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:08:05' and `end` < '2025-01-30 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-30 03:08:18] Production.INFO: count ==1736 [2025-01-30 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:08:05 - End Time 2025-01-30 03:08:05 [2025-01-30 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360803', 'tblTempUsageDetail_20' ) start [2025-01-30 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360803', 'tblTempUsageDetail_20' ) end [2025-01-30 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360803', 'tblTempVendorCDR_20' ) start [2025-01-30 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360803', 'tblTempVendorCDR_20' ) end [2025-01-30 03:08:19] Production.INFO: ProcessCDR(1,14360803,1,1,2) [2025-01-30 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360803', 'tblTempUsageDetail_20' ) start [2025-01-30 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360803', 'tblTempUsageDetail_20' ) end [2025-01-30 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:08:22] Production.INFO: ==10195== Releasing lock... [2025-01-30 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:08:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:09:05 [end_date_ymd] => 2025-01-30 03:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:09:05' and `end` < '2025-01-30 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-30 03:09:19] Production.INFO: count ==1704 [2025-01-30 03:09:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:09:05 - End Time 2025-01-30 03:09:05 [2025-01-30 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360808', 'tblTempUsageDetail_20' ) start [2025-01-30 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360808', 'tblTempUsageDetail_20' ) end [2025-01-30 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360808', 'tblTempVendorCDR_20' ) start [2025-01-30 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360808', 'tblTempVendorCDR_20' ) end [2025-01-30 03:09:19] Production.INFO: ProcessCDR(1,14360808,1,1,2) [2025-01-30 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360808', 'tblTempUsageDetail_20' ) start [2025-01-30 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360808', 'tblTempUsageDetail_20' ) end [2025-01-30 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:09:22] Production.INFO: ==10316== Releasing lock... [2025-01-30 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:10:06 [end_date_ymd] => 2025-01-30 03:10:06 [RateCDR] => 1 ) [2025-01-30 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:10:06' and `end` < '2025-01-30 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:10:18] Production.INFO: count ==1674 [2025-01-30 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:10:06 - End Time 2025-01-30 03:10:06 [2025-01-30 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360814', 'tblTempUsageDetail_20' ) start [2025-01-30 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360814', 'tblTempUsageDetail_20' ) end [2025-01-30 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360814', 'tblTempVendorCDR_20' ) start [2025-01-30 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360814', 'tblTempVendorCDR_20' ) end [2025-01-30 03:10:19] Production.INFO: ProcessCDR(1,14360814,1,1,2) [2025-01-30 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360814', 'tblTempUsageDetail_20' ) start [2025-01-30 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360814', 'tblTempUsageDetail_20' ) end [2025-01-30 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:10:22] Production.INFO: ==10435== Releasing lock... [2025-01-30 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:10:22] Production.INFO: 41 MB #Memory Used# [2025-01-30 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:11:05 [end_date_ymd] => 2025-01-30 03:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:11:05' and `end` < '2025-01-30 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-30 03:11:19] Production.INFO: count ==1651 [2025-01-30 03:11:20] Production.ERROR: pbx CDR StartTime 2025-01-30 00:11:05 - End Time 2025-01-30 03:11:05 [2025-01-30 03:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360819', 'tblTempUsageDetail_20' ) start [2025-01-30 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360819', 'tblTempUsageDetail_20' ) end [2025-01-30 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360819', 'tblTempVendorCDR_20' ) start [2025-01-30 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360819', 'tblTempVendorCDR_20' ) end [2025-01-30 03:11:20] Production.INFO: ProcessCDR(1,14360819,1,1,2) [2025-01-30 03:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360819', 'tblTempUsageDetail_20' ) start [2025-01-30 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360819', 'tblTempUsageDetail_20' ) end [2025-01-30 03:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:11:23] Production.INFO: ==10517== Releasing lock... [2025-01-30 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:11:23] Production.INFO: 41 MB #Memory Used# [2025-01-30 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:12:05 [end_date_ymd] => 2025-01-30 03:12:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:12:05' and `end` < '2025-01-30 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-30 03:12:18] Production.INFO: count ==1638 [2025-01-30 03:12:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:12:05 - End Time 2025-01-30 03:12:05 [2025-01-30 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360824', 'tblTempUsageDetail_20' ) start [2025-01-30 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360824', 'tblTempUsageDetail_20' ) end [2025-01-30 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360824', 'tblTempVendorCDR_20' ) start [2025-01-30 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360824', 'tblTempVendorCDR_20' ) end [2025-01-30 03:12:19] Production.INFO: ProcessCDR(1,14360824,1,1,2) [2025-01-30 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360824', 'tblTempUsageDetail_20' ) start [2025-01-30 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360824', 'tblTempUsageDetail_20' ) end [2025-01-30 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:12:22] Production.INFO: ==10595== Releasing lock... [2025-01-30 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-30 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:13:04 [end_date_ymd] => 2025-01-30 03:13:04 [RateCDR] => 1 ) [2025-01-30 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-30 00:13:04' and `end` < '2025-01-30 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-30 03:13:17] Production.INFO: count ==1608 [2025-01-30 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:13:04 - End Time 2025-01-30 03:13:04 [2025-01-30 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360829', 'tblTempUsageDetail_20' ) start [2025-01-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360829', 'tblTempUsageDetail_20' ) end [2025-01-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360829', 'tblTempVendorCDR_20' ) start [2025-01-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360829', 'tblTempVendorCDR_20' ) end [2025-01-30 03:13:18] Production.INFO: ProcessCDR(1,14360829,1,1,2) [2025-01-30 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360829', 'tblTempUsageDetail_20' ) start [2025-01-30 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360829', 'tblTempUsageDetail_20' ) end [2025-01-30 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:13:21] Production.INFO: ==10752== Releasing lock... [2025-01-30 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:13:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:14:05 [end_date_ymd] => 2025-01-30 03:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:14:05' and `end` < '2025-01-30 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-30 03:14:18] Production.INFO: count ==1595 [2025-01-30 03:14:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:14:05 - End Time 2025-01-30 03:14:05 [2025-01-30 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360834', 'tblTempUsageDetail_20' ) start [2025-01-30 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360834', 'tblTempUsageDetail_20' ) end [2025-01-30 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360834', 'tblTempVendorCDR_20' ) start [2025-01-30 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360834', 'tblTempVendorCDR_20' ) end [2025-01-30 03:14:19] Production.INFO: ProcessCDR(1,14360834,1,1,2) [2025-01-30 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360834', 'tblTempUsageDetail_20' ) start [2025-01-30 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360834', 'tblTempUsageDetail_20' ) end [2025-01-30 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:14:22] Production.INFO: ==10834== Releasing lock... [2025-01-30 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:14:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:15:05 [end_date_ymd] => 2025-01-30 03:15:05 [RateCDR] => 1 ) [2025-01-30 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:15:05' and `end` < '2025-01-30 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:15:17] Production.INFO: count ==1595 [2025-01-30 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:15:05 - End Time 2025-01-30 03:15:05 [2025-01-30 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360839', 'tblTempUsageDetail_20' ) start [2025-01-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360839', 'tblTempUsageDetail_20' ) end [2025-01-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360839', 'tblTempVendorCDR_20' ) start [2025-01-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360839', 'tblTempVendorCDR_20' ) end [2025-01-30 03:15:18] Production.INFO: ProcessCDR(1,14360839,1,1,2) [2025-01-30 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360839', 'tblTempUsageDetail_20' ) start [2025-01-30 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360839', 'tblTempUsageDetail_20' ) end [2025-01-30 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:15:21] Production.INFO: ==10913== Releasing lock... [2025-01-30 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:15:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:16:05 [end_date_ymd] => 2025-01-30 03:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:16:05' and `end` < '2025-01-30 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-30 03:16:18] Production.INFO: count ==1595 [2025-01-30 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:16:05 - End Time 2025-01-30 03:16:05 [2025-01-30 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360844', 'tblTempUsageDetail_20' ) start [2025-01-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360844', 'tblTempUsageDetail_20' ) end [2025-01-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360844', 'tblTempVendorCDR_20' ) start [2025-01-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360844', 'tblTempVendorCDR_20' ) end [2025-01-30 03:16:18] Production.INFO: ProcessCDR(1,14360844,1,1,2) [2025-01-30 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360844', 'tblTempUsageDetail_20' ) start [2025-01-30 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360844', 'tblTempUsageDetail_20' ) end [2025-01-30 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:16:22] Production.INFO: ==11026== Releasing lock... [2025-01-30 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:16:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:17:05 [end_date_ymd] => 2025-01-30 03:17:05 [RateCDR] => 1 ) [2025-01-30 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:17:05' and `end` < '2025-01-30 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:17:18] Production.INFO: count ==1594 [2025-01-30 03:17:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:17:05 - End Time 2025-01-30 03:17:05 [2025-01-30 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360849', 'tblTempUsageDetail_20' ) start [2025-01-30 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360849', 'tblTempUsageDetail_20' ) end [2025-01-30 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360849', 'tblTempVendorCDR_20' ) start [2025-01-30 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360849', 'tblTempVendorCDR_20' ) end [2025-01-30 03:17:19] Production.INFO: ProcessCDR(1,14360849,1,1,2) [2025-01-30 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360849', 'tblTempUsageDetail_20' ) start [2025-01-30 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360849', 'tblTempUsageDetail_20' ) end [2025-01-30 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:17:22] Production.INFO: ==11179== Releasing lock... [2025-01-30 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:17:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:18:05 [end_date_ymd] => 2025-01-30 03:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:18:05' and `end` < '2025-01-30 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-30 03:18:18] Production.INFO: count ==1593 [2025-01-30 03:18:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:18:05 - End Time 2025-01-30 03:18:05 [2025-01-30 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360854', 'tblTempUsageDetail_20' ) start [2025-01-30 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360854', 'tblTempUsageDetail_20' ) end [2025-01-30 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360854', 'tblTempVendorCDR_20' ) start [2025-01-30 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360854', 'tblTempVendorCDR_20' ) end [2025-01-30 03:18:19] Production.INFO: ProcessCDR(1,14360854,1,1,2) [2025-01-30 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360854', 'tblTempUsageDetail_20' ) start [2025-01-30 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360854', 'tblTempUsageDetail_20' ) end [2025-01-30 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:18:22] Production.INFO: ==11254== Releasing lock... [2025-01-30 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:18:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:19:04 [end_date_ymd] => 2025-01-30 03:19:04 [RateCDR] => 1 ) [2025-01-30 03: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-30 00:19:04' and `end` < '2025-01-30 03: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-30 03:19:17] Production.INFO: count ==1593 [2025-01-30 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:19:04 - End Time 2025-01-30 03:19:04 [2025-01-30 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360859', 'tblTempUsageDetail_20' ) start [2025-01-30 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360859', 'tblTempUsageDetail_20' ) end [2025-01-30 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360859', 'tblTempVendorCDR_20' ) start [2025-01-30 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360859', 'tblTempVendorCDR_20' ) end [2025-01-30 03:19:18] Production.INFO: ProcessCDR(1,14360859,1,1,2) [2025-01-30 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360859', 'tblTempUsageDetail_20' ) start [2025-01-30 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360859', 'tblTempUsageDetail_20' ) end [2025-01-30 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:19:21] Production.INFO: ==11325== Releasing lock... [2025-01-30 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:19:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:20:06 [end_date_ymd] => 2025-01-30 03:20:06 [RateCDR] => 1 ) [2025-01-30 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:20:06' and `end` < '2025-01-30 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:20:18] Production.INFO: count ==1587 [2025-01-30 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:20:06 - End Time 2025-01-30 03:20:06 [2025-01-30 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360864', 'tblTempUsageDetail_20' ) start [2025-01-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360864', 'tblTempUsageDetail_20' ) end [2025-01-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360864', 'tblTempVendorCDR_20' ) start [2025-01-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360864', 'tblTempVendorCDR_20' ) end [2025-01-30 03:20:19] Production.INFO: ProcessCDR(1,14360864,1,1,2) [2025-01-30 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360864', 'tblTempUsageDetail_20' ) start [2025-01-30 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360864', 'tblTempUsageDetail_20' ) end [2025-01-30 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:20:22] Production.INFO: ==11406== Releasing lock... [2025-01-30 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:20:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:21:04 [end_date_ymd] => 2025-01-30 03:21:04 [RateCDR] => 1 ) [2025-01-30 03: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-30 00:21:04' and `end` < '2025-01-30 03: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-30 03:21:17] Production.INFO: count ==1573 [2025-01-30 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-30 00:21:04 - End Time 2025-01-30 03:21:04 [2025-01-30 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360870', 'tblTempUsageDetail_20' ) start [2025-01-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360870', 'tblTempUsageDetail_20' ) end [2025-01-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360870', 'tblTempVendorCDR_20' ) start [2025-01-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360870', 'tblTempVendorCDR_20' ) end [2025-01-30 03:21:18] Production.INFO: ProcessCDR(1,14360870,1,1,2) [2025-01-30 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360870', 'tblTempUsageDetail_20' ) start [2025-01-30 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360870', 'tblTempUsageDetail_20' ) end [2025-01-30 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:21:20] Production.INFO: ==11484== Releasing lock... [2025-01-30 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:21:20] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:22:05 [end_date_ymd] => 2025-01-30 03:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:22:05' and `end` < '2025-01-30 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-30 03:22:18] Production.INFO: count ==1555 [2025-01-30 03:22:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:22:05 - End Time 2025-01-30 03:22:05 [2025-01-30 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360875', 'tblTempUsageDetail_20' ) start [2025-01-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360875', 'tblTempUsageDetail_20' ) end [2025-01-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360875', 'tblTempVendorCDR_20' ) start [2025-01-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360875', 'tblTempVendorCDR_20' ) end [2025-01-30 03:22:19] Production.INFO: ProcessCDR(1,14360875,1,1,2) [2025-01-30 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360875', 'tblTempUsageDetail_20' ) start [2025-01-30 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360875', 'tblTempUsageDetail_20' ) end [2025-01-30 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:22:22] Production.INFO: ==11559== Releasing lock... [2025-01-30 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:22:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:23:05 [end_date_ymd] => 2025-01-30 03:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:23:05' and `end` < '2025-01-30 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-30 03:23:19] Production.INFO: count ==1555 [2025-01-30 03:23:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:23:05 - End Time 2025-01-30 03:23:05 [2025-01-30 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360880', 'tblTempUsageDetail_20' ) start [2025-01-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360880', 'tblTempUsageDetail_20' ) end [2025-01-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360880', 'tblTempVendorCDR_20' ) start [2025-01-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360880', 'tblTempVendorCDR_20' ) end [2025-01-30 03:23:19] Production.INFO: ProcessCDR(1,14360880,1,1,2) [2025-01-30 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360880', 'tblTempUsageDetail_20' ) start [2025-01-30 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360880', 'tblTempUsageDetail_20' ) end [2025-01-30 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:23:22] Production.INFO: ==11636== Releasing lock... [2025-01-30 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:23:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:24:05 [end_date_ymd] => 2025-01-30 03:24:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:24:05' and `end` < '2025-01-30 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-30 03:24:18] Production.INFO: count ==1555 [2025-01-30 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:24:05 - End Time 2025-01-30 03:24:05 [2025-01-30 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360885', 'tblTempUsageDetail_20' ) start [2025-01-30 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360885', 'tblTempUsageDetail_20' ) end [2025-01-30 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360885', 'tblTempVendorCDR_20' ) start [2025-01-30 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360885', 'tblTempVendorCDR_20' ) end [2025-01-30 03:24:19] Production.INFO: ProcessCDR(1,14360885,1,1,2) [2025-01-30 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360885', 'tblTempUsageDetail_20' ) start [2025-01-30 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360885', 'tblTempUsageDetail_20' ) end [2025-01-30 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:24:22] Production.INFO: ==11716== Releasing lock... [2025-01-30 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:24:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:25:05 [end_date_ymd] => 2025-01-30 03:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:25:05' and `end` < '2025-01-30 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-30 03:25:18] Production.INFO: count ==1555 [2025-01-30 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:25:05 - End Time 2025-01-30 03:25:05 [2025-01-30 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360890', 'tblTempUsageDetail_20' ) start [2025-01-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360890', 'tblTempUsageDetail_20' ) end [2025-01-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360890', 'tblTempVendorCDR_20' ) start [2025-01-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360890', 'tblTempVendorCDR_20' ) end [2025-01-30 03:25:18] Production.INFO: ProcessCDR(1,14360890,1,1,2) [2025-01-30 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360890', 'tblTempUsageDetail_20' ) start [2025-01-30 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360890', 'tblTempUsageDetail_20' ) end [2025-01-30 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:25:21] Production.INFO: ==11792== Releasing lock... [2025-01-30 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:25:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:26:04 [end_date_ymd] => 2025-01-30 03:26:04 [RateCDR] => 1 ) [2025-01-30 03: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-30 00:26:04' and `end` < '2025-01-30 03: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-30 03:26:18] Production.INFO: count ==1552 [2025-01-30 03:26:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:26:04 - End Time 2025-01-30 03:26:04 [2025-01-30 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360895', 'tblTempUsageDetail_20' ) start [2025-01-30 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360895', 'tblTempUsageDetail_20' ) end [2025-01-30 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360895', 'tblTempVendorCDR_20' ) start [2025-01-30 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360895', 'tblTempVendorCDR_20' ) end [2025-01-30 03:26:19] Production.INFO: ProcessCDR(1,14360895,1,1,2) [2025-01-30 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360895', 'tblTempUsageDetail_20' ) start [2025-01-30 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360895', 'tblTempUsageDetail_20' ) end [2025-01-30 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:26:22] Production.INFO: ==11870== Releasing lock... [2025-01-30 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:26:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:27:05 [end_date_ymd] => 2025-01-30 03:27:05 [RateCDR] => 1 ) [2025-01-30 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:27:05' and `end` < '2025-01-30 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:27:18] Production.INFO: count ==1549 [2025-01-30 03:27:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:27:05 - End Time 2025-01-30 03:27:05 [2025-01-30 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360900', 'tblTempUsageDetail_20' ) start [2025-01-30 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360900', 'tblTempUsageDetail_20' ) end [2025-01-30 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360900', 'tblTempVendorCDR_20' ) start [2025-01-30 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360900', 'tblTempVendorCDR_20' ) end [2025-01-30 03:27:19] Production.INFO: ProcessCDR(1,14360900,1,1,2) [2025-01-30 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360900', 'tblTempUsageDetail_20' ) start [2025-01-30 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360900', 'tblTempUsageDetail_20' ) end [2025-01-30 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:27:22] Production.INFO: ==11944== Releasing lock... [2025-01-30 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:27:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:28:06 [end_date_ymd] => 2025-01-30 03:28:06 [RateCDR] => 1 ) [2025-01-30 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:28:06' and `end` < '2025-01-30 03: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-30 03:28:20] Production.INFO: count ==1549 [2025-01-30 03:28:20] Production.ERROR: pbx CDR StartTime 2025-01-30 00:28:06 - End Time 2025-01-30 03:28:06 [2025-01-30 03:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360905', 'tblTempUsageDetail_20' ) start [2025-01-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360905', 'tblTempUsageDetail_20' ) end [2025-01-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360905', 'tblTempVendorCDR_20' ) start [2025-01-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360905', 'tblTempVendorCDR_20' ) end [2025-01-30 03:28:20] Production.INFO: ProcessCDR(1,14360905,1,1,2) [2025-01-30 03:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360905', 'tblTempUsageDetail_20' ) start [2025-01-30 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360905', 'tblTempUsageDetail_20' ) end [2025-01-30 03:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:28:23] Production.INFO: ==12040== Releasing lock... [2025-01-30 03:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:28:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:29:05 [end_date_ymd] => 2025-01-30 03:29:05 [RateCDR] => 1 ) [2025-01-30 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:29:05' and `end` < '2025-01-30 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:29:19] Production.INFO: count ==1548 [2025-01-30 03:29:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:29:05 - End Time 2025-01-30 03:29:05 [2025-01-30 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360910', 'tblTempUsageDetail_20' ) start [2025-01-30 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360910', 'tblTempUsageDetail_20' ) end [2025-01-30 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360910', 'tblTempVendorCDR_20' ) start [2025-01-30 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360910', 'tblTempVendorCDR_20' ) end [2025-01-30 03:29:19] Production.INFO: ProcessCDR(1,14360910,1,1,2) [2025-01-30 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360910', 'tblTempUsageDetail_20' ) start [2025-01-30 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360910', 'tblTempUsageDetail_20' ) end [2025-01-30 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:29:22] Production.INFO: ==12112== Releasing lock... [2025-01-30 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:29:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:30:06 [end_date_ymd] => 2025-01-30 03:30:06 [RateCDR] => 1 ) [2025-01-30 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:30:06' and `end` < '2025-01-30 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:30:18] Production.INFO: count ==1542 [2025-01-30 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:30:06 - End Time 2025-01-30 03:30:06 [2025-01-30 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360915', 'tblTempUsageDetail_20' ) start [2025-01-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360915', 'tblTempUsageDetail_20' ) end [2025-01-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360915', 'tblTempVendorCDR_20' ) start [2025-01-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360915', 'tblTempVendorCDR_20' ) end [2025-01-30 03:30:19] Production.INFO: ProcessCDR(1,14360915,1,1,2) [2025-01-30 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360915', 'tblTempUsageDetail_20' ) start [2025-01-30 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360915', 'tblTempUsageDetail_20' ) end [2025-01-30 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:30:22] Production.INFO: ==12190== Releasing lock... [2025-01-30 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:30:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 03:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:31:04 [end_date_ymd] => 2025-01-30 03:31:04 [RateCDR] => 1 ) [2025-01-30 03: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-30 00:31:04' and `end` < '2025-01-30 03: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-30 03:31:17] Production.INFO: count ==1508 [2025-01-30 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:31:04 - End Time 2025-01-30 03:31:04 [2025-01-30 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360921', 'tblTempUsageDetail_20' ) start [2025-01-30 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360921', 'tblTempUsageDetail_20' ) end [2025-01-30 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360921', 'tblTempVendorCDR_20' ) start [2025-01-30 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360921', 'tblTempVendorCDR_20' ) end [2025-01-30 03:31:18] Production.INFO: ProcessCDR(1,14360921,1,1,2) [2025-01-30 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360921', 'tblTempUsageDetail_20' ) start [2025-01-30 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360921', 'tblTempUsageDetail_20' ) end [2025-01-30 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:31:21] Production.INFO: ==12264== Releasing lock... [2025-01-30 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:31:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-30 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:32:05 [end_date_ymd] => 2025-01-30 03:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:32:05' and `end` < '2025-01-30 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-30 03:32:19] Production.INFO: count ==1507 [2025-01-30 03:32:20] Production.ERROR: pbx CDR StartTime 2025-01-30 00:32:05 - End Time 2025-01-30 03:32:05 [2025-01-30 03:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360926', 'tblTempUsageDetail_20' ) start [2025-01-30 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360926', 'tblTempUsageDetail_20' ) end [2025-01-30 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360926', 'tblTempVendorCDR_20' ) start [2025-01-30 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360926', 'tblTempVendorCDR_20' ) end [2025-01-30 03:32:20] Production.INFO: ProcessCDR(1,14360926,1,1,2) [2025-01-30 03:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360926', 'tblTempUsageDetail_20' ) start [2025-01-30 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360926', 'tblTempUsageDetail_20' ) end [2025-01-30 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:32:23] Production.INFO: ==12338== Releasing lock... [2025-01-30 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:32:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-30 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:33:05 [end_date_ymd] => 2025-01-30 03:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:33:05' and `end` < '2025-01-30 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-30 03:33:18] Production.INFO: count ==1506 [2025-01-30 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:33:05 - End Time 2025-01-30 03:33:05 [2025-01-30 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360931', 'tblTempUsageDetail_20' ) start [2025-01-30 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360931', 'tblTempUsageDetail_20' ) end [2025-01-30 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360931', 'tblTempVendorCDR_20' ) start [2025-01-30 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360931', 'tblTempVendorCDR_20' ) end [2025-01-30 03:33:19] Production.INFO: ProcessCDR(1,14360931,1,1,2) [2025-01-30 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360931', 'tblTempUsageDetail_20' ) start [2025-01-30 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360931', 'tblTempUsageDetail_20' ) end [2025-01-30 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:33:22] Production.INFO: ==12451== Releasing lock... [2025-01-30 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-30 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:34:05 [end_date_ymd] => 2025-01-30 03:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:34:05' and `end` < '2025-01-30 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-30 03:34:18] Production.INFO: count ==1470 [2025-01-30 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:34:05 - End Time 2025-01-30 03:34:05 [2025-01-30 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360936', 'tblTempUsageDetail_20' ) start [2025-01-30 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360936', 'tblTempUsageDetail_20' ) end [2025-01-30 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360936', 'tblTempVendorCDR_20' ) start [2025-01-30 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360936', 'tblTempVendorCDR_20' ) end [2025-01-30 03:34:19] Production.INFO: ProcessCDR(1,14360936,1,1,2) [2025-01-30 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360936', 'tblTempUsageDetail_20' ) start [2025-01-30 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360936', 'tblTempUsageDetail_20' ) end [2025-01-30 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:34:22] Production.INFO: ==12524== Releasing lock... [2025-01-30 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:34:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-30 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:35:05 [end_date_ymd] => 2025-01-30 03:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:35:05' and `end` < '2025-01-30 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-30 03:35:18] Production.INFO: count ==1409 [2025-01-30 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:35:05 - End Time 2025-01-30 03:35:05 [2025-01-30 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360941', 'tblTempUsageDetail_20' ) start [2025-01-30 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360941', 'tblTempUsageDetail_20' ) end [2025-01-30 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360941', 'tblTempVendorCDR_20' ) start [2025-01-30 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360941', 'tblTempVendorCDR_20' ) end [2025-01-30 03:35:19] Production.INFO: ProcessCDR(1,14360941,1,1,2) [2025-01-30 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360941', 'tblTempUsageDetail_20' ) start [2025-01-30 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360941', 'tblTempUsageDetail_20' ) end [2025-01-30 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:35:22] Production.INFO: ==12598== Releasing lock... [2025-01-30 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:35:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-30 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:36:05 [end_date_ymd] => 2025-01-30 03:36:05 [RateCDR] => 1 ) [2025-01-30 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:36:05' and `end` < '2025-01-30 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:36:18] Production.INFO: count ==1346 [2025-01-30 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:36:05 - End Time 2025-01-30 03:36:05 [2025-01-30 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360946', 'tblTempUsageDetail_20' ) start [2025-01-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360946', 'tblTempUsageDetail_20' ) end [2025-01-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360946', 'tblTempVendorCDR_20' ) start [2025-01-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360946', 'tblTempVendorCDR_20' ) end [2025-01-30 03:36:19] Production.INFO: ProcessCDR(1,14360946,1,1,2) [2025-01-30 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360946', 'tblTempUsageDetail_20' ) start [2025-01-30 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360946', 'tblTempUsageDetail_20' ) end [2025-01-30 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:36:22] Production.INFO: ==12670== Releasing lock... [2025-01-30 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:36:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:37:05 [end_date_ymd] => 2025-01-30 03:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:37:05' and `end` < '2025-01-30 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-30 03:37:19] Production.INFO: count ==1308 [2025-01-30 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:37:05 - End Time 2025-01-30 03:37:05 [2025-01-30 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360951', 'tblTempUsageDetail_20' ) start [2025-01-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360951', 'tblTempUsageDetail_20' ) end [2025-01-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360951', 'tblTempVendorCDR_20' ) start [2025-01-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360951', 'tblTempVendorCDR_20' ) end [2025-01-30 03:37:19] Production.INFO: ProcessCDR(1,14360951,1,1,2) [2025-01-30 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360951', 'tblTempUsageDetail_20' ) start [2025-01-30 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360951', 'tblTempUsageDetail_20' ) end [2025-01-30 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:37:23] Production.INFO: ==12742== Releasing lock... [2025-01-30 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:37:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:38:05 [end_date_ymd] => 2025-01-30 03:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:38:05' and `end` < '2025-01-30 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-30 03:38:18] Production.INFO: count ==1269 [2025-01-30 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:38:05 - End Time 2025-01-30 03:38:05 [2025-01-30 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360956', 'tblTempUsageDetail_20' ) start [2025-01-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360956', 'tblTempUsageDetail_20' ) end [2025-01-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360956', 'tblTempVendorCDR_20' ) start [2025-01-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360956', 'tblTempVendorCDR_20' ) end [2025-01-30 03:38:18] Production.INFO: ProcessCDR(1,14360956,1,1,2) [2025-01-30 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360956', 'tblTempUsageDetail_20' ) start [2025-01-30 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360956', 'tblTempUsageDetail_20' ) end [2025-01-30 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:38:21] Production.INFO: ==12825== Releasing lock... [2025-01-30 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:38:21] Production.INFO: 38 MB #Memory Used# [2025-01-30 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:39:05 [end_date_ymd] => 2025-01-30 03:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:39:05' and `end` < '2025-01-30 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-30 03:39:19] Production.INFO: count ==1225 [2025-01-30 03:39:20] Production.ERROR: pbx CDR StartTime 2025-01-30 00:39:05 - End Time 2025-01-30 03:39:05 [2025-01-30 03:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360961', 'tblTempUsageDetail_20' ) start [2025-01-30 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360961', 'tblTempUsageDetail_20' ) end [2025-01-30 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360961', 'tblTempVendorCDR_20' ) start [2025-01-30 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360961', 'tblTempVendorCDR_20' ) end [2025-01-30 03:39:20] Production.INFO: ProcessCDR(1,14360961,1,1,2) [2025-01-30 03:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360961', 'tblTempUsageDetail_20' ) start [2025-01-30 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360961', 'tblTempUsageDetail_20' ) end [2025-01-30 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:39:23] Production.INFO: ==12897== Releasing lock... [2025-01-30 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:39:23] Production.INFO: 38 MB #Memory Used# [2025-01-30 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:40:06 [end_date_ymd] => 2025-01-30 03:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 00:40:06' and `end` < '2025-01-30 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-30 03:40:20] Production.INFO: count ==1188 [2025-01-30 03:40:20] Production.ERROR: pbx CDR StartTime 2025-01-30 00:40:06 - End Time 2025-01-30 03:40:06 [2025-01-30 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360966', 'tblTempUsageDetail_20' ) start [2025-01-30 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360966', 'tblTempUsageDetail_20' ) end [2025-01-30 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360966', 'tblTempVendorCDR_20' ) start [2025-01-30 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360966', 'tblTempVendorCDR_20' ) end [2025-01-30 03:40:20] Production.INFO: ProcessCDR(1,14360966,1,1,2) [2025-01-30 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360966', 'tblTempUsageDetail_20' ) start [2025-01-30 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360966', 'tblTempUsageDetail_20' ) end [2025-01-30 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:40:23] Production.INFO: ==12976== Releasing lock... [2025-01-30 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-30 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:41:05 [end_date_ymd] => 2025-01-30 03:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:41:05' and `end` < '2025-01-30 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-30 03:41:18] Production.INFO: count ==1146 [2025-01-30 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:41:05 - End Time 2025-01-30 03:41:05 [2025-01-30 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360972', 'tblTempUsageDetail_20' ) start [2025-01-30 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360972', 'tblTempUsageDetail_20' ) end [2025-01-30 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360972', 'tblTempVendorCDR_20' ) start [2025-01-30 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360972', 'tblTempVendorCDR_20' ) end [2025-01-30 03:41:19] Production.INFO: ProcessCDR(1,14360972,1,1,2) [2025-01-30 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360972', 'tblTempUsageDetail_20' ) start [2025-01-30 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360972', 'tblTempUsageDetail_20' ) end [2025-01-30 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:41:22] Production.INFO: ==13054== Releasing lock... [2025-01-30 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:42:06 [end_date_ymd] => 2025-01-30 03:42:06 [RateCDR] => 1 ) [2025-01-30 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:42:06' and `end` < '2025-01-30 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:42:18] Production.INFO: count ==1145 [2025-01-30 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:42:06 - End Time 2025-01-30 03:42:06 [2025-01-30 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360977', 'tblTempUsageDetail_20' ) start [2025-01-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360977', 'tblTempUsageDetail_20' ) end [2025-01-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360977', 'tblTempVendorCDR_20' ) start [2025-01-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360977', 'tblTempVendorCDR_20' ) end [2025-01-30 03:42:19] Production.INFO: ProcessCDR(1,14360977,1,1,2) [2025-01-30 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360977', 'tblTempUsageDetail_20' ) start [2025-01-30 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360977', 'tblTempUsageDetail_20' ) end [2025-01-30 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:42:22] Production.INFO: ==13123== Releasing lock... [2025-01-30 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:42:22] Production.INFO: 37 MB #Memory Used# [2025-01-30 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:43:05 [end_date_ymd] => 2025-01-30 03:43:05 [RateCDR] => 1 ) [2025-01-30 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:43:05' and `end` < '2025-01-30 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:43:18] Production.INFO: count ==1141 [2025-01-30 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:43:05 - End Time 2025-01-30 03:43:05 [2025-01-30 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360982', 'tblTempUsageDetail_20' ) start [2025-01-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360982', 'tblTempUsageDetail_20' ) end [2025-01-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360982', 'tblTempVendorCDR_20' ) start [2025-01-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360982', 'tblTempVendorCDR_20' ) end [2025-01-30 03:43:18] Production.INFO: ProcessCDR(1,14360982,1,1,2) [2025-01-30 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360982', 'tblTempUsageDetail_20' ) start [2025-01-30 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360982', 'tblTempUsageDetail_20' ) end [2025-01-30 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:43:21] Production.INFO: ==13194== Releasing lock... [2025-01-30 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-30 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:44:05 [end_date_ymd] => 2025-01-30 03:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:44:05' and `end` < '2025-01-30 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-30 03:44:19] Production.INFO: count ==1137 [2025-01-30 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:44:05 - End Time 2025-01-30 03:44:05 [2025-01-30 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360987', 'tblTempUsageDetail_20' ) start [2025-01-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360987', 'tblTempUsageDetail_20' ) end [2025-01-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360987', 'tblTempVendorCDR_20' ) start [2025-01-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360987', 'tblTempVendorCDR_20' ) end [2025-01-30 03:44:19] Production.INFO: ProcessCDR(1,14360987,1,1,2) [2025-01-30 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360987', 'tblTempUsageDetail_20' ) start [2025-01-30 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360987', 'tblTempUsageDetail_20' ) end [2025-01-30 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:44:22] Production.INFO: ==13270== Releasing lock... [2025-01-30 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:44:22] Production.INFO: 37 MB #Memory Used# [2025-01-30 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:45:05 [end_date_ymd] => 2025-01-30 03:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:45:05' and `end` < '2025-01-30 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-30 03:45:17] Production.INFO: count ==1137 [2025-01-30 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:45:05 - End Time 2025-01-30 03:45:05 [2025-01-30 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360992', 'tblTempUsageDetail_20' ) start [2025-01-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360992', 'tblTempUsageDetail_20' ) end [2025-01-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360992', 'tblTempVendorCDR_20' ) start [2025-01-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360992', 'tblTempVendorCDR_20' ) end [2025-01-30 03:45:18] Production.INFO: ProcessCDR(1,14360992,1,1,2) [2025-01-30 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360992', 'tblTempUsageDetail_20' ) start [2025-01-30 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360992', 'tblTempUsageDetail_20' ) end [2025-01-30 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:45:21] Production.INFO: ==13341== Releasing lock... [2025-01-30 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:45:21] Production.INFO: 37 MB #Memory Used# [2025-01-30 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:46:05 [end_date_ymd] => 2025-01-30 03:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:46:05' and `end` < '2025-01-30 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-30 03:46:17] Production.INFO: count ==1136 [2025-01-30 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:46:05 - End Time 2025-01-30 03:46:05 [2025-01-30 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360997', 'tblTempUsageDetail_20' ) start [2025-01-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14360997', 'tblTempUsageDetail_20' ) end [2025-01-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360997', 'tblTempVendorCDR_20' ) start [2025-01-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14360997', 'tblTempVendorCDR_20' ) end [2025-01-30 03:46:18] Production.INFO: ProcessCDR(1,14360997,1,1,2) [2025-01-30 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14360997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14360997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14360997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14360997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360997', 'tblTempUsageDetail_20' ) start [2025-01-30 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14360997', 'tblTempUsageDetail_20' ) end [2025-01-30 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:46:21] Production.INFO: ==13412== Releasing lock... [2025-01-30 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-30 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:47:05 [end_date_ymd] => 2025-01-30 03:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:47:05' and `end` < '2025-01-30 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-30 03:47:19] Production.INFO: count ==1136 [2025-01-30 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:47:05 - End Time 2025-01-30 03:47:05 [2025-01-30 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361002', 'tblTempUsageDetail_20' ) start [2025-01-30 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361002', 'tblTempUsageDetail_20' ) end [2025-01-30 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361002', 'tblTempVendorCDR_20' ) start [2025-01-30 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361002', 'tblTempVendorCDR_20' ) end [2025-01-30 03:47:19] Production.INFO: ProcessCDR(1,14361002,1,1,2) [2025-01-30 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361002', 'tblTempUsageDetail_20' ) start [2025-01-30 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361002', 'tblTempUsageDetail_20' ) end [2025-01-30 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:47:23] Production.INFO: ==13482== Releasing lock... [2025-01-30 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:47:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-30 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:48:05 [end_date_ymd] => 2025-01-30 03:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:48:05' and `end` < '2025-01-30 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-30 03:48:18] Production.INFO: count ==1136 [2025-01-30 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:48:05 - End Time 2025-01-30 03:48:05 [2025-01-30 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361007', 'tblTempUsageDetail_20' ) start [2025-01-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361007', 'tblTempUsageDetail_20' ) end [2025-01-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361007', 'tblTempVendorCDR_20' ) start [2025-01-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361007', 'tblTempVendorCDR_20' ) end [2025-01-30 03:48:18] Production.INFO: ProcessCDR(1,14361007,1,1,2) [2025-01-30 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361007', 'tblTempUsageDetail_20' ) start [2025-01-30 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361007', 'tblTempUsageDetail_20' ) end [2025-01-30 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:48:21] Production.INFO: ==13556== Releasing lock... [2025-01-30 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-30 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:49:05 [end_date_ymd] => 2025-01-30 03:49:05 [RateCDR] => 1 ) [2025-01-30 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:49:05' and `end` < '2025-01-30 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:49:18] Production.INFO: count ==1134 [2025-01-30 03:49:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:49:05 - End Time 2025-01-30 03:49:05 [2025-01-30 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361012', 'tblTempUsageDetail_20' ) start [2025-01-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361012', 'tblTempUsageDetail_20' ) end [2025-01-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361012', 'tblTempVendorCDR_20' ) start [2025-01-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361012', 'tblTempVendorCDR_20' ) end [2025-01-30 03:49:19] Production.INFO: ProcessCDR(1,14361012,1,1,2) [2025-01-30 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361012', 'tblTempUsageDetail_20' ) start [2025-01-30 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361012', 'tblTempUsageDetail_20' ) end [2025-01-30 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:49:22] Production.INFO: ==13705== Releasing lock... [2025-01-30 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:49:22] Production.INFO: 37 MB #Memory Used# [2025-01-30 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:50:06 [end_date_ymd] => 2025-01-30 03:50:06 [RateCDR] => 1 ) [2025-01-30 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:50:06' and `end` < '2025-01-30 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:50:18] Production.INFO: count ==1129 [2025-01-30 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:50:06 - End Time 2025-01-30 03:50:06 [2025-01-30 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361018', 'tblTempUsageDetail_20' ) start [2025-01-30 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361018', 'tblTempUsageDetail_20' ) end [2025-01-30 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361018', 'tblTempVendorCDR_20' ) start [2025-01-30 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361018', 'tblTempVendorCDR_20' ) end [2025-01-30 03:50:19] Production.INFO: ProcessCDR(1,14361018,1,1,2) [2025-01-30 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361018', 'tblTempUsageDetail_20' ) start [2025-01-30 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361018', 'tblTempUsageDetail_20' ) end [2025-01-30 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:50:22] Production.INFO: ==13779== Releasing lock... [2025-01-30 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:50:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-30 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:51:05 [end_date_ymd] => 2025-01-30 03:51:05 [RateCDR] => 1 ) [2025-01-30 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:51:05' and `end` < '2025-01-30 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:51:18] Production.INFO: count ==1109 [2025-01-30 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:51:05 - End Time 2025-01-30 03:51:05 [2025-01-30 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361023', 'tblTempUsageDetail_20' ) start [2025-01-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361023', 'tblTempUsageDetail_20' ) end [2025-01-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361023', 'tblTempVendorCDR_20' ) start [2025-01-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361023', 'tblTempVendorCDR_20' ) end [2025-01-30 03:51:19] Production.INFO: ProcessCDR(1,14361023,1,1,2) [2025-01-30 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361023', 'tblTempUsageDetail_20' ) start [2025-01-30 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361023', 'tblTempUsageDetail_20' ) end [2025-01-30 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:51:22] Production.INFO: ==13851== Releasing lock... [2025-01-30 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:51:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-30 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:52:06 [end_date_ymd] => 2025-01-30 03:52:06 [RateCDR] => 1 ) [2025-01-30 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:52:06' and `end` < '2025-01-30 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:52:19] Production.INFO: count ==1108 [2025-01-30 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:52:06 - End Time 2025-01-30 03:52:06 [2025-01-30 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361028', 'tblTempUsageDetail_20' ) start [2025-01-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361028', 'tblTempUsageDetail_20' ) end [2025-01-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361028', 'tblTempVendorCDR_20' ) start [2025-01-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361028', 'tblTempVendorCDR_20' ) end [2025-01-30 03:52:19] Production.INFO: ProcessCDR(1,14361028,1,1,2) [2025-01-30 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361028', 'tblTempUsageDetail_20' ) start [2025-01-30 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361028', 'tblTempUsageDetail_20' ) end [2025-01-30 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:52:22] Production.INFO: ==13920== Releasing lock... [2025-01-30 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:52:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-30 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:53:05 [end_date_ymd] => 2025-01-30 03:53:05 [RateCDR] => 1 ) [2025-01-30 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:53:05' and `end` < '2025-01-30 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:53:18] Production.INFO: count ==1095 [2025-01-30 03:53:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:53:05 - End Time 2025-01-30 03:53:05 [2025-01-30 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361033', 'tblTempUsageDetail_20' ) start [2025-01-30 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361033', 'tblTempUsageDetail_20' ) end [2025-01-30 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361033', 'tblTempVendorCDR_20' ) start [2025-01-30 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361033', 'tblTempVendorCDR_20' ) end [2025-01-30 03:53:19] Production.INFO: ProcessCDR(1,14361033,1,1,2) [2025-01-30 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361033', 'tblTempUsageDetail_20' ) start [2025-01-30 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361033', 'tblTempUsageDetail_20' ) end [2025-01-30 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:53:22] Production.INFO: ==13993== Releasing lock... [2025-01-30 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:53:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-30 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:54:05 [end_date_ymd] => 2025-01-30 03:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:54:05' and `end` < '2025-01-30 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-30 03:54:18] Production.INFO: count ==1055 [2025-01-30 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:54:05 - End Time 2025-01-30 03:54:05 [2025-01-30 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361038', 'tblTempUsageDetail_20' ) start [2025-01-30 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361038', 'tblTempUsageDetail_20' ) end [2025-01-30 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361038', 'tblTempVendorCDR_20' ) start [2025-01-30 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361038', 'tblTempVendorCDR_20' ) end [2025-01-30 03:54:18] Production.INFO: ProcessCDR(1,14361038,1,1,2) [2025-01-30 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361038', 'tblTempUsageDetail_20' ) start [2025-01-30 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361038', 'tblTempUsageDetail_20' ) end [2025-01-30 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:54:22] Production.INFO: ==14071== Releasing lock... [2025-01-30 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:55:05 [end_date_ymd] => 2025-01-30 03:55:05 [RateCDR] => 1 ) [2025-01-30 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:55:05' and `end` < '2025-01-30 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:55:18] Production.INFO: count ==997 [2025-01-30 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:55:05 - End Time 2025-01-30 03:55:05 [2025-01-30 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361043', 'tblTempUsageDetail_20' ) start [2025-01-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361043', 'tblTempUsageDetail_20' ) end [2025-01-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361043', 'tblTempVendorCDR_20' ) start [2025-01-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361043', 'tblTempVendorCDR_20' ) end [2025-01-30 03:55:18] Production.INFO: ProcessCDR(1,14361043,1,1,2) [2025-01-30 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361043', 'tblTempUsageDetail_20' ) start [2025-01-30 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361043', 'tblTempUsageDetail_20' ) end [2025-01-30 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:55:21] Production.INFO: ==14143== Releasing lock... [2025-01-30 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:56:05 [end_date_ymd] => 2025-01-30 03:56:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:56:05' and `end` < '2025-01-30 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-30 03:56:18] Production.INFO: count ==960 [2025-01-30 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:56:05 - End Time 2025-01-30 03:56:05 [2025-01-30 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361048', 'tblTempUsageDetail_20' ) start [2025-01-30 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361048', 'tblTempUsageDetail_20' ) end [2025-01-30 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361048', 'tblTempVendorCDR_20' ) start [2025-01-30 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361048', 'tblTempVendorCDR_20' ) end [2025-01-30 03:56:18] Production.INFO: ProcessCDR(1,14361048,1,1,2) [2025-01-30 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361048', 'tblTempUsageDetail_20' ) start [2025-01-30 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361048', 'tblTempUsageDetail_20' ) end [2025-01-30 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:56:21] Production.INFO: ==14219== Releasing lock... [2025-01-30 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:56:21] Production.INFO: 36 MB #Memory Used# [2025-01-30 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:57:06 [end_date_ymd] => 2025-01-30 03:57:06 [RateCDR] => 1 ) [2025-01-30 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 00:57:06' and `end` < '2025-01-30 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 03:57:19] Production.INFO: count ==922 [2025-01-30 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:57:06 - End Time 2025-01-30 03:57:06 [2025-01-30 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361053', 'tblTempUsageDetail_20' ) start [2025-01-30 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361053', 'tblTempUsageDetail_20' ) end [2025-01-30 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361053', 'tblTempVendorCDR_20' ) start [2025-01-30 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361053', 'tblTempVendorCDR_20' ) end [2025-01-30 03:57:19] Production.INFO: ProcessCDR(1,14361053,1,1,2) [2025-01-30 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361053', 'tblTempUsageDetail_20' ) start [2025-01-30 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361053', 'tblTempUsageDetail_20' ) end [2025-01-30 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:57:22] Production.INFO: ==14290== Releasing lock... [2025-01-30 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:57:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-30 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:58:05 [end_date_ymd] => 2025-01-30 03:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 00:58:05' and `end` < '2025-01-30 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-30 03:58:18] Production.INFO: count ==903 [2025-01-30 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-30 00:58:05 - End Time 2025-01-30 03:58:05 [2025-01-30 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361058', 'tblTempUsageDetail_20' ) start [2025-01-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361058', 'tblTempUsageDetail_20' ) end [2025-01-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361058', 'tblTempVendorCDR_20' ) start [2025-01-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361058', 'tblTempVendorCDR_20' ) end [2025-01-30 03:58:18] Production.INFO: ProcessCDR(1,14361058,1,1,2) [2025-01-30 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361058', 'tblTempUsageDetail_20' ) start [2025-01-30 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361058', 'tblTempUsageDetail_20' ) end [2025-01-30 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:58:21] Production.INFO: ==14363== Releasing lock... [2025-01-30 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:58:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-30 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 00:59:05 [end_date_ymd] => 2025-01-30 03:59:05 [RateCDR] => 1 ) [2025-01-30 03: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-30 00:59:05' and `end` < '2025-01-30 03: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-30 03:59:19] Production.INFO: count ==903 [2025-01-30 03:59:19] Production.ERROR: pbx CDR StartTime 2025-01-30 00:59:05 - End Time 2025-01-30 03:59:05 [2025-01-30 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361063', 'tblTempUsageDetail_20' ) start [2025-01-30 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361063', 'tblTempUsageDetail_20' ) end [2025-01-30 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361063', 'tblTempVendorCDR_20' ) start [2025-01-30 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361063', 'tblTempVendorCDR_20' ) end [2025-01-30 03:59:19] Production.INFO: ProcessCDR(1,14361063,1,1,2) [2025-01-30 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361063', 'tblTempUsageDetail_20' ) start [2025-01-30 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361063', 'tblTempUsageDetail_20' ) end [2025-01-30 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 03:59:22] Production.INFO: ==14436== Releasing lock... [2025-01-30 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 03:59:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-30 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:00:06 [end_date_ymd] => 2025-01-30 04:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 01:00:06' and `end` < '2025-01-30 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-30 04:00:19] Production.INFO: count ==899 [2025-01-30 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:00:06 - End Time 2025-01-30 04:00:06 [2025-01-30 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361070', 'tblTempUsageDetail_20' ) start [2025-01-30 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361070', 'tblTempUsageDetail_20' ) end [2025-01-30 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361070', 'tblTempVendorCDR_20' ) start [2025-01-30 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361070', 'tblTempVendorCDR_20' ) end [2025-01-30 04:00:19] Production.INFO: ProcessCDR(1,14361070,1,1,2) [2025-01-30 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361070', 'tblTempUsageDetail_20' ) start [2025-01-30 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361070', 'tblTempUsageDetail_20' ) end [2025-01-30 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:00:22] Production.INFO: ==14514== Releasing lock... [2025-01-30 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:00:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:01:05 [end_date_ymd] => 2025-01-30 04:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:01:05' and `end` < '2025-01-30 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-30 04:01:18] Production.INFO: count ==880 [2025-01-30 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:01:05 - End Time 2025-01-30 04:01:05 [2025-01-30 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361075', 'tblTempUsageDetail_20' ) start [2025-01-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361075', 'tblTempUsageDetail_20' ) end [2025-01-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361075', 'tblTempVendorCDR_20' ) start [2025-01-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361075', 'tblTempVendorCDR_20' ) end [2025-01-30 04:01:18] Production.INFO: ProcessCDR(1,14361075,1,1,2) [2025-01-30 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361075', 'tblTempUsageDetail_20' ) start [2025-01-30 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361075', 'tblTempUsageDetail_20' ) end [2025-01-30 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:01:21] Production.INFO: ==14602== Releasing lock... [2025-01-30 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:01:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:02:04 [end_date_ymd] => 2025-01-30 04:02:04 [RateCDR] => 1 ) [2025-01-30 04: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-30 01:02:04' and `end` < '2025-01-30 04: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-30 04:02:17] Production.INFO: count ==880 [2025-01-30 04:02:17] Production.ERROR: pbx CDR StartTime 2025-01-30 01:02:04 - End Time 2025-01-30 04:02:04 [2025-01-30 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361080', 'tblTempUsageDetail_20' ) start [2025-01-30 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361080', 'tblTempUsageDetail_20' ) end [2025-01-30 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361080', 'tblTempVendorCDR_20' ) start [2025-01-30 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361080', 'tblTempVendorCDR_20' ) end [2025-01-30 04:02:17] Production.INFO: ProcessCDR(1,14361080,1,1,2) [2025-01-30 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361080', 'tblTempUsageDetail_20' ) start [2025-01-30 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361080', 'tblTempUsageDetail_20' ) end [2025-01-30 04:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:02:20] Production.INFO: ==14671== Releasing lock... [2025-01-30 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:02:20] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:03:05 [end_date_ymd] => 2025-01-30 04:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:03:05' and `end` < '2025-01-30 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-30 04:03:18] Production.INFO: count ==880 [2025-01-30 04:03:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:03:05 - End Time 2025-01-30 04:03:05 [2025-01-30 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361085', 'tblTempUsageDetail_20' ) start [2025-01-30 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361085', 'tblTempUsageDetail_20' ) end [2025-01-30 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361085', 'tblTempVendorCDR_20' ) start [2025-01-30 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361085', 'tblTempVendorCDR_20' ) end [2025-01-30 04:03:19] Production.INFO: ProcessCDR(1,14361085,1,1,2) [2025-01-30 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361085', 'tblTempUsageDetail_20' ) start [2025-01-30 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361085', 'tblTempUsageDetail_20' ) end [2025-01-30 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:03:22] Production.INFO: ==14745== Releasing lock... [2025-01-30 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:03:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:04:05 [end_date_ymd] => 2025-01-30 04:04:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:04:05' and `end` < '2025-01-30 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-30 04:04:18] Production.INFO: count ==880 [2025-01-30 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:04:05 - End Time 2025-01-30 04:04:05 [2025-01-30 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361090', 'tblTempUsageDetail_20' ) start [2025-01-30 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361090', 'tblTempUsageDetail_20' ) end [2025-01-30 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361090', 'tblTempVendorCDR_20' ) start [2025-01-30 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361090', 'tblTempVendorCDR_20' ) end [2025-01-30 04:04:18] Production.INFO: ProcessCDR(1,14361090,1,1,2) [2025-01-30 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361090', 'tblTempUsageDetail_20' ) start [2025-01-30 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361090', 'tblTempUsageDetail_20' ) end [2025-01-30 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:04:21] Production.INFO: ==14863== Releasing lock... [2025-01-30 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:04:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:05:05 [end_date_ymd] => 2025-01-30 04:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:05:05' and `end` < '2025-01-30 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-30 04:05:18] Production.INFO: count ==880 [2025-01-30 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:05:05 - End Time 2025-01-30 04:05:05 [2025-01-30 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361095', 'tblTempUsageDetail_20' ) start [2025-01-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361095', 'tblTempUsageDetail_20' ) end [2025-01-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361095', 'tblTempVendorCDR_20' ) start [2025-01-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361095', 'tblTempVendorCDR_20' ) end [2025-01-30 04:05:18] Production.INFO: ProcessCDR(1,14361095,1,1,2) [2025-01-30 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361095', 'tblTempUsageDetail_20' ) start [2025-01-30 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361095', 'tblTempUsageDetail_20' ) end [2025-01-30 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:05:21] Production.INFO: ==14935== Releasing lock... [2025-01-30 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:05:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:06:05 [end_date_ymd] => 2025-01-30 04:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:06:05' and `end` < '2025-01-30 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-30 04:06:18] Production.INFO: count ==880 [2025-01-30 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:06:05 - End Time 2025-01-30 04:06:05 [2025-01-30 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361100', 'tblTempUsageDetail_20' ) start [2025-01-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361100', 'tblTempUsageDetail_20' ) end [2025-01-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361100', 'tblTempVendorCDR_20' ) start [2025-01-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361100', 'tblTempVendorCDR_20' ) end [2025-01-30 04:06:18] Production.INFO: ProcessCDR(1,14361100,1,1,2) [2025-01-30 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361100', 'tblTempUsageDetail_20' ) start [2025-01-30 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361100', 'tblTempUsageDetail_20' ) end [2025-01-30 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:06:21] Production.INFO: ==15008== Releasing lock... [2025-01-30 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:06:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:07:05 [end_date_ymd] => 2025-01-30 04:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:07:05' and `end` < '2025-01-30 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-30 04:07:17] Production.INFO: count ==880 [2025-01-30 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:07:05 - End Time 2025-01-30 04:07:05 [2025-01-30 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361105', 'tblTempUsageDetail_20' ) start [2025-01-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361105', 'tblTempUsageDetail_20' ) end [2025-01-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361105', 'tblTempVendorCDR_20' ) start [2025-01-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361105', 'tblTempVendorCDR_20' ) end [2025-01-30 04:07:18] Production.INFO: ProcessCDR(1,14361105,1,1,2) [2025-01-30 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361105', 'tblTempUsageDetail_20' ) start [2025-01-30 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361105', 'tblTempUsageDetail_20' ) end [2025-01-30 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:07:21] Production.INFO: ==15080== Releasing lock... [2025-01-30 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:07:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:08:06 [end_date_ymd] => 2025-01-30 04:08:06 [RateCDR] => 1 ) [2025-01-30 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:08:06' and `end` < '2025-01-30 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:08:19] Production.INFO: count ==880 [2025-01-30 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:08:06 - End Time 2025-01-30 04:08:06 [2025-01-30 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361110', 'tblTempUsageDetail_20' ) start [2025-01-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361110', 'tblTempUsageDetail_20' ) end [2025-01-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361110', 'tblTempVendorCDR_20' ) start [2025-01-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361110', 'tblTempVendorCDR_20' ) end [2025-01-30 04:08:19] Production.INFO: ProcessCDR(1,14361110,1,1,2) [2025-01-30 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361110', 'tblTempUsageDetail_20' ) start [2025-01-30 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361110', 'tblTempUsageDetail_20' ) end [2025-01-30 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:08:22] Production.INFO: ==15155== Releasing lock... [2025-01-30 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:08:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:09:05 [end_date_ymd] => 2025-01-30 04:09:05 [RateCDR] => 1 ) [2025-01-30 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:09:05' and `end` < '2025-01-30 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:09:18] Production.INFO: count ==880 [2025-01-30 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:09:05 - End Time 2025-01-30 04:09:05 [2025-01-30 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361115', 'tblTempUsageDetail_20' ) start [2025-01-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361115', 'tblTempUsageDetail_20' ) end [2025-01-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361115', 'tblTempVendorCDR_20' ) start [2025-01-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361115', 'tblTempVendorCDR_20' ) end [2025-01-30 04:09:18] Production.INFO: ProcessCDR(1,14361115,1,1,2) [2025-01-30 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361115', 'tblTempUsageDetail_20' ) start [2025-01-30 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361115', 'tblTempUsageDetail_20' ) end [2025-01-30 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:09:21] Production.INFO: ==15228== Releasing lock... [2025-01-30 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:09:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:10:06 [end_date_ymd] => 2025-01-30 04:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 01:10:06' and `end` < '2025-01-30 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-30 04:10:19] Production.INFO: count ==878 [2025-01-30 04:10:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:10:06 - End Time 2025-01-30 04:10:06 [2025-01-30 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361121', 'tblTempUsageDetail_20' ) start [2025-01-30 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361121', 'tblTempUsageDetail_20' ) end [2025-01-30 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361121', 'tblTempVendorCDR_20' ) start [2025-01-30 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361121', 'tblTempVendorCDR_20' ) end [2025-01-30 04:10:20] Production.INFO: ProcessCDR(1,14361121,1,1,2) [2025-01-30 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361121', 'tblTempUsageDetail_20' ) start [2025-01-30 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361121', 'tblTempUsageDetail_20' ) end [2025-01-30 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:10:23] Production.INFO: ==15302== Releasing lock... [2025-01-30 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:10:23] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:11:05 [end_date_ymd] => 2025-01-30 04:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:11:05' and `end` < '2025-01-30 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-30 04:11:18] Production.INFO: count ==875 [2025-01-30 04:11:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:11:05 - End Time 2025-01-30 04:11:05 [2025-01-30 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361126', 'tblTempUsageDetail_20' ) start [2025-01-30 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361126', 'tblTempUsageDetail_20' ) end [2025-01-30 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361126', 'tblTempVendorCDR_20' ) start [2025-01-30 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361126', 'tblTempVendorCDR_20' ) end [2025-01-30 04:11:19] Production.INFO: ProcessCDR(1,14361126,1,1,2) [2025-01-30 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361126', 'tblTempUsageDetail_20' ) start [2025-01-30 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361126', 'tblTempUsageDetail_20' ) end [2025-01-30 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:11:22] Production.INFO: ==15380== Releasing lock... [2025-01-30 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:11:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:12:06 [end_date_ymd] => 2025-01-30 04:12:06 [RateCDR] => 1 ) [2025-01-30 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:12:06' and `end` < '2025-01-30 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:12:19] Production.INFO: count ==874 [2025-01-30 04:12:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:12:06 - End Time 2025-01-30 04:12:06 [2025-01-30 04:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361131', 'tblTempUsageDetail_20' ) start [2025-01-30 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361131', 'tblTempUsageDetail_20' ) end [2025-01-30 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361131', 'tblTempVendorCDR_20' ) start [2025-01-30 04:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361131', 'tblTempVendorCDR_20' ) end [2025-01-30 04:12:20] Production.INFO: ProcessCDR(1,14361131,1,1,2) [2025-01-30 04:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361131', 'tblTempUsageDetail_20' ) start [2025-01-30 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361131', 'tblTempUsageDetail_20' ) end [2025-01-30 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:12:23] Production.INFO: ==15453== Releasing lock... [2025-01-30 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:12:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-30 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:13:05 [end_date_ymd] => 2025-01-30 04:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:13:05' and `end` < '2025-01-30 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-30 04:13:18] Production.INFO: count ==876 [2025-01-30 04:13:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:13:05 - End Time 2025-01-30 04:13:05 [2025-01-30 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361136', 'tblTempUsageDetail_20' ) start [2025-01-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361136', 'tblTempUsageDetail_20' ) end [2025-01-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361136', 'tblTempVendorCDR_20' ) start [2025-01-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361136', 'tblTempVendorCDR_20' ) end [2025-01-30 04:13:19] Production.INFO: ProcessCDR(1,14361136,1,1,2) [2025-01-30 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361136', 'tblTempUsageDetail_20' ) start [2025-01-30 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361136', 'tblTempUsageDetail_20' ) end [2025-01-30 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:13:22] Production.INFO: ==15523== Releasing lock... [2025-01-30 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:13:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:14:05 [end_date_ymd] => 2025-01-30 04:14:05 [RateCDR] => 1 ) [2025-01-30 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:14:05' and `end` < '2025-01-30 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:14:19] Production.INFO: count ==880 [2025-01-30 04:14:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:14:05 - End Time 2025-01-30 04:14:05 [2025-01-30 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361141', 'tblTempUsageDetail_20' ) start [2025-01-30 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361141', 'tblTempUsageDetail_20' ) end [2025-01-30 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361141', 'tblTempVendorCDR_20' ) start [2025-01-30 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361141', 'tblTempVendorCDR_20' ) end [2025-01-30 04:14:19] Production.INFO: ProcessCDR(1,14361141,1,1,2) [2025-01-30 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361141', 'tblTempUsageDetail_20' ) start [2025-01-30 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361141', 'tblTempUsageDetail_20' ) end [2025-01-30 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:14:23] Production.INFO: ==15597== Releasing lock... [2025-01-30 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:14:23] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:15:05 [end_date_ymd] => 2025-01-30 04:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:15:05' and `end` < '2025-01-30 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-30 04:15:17] Production.INFO: count ==880 [2025-01-30 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:15:05 - End Time 2025-01-30 04:15:05 [2025-01-30 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361146', 'tblTempUsageDetail_20' ) start [2025-01-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361146', 'tblTempUsageDetail_20' ) end [2025-01-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361146', 'tblTempVendorCDR_20' ) start [2025-01-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361146', 'tblTempVendorCDR_20' ) end [2025-01-30 04:15:18] Production.INFO: ProcessCDR(1,14361146,1,1,2) [2025-01-30 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361146', 'tblTempUsageDetail_20' ) start [2025-01-30 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361146', 'tblTempUsageDetail_20' ) end [2025-01-30 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:15:21] Production.INFO: ==15671== Releasing lock... [2025-01-30 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:15:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:16:05 [end_date_ymd] => 2025-01-30 04:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:16:05' and `end` < '2025-01-30 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-30 04:16:18] Production.INFO: count ==880 [2025-01-30 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:16:05 - End Time 2025-01-30 04:16:05 [2025-01-30 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361151', 'tblTempUsageDetail_20' ) start [2025-01-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361151', 'tblTempUsageDetail_20' ) end [2025-01-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361151', 'tblTempVendorCDR_20' ) start [2025-01-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361151', 'tblTempVendorCDR_20' ) end [2025-01-30 04:16:18] Production.INFO: ProcessCDR(1,14361151,1,1,2) [2025-01-30 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361151', 'tblTempUsageDetail_20' ) start [2025-01-30 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361151', 'tblTempUsageDetail_20' ) end [2025-01-30 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:16:21] Production.INFO: ==15745== Releasing lock... [2025-01-30 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:16:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:17:05 [end_date_ymd] => 2025-01-30 04:17:05 [RateCDR] => 1 ) [2025-01-30 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:17:05' and `end` < '2025-01-30 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:17:18] Production.INFO: count ==880 [2025-01-30 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:17:05 - End Time 2025-01-30 04:17:05 [2025-01-30 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361156', 'tblTempUsageDetail_20' ) start [2025-01-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361156', 'tblTempUsageDetail_20' ) end [2025-01-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361156', 'tblTempVendorCDR_20' ) start [2025-01-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361156', 'tblTempVendorCDR_20' ) end [2025-01-30 04:17:18] Production.INFO: ProcessCDR(1,14361156,1,1,2) [2025-01-30 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361156', 'tblTempUsageDetail_20' ) start [2025-01-30 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361156', 'tblTempUsageDetail_20' ) end [2025-01-30 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:17:21] Production.INFO: ==15817== Releasing lock... [2025-01-30 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:17:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:18:05 [end_date_ymd] => 2025-01-30 04:18:05 [RateCDR] => 1 ) [2025-01-30 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:18:05' and `end` < '2025-01-30 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:18:18] Production.INFO: count ==880 [2025-01-30 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:18:05 - End Time 2025-01-30 04:18:05 [2025-01-30 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361161', 'tblTempUsageDetail_20' ) start [2025-01-30 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361161', 'tblTempUsageDetail_20' ) end [2025-01-30 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361161', 'tblTempVendorCDR_20' ) start [2025-01-30 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361161', 'tblTempVendorCDR_20' ) end [2025-01-30 04:18:18] Production.INFO: ProcessCDR(1,14361161,1,1,2) [2025-01-30 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361161', 'tblTempUsageDetail_20' ) start [2025-01-30 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361161', 'tblTempUsageDetail_20' ) end [2025-01-30 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:18:21] Production.INFO: ==15899== Releasing lock... [2025-01-30 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:18:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:19:05 [end_date_ymd] => 2025-01-30 04:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:19:05' and `end` < '2025-01-30 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-30 04:19:19] Production.INFO: count ==880 [2025-01-30 04:19:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:19:05 - End Time 2025-01-30 04:19:05 [2025-01-30 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361166', 'tblTempUsageDetail_20' ) start [2025-01-30 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361166', 'tblTempUsageDetail_20' ) end [2025-01-30 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361166', 'tblTempVendorCDR_20' ) start [2025-01-30 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361166', 'tblTempVendorCDR_20' ) end [2025-01-30 04:19:19] Production.INFO: ProcessCDR(1,14361166,1,1,2) [2025-01-30 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361166', 'tblTempUsageDetail_20' ) start [2025-01-30 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361166', 'tblTempUsageDetail_20' ) end [2025-01-30 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:19:22] Production.INFO: ==15972== Releasing lock... [2025-01-30 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:19:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:20:06 [end_date_ymd] => 2025-01-30 04:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 01:20:06' and `end` < '2025-01-30 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-30 04:20:18] Production.INFO: count ==884 [2025-01-30 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:20:06 - End Time 2025-01-30 04:20:06 [2025-01-30 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361172', 'tblTempUsageDetail_20' ) start [2025-01-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361172', 'tblTempUsageDetail_20' ) end [2025-01-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361172', 'tblTempVendorCDR_20' ) start [2025-01-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361172', 'tblTempVendorCDR_20' ) end [2025-01-30 04:20:19] Production.INFO: ProcessCDR(1,14361172,1,1,2) [2025-01-30 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361172', 'tblTempUsageDetail_20' ) start [2025-01-30 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361172', 'tblTempUsageDetail_20' ) end [2025-01-30 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:20:22] Production.INFO: ==16086== Releasing lock... [2025-01-30 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:20:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:21:05 [end_date_ymd] => 2025-01-30 04:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:21:05' and `end` < '2025-01-30 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-30 04:21:17] Production.INFO: count ==888 [2025-01-30 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:21:05 - End Time 2025-01-30 04:21:05 [2025-01-30 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361173', 'tblTempUsageDetail_20' ) start [2025-01-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361173', 'tblTempUsageDetail_20' ) end [2025-01-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361173', 'tblTempVendorCDR_20' ) start [2025-01-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361173', 'tblTempVendorCDR_20' ) end [2025-01-30 04:21:18] Production.INFO: ProcessCDR(1,14361173,1,1,2) [2025-01-30 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361173', 'tblTempUsageDetail_20' ) start [2025-01-30 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361173', 'tblTempUsageDetail_20' ) end [2025-01-30 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:21:21] Production.INFO: ==16159== Releasing lock... [2025-01-30 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:21:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:22:05 [end_date_ymd] => 2025-01-30 04:22:05 [RateCDR] => 1 ) [2025-01-30 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:22:05' and `end` < '2025-01-30 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:22:18] Production.INFO: count ==888 [2025-01-30 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:22:05 - End Time 2025-01-30 04:22:05 [2025-01-30 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361182', 'tblTempUsageDetail_20' ) start [2025-01-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361182', 'tblTempUsageDetail_20' ) end [2025-01-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361182', 'tblTempVendorCDR_20' ) start [2025-01-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361182', 'tblTempVendorCDR_20' ) end [2025-01-30 04:22:18] Production.INFO: ProcessCDR(1,14361182,1,1,2) [2025-01-30 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361182', 'tblTempUsageDetail_20' ) start [2025-01-30 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361182', 'tblTempUsageDetail_20' ) end [2025-01-30 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:22:21] Production.INFO: ==16230== Releasing lock... [2025-01-30 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:22:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:23:05 [end_date_ymd] => 2025-01-30 04:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:23:05' and `end` < '2025-01-30 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-30 04:23:18] Production.INFO: count ==886 [2025-01-30 04:23:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:23:05 - End Time 2025-01-30 04:23:05 [2025-01-30 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361187', 'tblTempUsageDetail_20' ) start [2025-01-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361187', 'tblTempUsageDetail_20' ) end [2025-01-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361187', 'tblTempVendorCDR_20' ) start [2025-01-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361187', 'tblTempVendorCDR_20' ) end [2025-01-30 04:23:19] Production.INFO: ProcessCDR(1,14361187,1,1,2) [2025-01-30 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361187', 'tblTempUsageDetail_20' ) start [2025-01-30 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361187', 'tblTempUsageDetail_20' ) end [2025-01-30 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:23:22] Production.INFO: ==16309== Releasing lock... [2025-01-30 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:23:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:24:05 [end_date_ymd] => 2025-01-30 04:24:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:24:05' and `end` < '2025-01-30 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-30 04:24:18] Production.INFO: count ==886 [2025-01-30 04:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:24:05 - End Time 2025-01-30 04:24:05 [2025-01-30 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361192', 'tblTempUsageDetail_20' ) start [2025-01-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361192', 'tblTempUsageDetail_20' ) end [2025-01-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361192', 'tblTempVendorCDR_20' ) start [2025-01-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361192', 'tblTempVendorCDR_20' ) end [2025-01-30 04:24:19] Production.INFO: ProcessCDR(1,14361192,1,1,2) [2025-01-30 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361192', 'tblTempUsageDetail_20' ) start [2025-01-30 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361192', 'tblTempUsageDetail_20' ) end [2025-01-30 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:24:22] Production.INFO: ==16378== Releasing lock... [2025-01-30 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:24:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:25:05 [end_date_ymd] => 2025-01-30 04:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:25:05' and `end` < '2025-01-30 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-30 04:25:18] Production.INFO: count ==886 [2025-01-30 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:25:05 - End Time 2025-01-30 04:25:05 [2025-01-30 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361197', 'tblTempUsageDetail_20' ) start [2025-01-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361197', 'tblTempUsageDetail_20' ) end [2025-01-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361197', 'tblTempVendorCDR_20' ) start [2025-01-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361197', 'tblTempVendorCDR_20' ) end [2025-01-30 04:25:18] Production.INFO: ProcessCDR(1,14361197,1,1,2) [2025-01-30 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361197', 'tblTempUsageDetail_20' ) start [2025-01-30 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361197', 'tblTempUsageDetail_20' ) end [2025-01-30 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:25:21] Production.INFO: ==16451== Releasing lock... [2025-01-30 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:25:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:26:06 [end_date_ymd] => 2025-01-30 04:26:06 [RateCDR] => 1 ) [2025-01-30 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:26:06' and `end` < '2025-01-30 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:26:19] Production.INFO: count ==886 [2025-01-30 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:26:06 - End Time 2025-01-30 04:26:06 [2025-01-30 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361202', 'tblTempUsageDetail_20' ) start [2025-01-30 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361202', 'tblTempUsageDetail_20' ) end [2025-01-30 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361202', 'tblTempVendorCDR_20' ) start [2025-01-30 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361202', 'tblTempVendorCDR_20' ) end [2025-01-30 04:26:19] Production.INFO: ProcessCDR(1,14361202,1,1,2) [2025-01-30 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361202', 'tblTempUsageDetail_20' ) start [2025-01-30 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361202', 'tblTempUsageDetail_20' ) end [2025-01-30 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:26:22] Production.INFO: ==16523== Releasing lock... [2025-01-30 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:26:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:27:05 [end_date_ymd] => 2025-01-30 04:27:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:27:05' and `end` < '2025-01-30 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-30 04:27:18] Production.INFO: count ==886 [2025-01-30 04:27:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:27:05 - End Time 2025-01-30 04:27:05 [2025-01-30 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361207', 'tblTempUsageDetail_20' ) start [2025-01-30 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361207', 'tblTempUsageDetail_20' ) end [2025-01-30 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361207', 'tblTempVendorCDR_20' ) start [2025-01-30 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361207', 'tblTempVendorCDR_20' ) end [2025-01-30 04:27:19] Production.INFO: ProcessCDR(1,14361207,1,1,2) [2025-01-30 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361207', 'tblTempUsageDetail_20' ) start [2025-01-30 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361207', 'tblTempUsageDetail_20' ) end [2025-01-30 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:27:22] Production.INFO: ==16592== Releasing lock... [2025-01-30 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:27:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:28:05 [end_date_ymd] => 2025-01-30 04:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:28:05' and `end` < '2025-01-30 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-30 04:28:19] Production.INFO: count ==884 [2025-01-30 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:28:05 - End Time 2025-01-30 04:28:05 [2025-01-30 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361212', 'tblTempUsageDetail_20' ) start [2025-01-30 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361212', 'tblTempUsageDetail_20' ) end [2025-01-30 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361212', 'tblTempVendorCDR_20' ) start [2025-01-30 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361212', 'tblTempVendorCDR_20' ) end [2025-01-30 04:28:19] Production.INFO: ProcessCDR(1,14361212,1,1,2) [2025-01-30 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361212', 'tblTempUsageDetail_20' ) start [2025-01-30 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361212', 'tblTempUsageDetail_20' ) end [2025-01-30 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:28:22] Production.INFO: ==16665== Releasing lock... [2025-01-30 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:28:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:29:05 [end_date_ymd] => 2025-01-30 04:29:05 [RateCDR] => 1 ) [2025-01-30 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:29:05' and `end` < '2025-01-30 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:29:17] Production.INFO: count ==849 [2025-01-30 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:29:05 - End Time 2025-01-30 04:29:05 [2025-01-30 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361217', 'tblTempUsageDetail_20' ) start [2025-01-30 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361217', 'tblTempUsageDetail_20' ) end [2025-01-30 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361217', 'tblTempVendorCDR_20' ) start [2025-01-30 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361217', 'tblTempVendorCDR_20' ) end [2025-01-30 04:29:18] Production.INFO: ProcessCDR(1,14361217,1,1,2) [2025-01-30 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361217', 'tblTempUsageDetail_20' ) start [2025-01-30 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361217', 'tblTempUsageDetail_20' ) end [2025-01-30 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:29:21] Production.INFO: ==16736== Releasing lock... [2025-01-30 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:29:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:30:06 [end_date_ymd] => 2025-01-30 04:30:06 [RateCDR] => 1 ) [2025-01-30 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-30 01:30:06' and `end` < '2025-01-30 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-30 04:30:19] Production.INFO: count ==814 [2025-01-30 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:30:06 - End Time 2025-01-30 04:30:06 [2025-01-30 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361223', 'tblTempUsageDetail_20' ) start [2025-01-30 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361223', 'tblTempUsageDetail_20' ) end [2025-01-30 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361223', 'tblTempVendorCDR_20' ) start [2025-01-30 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361223', 'tblTempVendorCDR_20' ) end [2025-01-30 04:30:19] Production.INFO: ProcessCDR(1,14361223,1,1,2) [2025-01-30 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361223', 'tblTempUsageDetail_20' ) start [2025-01-30 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361223', 'tblTempUsageDetail_20' ) end [2025-01-30 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:30:22] Production.INFO: ==16811== Releasing lock... [2025-01-30 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:31:05 [end_date_ymd] => 2025-01-30 04:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:31:05' and `end` < '2025-01-30 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-30 04:31:18] Production.INFO: count ==778 [2025-01-30 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:31:05 - End Time 2025-01-30 04:31:05 [2025-01-30 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361229', 'tblTempUsageDetail_20' ) start [2025-01-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361229', 'tblTempUsageDetail_20' ) end [2025-01-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361229', 'tblTempVendorCDR_20' ) start [2025-01-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361229', 'tblTempVendorCDR_20' ) end [2025-01-30 04:31:19] Production.INFO: ProcessCDR(1,14361229,1,1,2) [2025-01-30 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361229', 'tblTempUsageDetail_20' ) start [2025-01-30 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361229', 'tblTempUsageDetail_20' ) end [2025-01-30 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:31:22] Production.INFO: ==16885== Releasing lock... [2025-01-30 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:32:05 [end_date_ymd] => 2025-01-30 04:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:32:05' and `end` < '2025-01-30 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-30 04:32:18] Production.INFO: count ==770 [2025-01-30 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:32:05 - End Time 2025-01-30 04:32:05 [2025-01-30 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361234', 'tblTempUsageDetail_20' ) start [2025-01-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361234', 'tblTempUsageDetail_20' ) end [2025-01-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361234', 'tblTempVendorCDR_20' ) start [2025-01-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361234', 'tblTempVendorCDR_20' ) end [2025-01-30 04:32:18] Production.INFO: ProcessCDR(1,14361234,1,1,2) [2025-01-30 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361234', 'tblTempUsageDetail_20' ) start [2025-01-30 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361234', 'tblTempUsageDetail_20' ) end [2025-01-30 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:32:22] Production.INFO: ==16990== Releasing lock... [2025-01-30 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:32:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:33:06 [end_date_ymd] => 2025-01-30 04:33:06 [RateCDR] => 1 ) [2025-01-30 04: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-30 01:33:06' and `end` < '2025-01-30 04: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-30 04:33:19] Production.INFO: count ==770 [2025-01-30 04:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:33:06 - End Time 2025-01-30 04:33:06 [2025-01-30 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361239', 'tblTempUsageDetail_20' ) start [2025-01-30 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361239', 'tblTempUsageDetail_20' ) end [2025-01-30 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361239', 'tblTempVendorCDR_20' ) start [2025-01-30 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361239', 'tblTempVendorCDR_20' ) end [2025-01-30 04:33:19] Production.INFO: ProcessCDR(1,14361239,1,1,2) [2025-01-30 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361239', 'tblTempUsageDetail_20' ) start [2025-01-30 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361239', 'tblTempUsageDetail_20' ) end [2025-01-30 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:33:22] Production.INFO: ==17061== Releasing lock... [2025-01-30 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:33:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:34:04 [end_date_ymd] => 2025-01-30 04:34:04 [RateCDR] => 1 ) [2025-01-30 04: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-30 01:34:04' and `end` < '2025-01-30 04: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-30 04:34:17] Production.INFO: count ==770 [2025-01-30 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:34:04 - End Time 2025-01-30 04:34:04 [2025-01-30 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361244', 'tblTempUsageDetail_20' ) start [2025-01-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361244', 'tblTempUsageDetail_20' ) end [2025-01-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361244', 'tblTempVendorCDR_20' ) start [2025-01-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361244', 'tblTempVendorCDR_20' ) end [2025-01-30 04:34:18] Production.INFO: ProcessCDR(1,14361244,1,1,2) [2025-01-30 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361244', 'tblTempUsageDetail_20' ) start [2025-01-30 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361244', 'tblTempUsageDetail_20' ) end [2025-01-30 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:34:21] Production.INFO: ==17132== Releasing lock... [2025-01-30 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:34:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:35:05 [end_date_ymd] => 2025-01-30 04:35:05 [RateCDR] => 1 ) [2025-01-30 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:35:05' and `end` < '2025-01-30 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:35:18] Production.INFO: count ==770 [2025-01-30 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:35:05 - End Time 2025-01-30 04:35:05 [2025-01-30 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361249', 'tblTempUsageDetail_20' ) start [2025-01-30 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361249', 'tblTempUsageDetail_20' ) end [2025-01-30 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361249', 'tblTempVendorCDR_20' ) start [2025-01-30 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361249', 'tblTempVendorCDR_20' ) end [2025-01-30 04:35:18] Production.INFO: ProcessCDR(1,14361249,1,1,2) [2025-01-30 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361249', 'tblTempUsageDetail_20' ) start [2025-01-30 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361249', 'tblTempUsageDetail_20' ) end [2025-01-30 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:35:21] Production.INFO: ==17242== Releasing lock... [2025-01-30 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:35:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:36:05 [end_date_ymd] => 2025-01-30 04:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:36:05' and `end` < '2025-01-30 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-30 04:36:19] Production.INFO: count ==770 [2025-01-30 04:36:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:36:05 - End Time 2025-01-30 04:36:05 [2025-01-30 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361254', 'tblTempUsageDetail_20' ) start [2025-01-30 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361254', 'tblTempUsageDetail_20' ) end [2025-01-30 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361254', 'tblTempVendorCDR_20' ) start [2025-01-30 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361254', 'tblTempVendorCDR_20' ) end [2025-01-30 04:36:19] Production.INFO: ProcessCDR(1,14361254,1,1,2) [2025-01-30 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361254', 'tblTempUsageDetail_20' ) start [2025-01-30 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361254', 'tblTempUsageDetail_20' ) end [2025-01-30 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:36:22] Production.INFO: ==17315== Releasing lock... [2025-01-30 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:36:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:37:05 [end_date_ymd] => 2025-01-30 04:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:37:05' and `end` < '2025-01-30 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-30 04:37:18] Production.INFO: count ==770 [2025-01-30 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:37:05 - End Time 2025-01-30 04:37:05 [2025-01-30 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361259', 'tblTempUsageDetail_20' ) start [2025-01-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361259', 'tblTempUsageDetail_20' ) end [2025-01-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361259', 'tblTempVendorCDR_20' ) start [2025-01-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361259', 'tblTempVendorCDR_20' ) end [2025-01-30 04:37:18] Production.INFO: ProcessCDR(1,14361259,1,1,2) [2025-01-30 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361259', 'tblTempUsageDetail_20' ) start [2025-01-30 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361259', 'tblTempUsageDetail_20' ) end [2025-01-30 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:37:21] Production.INFO: ==17385== Releasing lock... [2025-01-30 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:37:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:38:05 [end_date_ymd] => 2025-01-30 04:38:05 [RateCDR] => 1 ) [2025-01-30 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:38:05' and `end` < '2025-01-30 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:38:17] Production.INFO: count ==770 [2025-01-30 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:38:05 - End Time 2025-01-30 04:38:05 [2025-01-30 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361264', 'tblTempUsageDetail_20' ) start [2025-01-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361264', 'tblTempUsageDetail_20' ) end [2025-01-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361264', 'tblTempVendorCDR_20' ) start [2025-01-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361264', 'tblTempVendorCDR_20' ) end [2025-01-30 04:38:18] Production.INFO: ProcessCDR(1,14361264,1,1,2) [2025-01-30 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361264', 'tblTempUsageDetail_20' ) start [2025-01-30 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361264', 'tblTempUsageDetail_20' ) end [2025-01-30 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:38:21] Production.INFO: ==17462== Releasing lock... [2025-01-30 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:38:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:39:05 [end_date_ymd] => 2025-01-30 04:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:39:05' and `end` < '2025-01-30 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-30 04:39:19] Production.INFO: count ==770 [2025-01-30 04:39:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:39:05 - End Time 2025-01-30 04:39:05 [2025-01-30 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361269', 'tblTempUsageDetail_20' ) start [2025-01-30 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361269', 'tblTempUsageDetail_20' ) end [2025-01-30 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361269', 'tblTempVendorCDR_20' ) start [2025-01-30 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361269', 'tblTempVendorCDR_20' ) end [2025-01-30 04:39:19] Production.INFO: ProcessCDR(1,14361269,1,1,2) [2025-01-30 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361269', 'tblTempUsageDetail_20' ) start [2025-01-30 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361269', 'tblTempUsageDetail_20' ) end [2025-01-30 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:39:22] Production.INFO: ==17539== Releasing lock... [2025-01-30 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:39:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:40:06 [end_date_ymd] => 2025-01-30 04:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 01:40:06' and `end` < '2025-01-30 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-30 04:40:20] Production.INFO: count ==770 [2025-01-30 04:40:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:40:06 - End Time 2025-01-30 04:40:06 [2025-01-30 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361275', 'tblTempUsageDetail_20' ) start [2025-01-30 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361275', 'tblTempUsageDetail_20' ) end [2025-01-30 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361275', 'tblTempVendorCDR_20' ) start [2025-01-30 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361275', 'tblTempVendorCDR_20' ) end [2025-01-30 04:40:20] Production.INFO: ProcessCDR(1,14361275,1,1,2) [2025-01-30 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361275', 'tblTempUsageDetail_20' ) start [2025-01-30 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361275', 'tblTempUsageDetail_20' ) end [2025-01-30 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:40:23] Production.INFO: ==17618== Releasing lock... [2025-01-30 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:40:23] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:41:05 [end_date_ymd] => 2025-01-30 04:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:41:05' and `end` < '2025-01-30 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-30 04:41:18] Production.INFO: count ==770 [2025-01-30 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:41:05 - End Time 2025-01-30 04:41:05 [2025-01-30 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361280', 'tblTempUsageDetail_20' ) start [2025-01-30 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361280', 'tblTempUsageDetail_20' ) end [2025-01-30 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361280', 'tblTempVendorCDR_20' ) start [2025-01-30 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361280', 'tblTempVendorCDR_20' ) end [2025-01-30 04:41:18] Production.INFO: ProcessCDR(1,14361280,1,1,2) [2025-01-30 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361280', 'tblTempUsageDetail_20' ) start [2025-01-30 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361280', 'tblTempUsageDetail_20' ) end [2025-01-30 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:41:21] Production.INFO: ==17691== Releasing lock... [2025-01-30 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:41:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:42:05 [end_date_ymd] => 2025-01-30 04:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:42:05' and `end` < '2025-01-30 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-30 04:42:18] Production.INFO: count ==770 [2025-01-30 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:42:05 - End Time 2025-01-30 04:42:05 [2025-01-30 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361285', 'tblTempUsageDetail_20' ) start [2025-01-30 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361285', 'tblTempUsageDetail_20' ) end [2025-01-30 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361285', 'tblTempVendorCDR_20' ) start [2025-01-30 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361285', 'tblTempVendorCDR_20' ) end [2025-01-30 04:42:18] Production.INFO: ProcessCDR(1,14361285,1,1,2) [2025-01-30 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361285', 'tblTempUsageDetail_20' ) start [2025-01-30 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361285', 'tblTempUsageDetail_20' ) end [2025-01-30 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:42:22] Production.INFO: ==17766== Releasing lock... [2025-01-30 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:42:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:43:05 [end_date_ymd] => 2025-01-30 04:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:43:05' and `end` < '2025-01-30 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-30 04:43:19] Production.INFO: count ==770 [2025-01-30 04:43:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:43:05 - End Time 2025-01-30 04:43:05 [2025-01-30 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361290', 'tblTempUsageDetail_20' ) start [2025-01-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361290', 'tblTempUsageDetail_20' ) end [2025-01-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361290', 'tblTempVendorCDR_20' ) start [2025-01-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361290', 'tblTempVendorCDR_20' ) end [2025-01-30 04:43:19] Production.INFO: ProcessCDR(1,14361290,1,1,2) [2025-01-30 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361290', 'tblTempUsageDetail_20' ) start [2025-01-30 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361290', 'tblTempUsageDetail_20' ) end [2025-01-30 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:43:22] Production.INFO: ==17836== Releasing lock... [2025-01-30 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:43:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:44:05 [end_date_ymd] => 2025-01-30 04:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:44:05' and `end` < '2025-01-30 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-30 04:44:19] Production.INFO: count ==769 [2025-01-30 04:44:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:44:05 - End Time 2025-01-30 04:44:05 [2025-01-30 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361295', 'tblTempUsageDetail_20' ) start [2025-01-30 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361295', 'tblTempUsageDetail_20' ) end [2025-01-30 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361295', 'tblTempVendorCDR_20' ) start [2025-01-30 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361295', 'tblTempVendorCDR_20' ) end [2025-01-30 04:44:19] Production.INFO: ProcessCDR(1,14361295,1,1,2) [2025-01-30 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361295', 'tblTempUsageDetail_20' ) start [2025-01-30 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361295', 'tblTempUsageDetail_20' ) end [2025-01-30 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:44:22] Production.INFO: ==17908== Releasing lock... [2025-01-30 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:45:04 [end_date_ymd] => 2025-01-30 04:45:04 [RateCDR] => 1 ) [2025-01-30 04: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-30 01:45:04' and `end` < '2025-01-30 04: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-30 04:45:17] Production.INFO: count ==769 [2025-01-30 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-30 01:45:04 - End Time 2025-01-30 04:45:04 [2025-01-30 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361300', 'tblTempUsageDetail_20' ) start [2025-01-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361300', 'tblTempUsageDetail_20' ) end [2025-01-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361300', 'tblTempVendorCDR_20' ) start [2025-01-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361300', 'tblTempVendorCDR_20' ) end [2025-01-30 04:45:17] Production.INFO: ProcessCDR(1,14361300,1,1,2) [2025-01-30 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361300', 'tblTempUsageDetail_20' ) start [2025-01-30 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361300', 'tblTempUsageDetail_20' ) end [2025-01-30 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:45:20] Production.INFO: ==17980== Releasing lock... [2025-01-30 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:45:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:46:05 [end_date_ymd] => 2025-01-30 04:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:46:05' and `end` < '2025-01-30 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-30 04:46:21] Production.INFO: count ==769 [2025-01-30 04:46:21] Production.ERROR: pbx CDR StartTime 2025-01-30 01:46:05 - End Time 2025-01-30 04:46:05 [2025-01-30 04:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361305', 'tblTempUsageDetail_20' ) start [2025-01-30 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361305', 'tblTempUsageDetail_20' ) end [2025-01-30 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361305', 'tblTempVendorCDR_20' ) start [2025-01-30 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361305', 'tblTempVendorCDR_20' ) end [2025-01-30 04:46:21] Production.INFO: ProcessCDR(1,14361305,1,1,2) [2025-01-30 04:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361305', 'tblTempUsageDetail_20' ) start [2025-01-30 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361305', 'tblTempUsageDetail_20' ) end [2025-01-30 04:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:46:24] Production.INFO: ==18050== Releasing lock... [2025-01-30 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:46:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:47:04 [end_date_ymd] => 2025-01-30 04:47:04 [RateCDR] => 1 ) [2025-01-30 04: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-30 01:47:04' and `end` < '2025-01-30 04: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-30 04:47:18] Production.INFO: count ==769 [2025-01-30 04:47:18] Production.ERROR: pbx CDR StartTime 2025-01-30 01:47:04 - End Time 2025-01-30 04:47:04 [2025-01-30 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361310', 'tblTempUsageDetail_20' ) start [2025-01-30 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361310', 'tblTempUsageDetail_20' ) end [2025-01-30 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361310', 'tblTempVendorCDR_20' ) start [2025-01-30 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361310', 'tblTempVendorCDR_20' ) end [2025-01-30 04:47:19] Production.INFO: ProcessCDR(1,14361310,1,1,2) [2025-01-30 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361310', 'tblTempUsageDetail_20' ) start [2025-01-30 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361310', 'tblTempUsageDetail_20' ) end [2025-01-30 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:47:22] Production.INFO: ==18119== Releasing lock... [2025-01-30 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:48:05 [end_date_ymd] => 2025-01-30 04:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:48:05' and `end` < '2025-01-30 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-30 04:48:21] Production.INFO: count ==769 [2025-01-30 04:48:21] Production.ERROR: pbx CDR StartTime 2025-01-30 01:48:05 - End Time 2025-01-30 04:48:05 [2025-01-30 04:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361315', 'tblTempUsageDetail_20' ) start [2025-01-30 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361315', 'tblTempUsageDetail_20' ) end [2025-01-30 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361315', 'tblTempVendorCDR_20' ) start [2025-01-30 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361315', 'tblTempVendorCDR_20' ) end [2025-01-30 04:48:21] Production.INFO: ProcessCDR(1,14361315,1,1,2) [2025-01-30 04:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361315', 'tblTempUsageDetail_20' ) start [2025-01-30 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361315', 'tblTempUsageDetail_20' ) end [2025-01-30 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:48:24] Production.INFO: ==18190== Releasing lock... [2025-01-30 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:48:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:49:05 [end_date_ymd] => 2025-01-30 04:49:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:49:05' and `end` < '2025-01-30 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-30 04:49:21] Production.INFO: count ==769 [2025-01-30 04:49:21] Production.ERROR: pbx CDR StartTime 2025-01-30 01:49:05 - End Time 2025-01-30 04:49:05 [2025-01-30 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361320', 'tblTempUsageDetail_20' ) start [2025-01-30 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361320', 'tblTempUsageDetail_20' ) end [2025-01-30 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361320', 'tblTempVendorCDR_20' ) start [2025-01-30 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361320', 'tblTempVendorCDR_20' ) end [2025-01-30 04:49:21] Production.INFO: ProcessCDR(1,14361320,1,1,2) [2025-01-30 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361320', 'tblTempUsageDetail_20' ) start [2025-01-30 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361320', 'tblTempUsageDetail_20' ) end [2025-01-30 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:49:24] Production.INFO: ==18260== Releasing lock... [2025-01-30 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:49:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:50:05 [end_date_ymd] => 2025-01-30 04:50:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:50:05' and `end` < '2025-01-30 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-30 04:50:20] Production.INFO: count ==769 [2025-01-30 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:50:05 - End Time 2025-01-30 04:50:05 [2025-01-30 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361325', 'tblTempUsageDetail_20' ) start [2025-01-30 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361325', 'tblTempUsageDetail_20' ) end [2025-01-30 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361325', 'tblTempVendorCDR_20' ) start [2025-01-30 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361325', 'tblTempVendorCDR_20' ) end [2025-01-30 04:50:20] Production.INFO: ProcessCDR(1,14361325,1,1,2) [2025-01-30 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361325', 'tblTempUsageDetail_20' ) start [2025-01-30 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361325', 'tblTempUsageDetail_20' ) end [2025-01-30 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:50:23] Production.INFO: ==18331== Releasing lock... [2025-01-30 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:50:23] Production.INFO: 34 MB #Memory Used# [2025-01-30 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:51:05 [end_date_ymd] => 2025-01-30 04:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:51:05' and `end` < '2025-01-30 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-30 04:51:20] Production.INFO: count ==771 [2025-01-30 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:51:05 - End Time 2025-01-30 04:51:05 [2025-01-30 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361329', 'tblTempUsageDetail_20' ) start [2025-01-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361329', 'tblTempUsageDetail_20' ) end [2025-01-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361329', 'tblTempVendorCDR_20' ) start [2025-01-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361329', 'tblTempVendorCDR_20' ) end [2025-01-30 04:51:20] Production.INFO: ProcessCDR(1,14361329,1,1,2) [2025-01-30 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361329', 'tblTempUsageDetail_20' ) start [2025-01-30 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361329', 'tblTempUsageDetail_20' ) end [2025-01-30 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:51:23] Production.INFO: ==18443== Releasing lock... [2025-01-30 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:51:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:52:05 [end_date_ymd] => 2025-01-30 04:52:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:52:05' and `end` < '2025-01-30 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-30 04:52:19] Production.INFO: count ==771 [2025-01-30 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:52:05 - End Time 2025-01-30 04:52:05 [2025-01-30 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361336', 'tblTempUsageDetail_20' ) start [2025-01-30 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361336', 'tblTempUsageDetail_20' ) end [2025-01-30 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361336', 'tblTempVendorCDR_20' ) start [2025-01-30 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361336', 'tblTempVendorCDR_20' ) end [2025-01-30 04:52:19] Production.INFO: ProcessCDR(1,14361336,1,1,2) [2025-01-30 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361336', 'tblTempUsageDetail_20' ) start [2025-01-30 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361336', 'tblTempUsageDetail_20' ) end [2025-01-30 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:52:22] Production.INFO: ==18520== Releasing lock... [2025-01-30 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:52:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:53:06 [end_date_ymd] => 2025-01-30 04:53:06 [RateCDR] => 1 ) [2025-01-30 04:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:53:06' and `end` < '2025-01-30 04:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:53:20] Production.INFO: count ==768 [2025-01-30 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:53:06 - End Time 2025-01-30 04:53:06 [2025-01-30 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361341', 'tblTempUsageDetail_20' ) start [2025-01-30 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361341', 'tblTempUsageDetail_20' ) end [2025-01-30 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361341', 'tblTempVendorCDR_20' ) start [2025-01-30 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361341', 'tblTempVendorCDR_20' ) end [2025-01-30 04:53:20] Production.INFO: ProcessCDR(1,14361341,1,1,2) [2025-01-30 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361341', 'tblTempUsageDetail_20' ) start [2025-01-30 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361341', 'tblTempUsageDetail_20' ) end [2025-01-30 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:53:24] Production.INFO: ==18597== Releasing lock... [2025-01-30 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:53:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:54:05 [end_date_ymd] => 2025-01-30 04:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:54:05' and `end` < '2025-01-30 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-30 04:54:19] Production.INFO: count ==768 [2025-01-30 04:54:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:54:05 - End Time 2025-01-30 04:54:05 [2025-01-30 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361346', 'tblTempUsageDetail_20' ) start [2025-01-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361346', 'tblTempUsageDetail_20' ) end [2025-01-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361346', 'tblTempVendorCDR_20' ) start [2025-01-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361346', 'tblTempVendorCDR_20' ) end [2025-01-30 04:54:19] Production.INFO: ProcessCDR(1,14361346,1,1,2) [2025-01-30 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361346', 'tblTempUsageDetail_20' ) start [2025-01-30 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361346', 'tblTempUsageDetail_20' ) end [2025-01-30 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:54:22] Production.INFO: ==18667== Releasing lock... [2025-01-30 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:55:05 [end_date_ymd] => 2025-01-30 04:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:55:05' and `end` < '2025-01-30 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-30 04:55:19] Production.INFO: count ==767 [2025-01-30 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:55:05 - End Time 2025-01-30 04:55:05 [2025-01-30 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361351', 'tblTempUsageDetail_20' ) start [2025-01-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361351', 'tblTempUsageDetail_20' ) end [2025-01-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361351', 'tblTempVendorCDR_20' ) start [2025-01-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361351', 'tblTempVendorCDR_20' ) end [2025-01-30 04:55:20] Production.INFO: ProcessCDR(1,14361351,1,1,2) [2025-01-30 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361351', 'tblTempUsageDetail_20' ) start [2025-01-30 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361351', 'tblTempUsageDetail_20' ) end [2025-01-30 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:55:23] Production.INFO: ==18736== Releasing lock... [2025-01-30 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:55:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:56:05 [end_date_ymd] => 2025-01-30 04:56:05 [RateCDR] => 1 ) [2025-01-30 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 01:56:05' and `end` < '2025-01-30 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:56:21] Production.INFO: count ==767 [2025-01-30 04:56:21] Production.ERROR: pbx CDR StartTime 2025-01-30 01:56:05 - End Time 2025-01-30 04:56:05 [2025-01-30 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361356', 'tblTempUsageDetail_20' ) start [2025-01-30 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361356', 'tblTempUsageDetail_20' ) end [2025-01-30 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361356', 'tblTempVendorCDR_20' ) start [2025-01-30 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361356', 'tblTempVendorCDR_20' ) end [2025-01-30 04:56:21] Production.INFO: ProcessCDR(1,14361356,1,1,2) [2025-01-30 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361356', 'tblTempUsageDetail_20' ) start [2025-01-30 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361356', 'tblTempUsageDetail_20' ) end [2025-01-30 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:56:24] Production.INFO: ==18927== Releasing lock... [2025-01-30 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:56:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:57:05 [end_date_ymd] => 2025-01-30 04:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:57:05' and `end` < '2025-01-30 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-30 04:57:19] Production.INFO: count ==767 [2025-01-30 04:57:19] Production.ERROR: pbx CDR StartTime 2025-01-30 01:57:05 - End Time 2025-01-30 04:57:05 [2025-01-30 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361361', 'tblTempUsageDetail_20' ) start [2025-01-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361361', 'tblTempUsageDetail_20' ) end [2025-01-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361361', 'tblTempVendorCDR_20' ) start [2025-01-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361361', 'tblTempVendorCDR_20' ) end [2025-01-30 04:57:19] Production.INFO: ProcessCDR(1,14361361,1,1,2) [2025-01-30 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361361', 'tblTempUsageDetail_20' ) start [2025-01-30 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361361', 'tblTempUsageDetail_20' ) end [2025-01-30 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:57:22] Production.INFO: ==18997== Releasing lock... [2025-01-30 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:58:04 [end_date_ymd] => 2025-01-30 04:58:04 [RateCDR] => 1 ) [2025-01-30 04: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-30 01:58:04' and `end` < '2025-01-30 04: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-30 04:58:17] Production.INFO: count ==767 [2025-01-30 04:58:17] Production.ERROR: pbx CDR StartTime 2025-01-30 01:58:04 - End Time 2025-01-30 04:58:04 [2025-01-30 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361366', 'tblTempUsageDetail_20' ) start [2025-01-30 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361366', 'tblTempUsageDetail_20' ) end [2025-01-30 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361366', 'tblTempVendorCDR_20' ) start [2025-01-30 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361366', 'tblTempVendorCDR_20' ) end [2025-01-30 04:58:18] Production.INFO: ProcessCDR(1,14361366,1,1,2) [2025-01-30 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361366', 'tblTempUsageDetail_20' ) start [2025-01-30 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361366', 'tblTempUsageDetail_20' ) end [2025-01-30 04:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:58:21] Production.INFO: ==19067== Releasing lock... [2025-01-30 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:58:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 01:59:05 [end_date_ymd] => 2025-01-30 04:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 01:59:05' and `end` < '2025-01-30 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 04:59:20] Production.INFO: count ==767 [2025-01-30 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-30 01:59:05 - End Time 2025-01-30 04:59:05 [2025-01-30 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361371', 'tblTempUsageDetail_20' ) start [2025-01-30 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361371', 'tblTempUsageDetail_20' ) end [2025-01-30 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361371', 'tblTempVendorCDR_20' ) start [2025-01-30 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361371', 'tblTempVendorCDR_20' ) end [2025-01-30 04:59:20] Production.INFO: ProcessCDR(1,14361371,1,1,2) [2025-01-30 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361371', 'tblTempUsageDetail_20' ) start [2025-01-30 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361371', 'tblTempUsageDetail_20' ) end [2025-01-30 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 04:59:23] Production.INFO: ==19143== Releasing lock... [2025-01-30 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 04:59:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:00:06 [end_date_ymd] => 2025-01-30 05:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 02:00:06' and `end` < '2025-01-30 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-30 05:00:20] Production.INFO: count ==767 [2025-01-30 05:00:20] Production.ERROR: pbx CDR StartTime 2025-01-30 02:00:06 - End Time 2025-01-30 05:00:06 [2025-01-30 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361376', 'tblTempUsageDetail_20' ) start [2025-01-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361376', 'tblTempUsageDetail_20' ) end [2025-01-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361376', 'tblTempVendorCDR_20' ) start [2025-01-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361376', 'tblTempVendorCDR_20' ) end [2025-01-30 05:00:20] Production.INFO: ProcessCDR(1,14361376,1,1,2) [2025-01-30 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361376', 'tblTempUsageDetail_20' ) start [2025-01-30 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361376', 'tblTempUsageDetail_20' ) end [2025-01-30 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:00:23] Production.INFO: ==19217== Releasing lock... [2025-01-30 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:00:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:01:05 [end_date_ymd] => 2025-01-30 05:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:01:05' and `end` < '2025-01-30 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-30 05:01:19] Production.INFO: count ==771 [2025-01-30 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-30 02:01:05 - End Time 2025-01-30 05:01:05 [2025-01-30 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361382', 'tblTempUsageDetail_20' ) start [2025-01-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361382', 'tblTempUsageDetail_20' ) end [2025-01-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361382', 'tblTempVendorCDR_20' ) start [2025-01-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361382', 'tblTempVendorCDR_20' ) end [2025-01-30 05:01:20] Production.INFO: ProcessCDR(1,14361382,1,1,2) [2025-01-30 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361382', 'tblTempUsageDetail_20' ) start [2025-01-30 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361382', 'tblTempUsageDetail_20' ) end [2025-01-30 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:01:23] Production.INFO: ==19303== Releasing lock... [2025-01-30 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:01:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:02:06 [end_date_ymd] => 2025-01-30 05:02:06 [RateCDR] => 1 ) [2025-01-30 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:02:06' and `end` < '2025-01-30 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:02:20] Production.INFO: count ==771 [2025-01-30 05:02:20] Production.ERROR: pbx CDR StartTime 2025-01-30 02:02:06 - End Time 2025-01-30 05:02:06 [2025-01-30 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361387', 'tblTempUsageDetail_20' ) start [2025-01-30 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361387', 'tblTempUsageDetail_20' ) end [2025-01-30 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361387', 'tblTempVendorCDR_20' ) start [2025-01-30 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361387', 'tblTempVendorCDR_20' ) end [2025-01-30 05:02:20] Production.INFO: ProcessCDR(1,14361387,1,1,2) [2025-01-30 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361387', 'tblTempUsageDetail_20' ) start [2025-01-30 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361387', 'tblTempUsageDetail_20' ) end [2025-01-30 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:02:23] Production.INFO: ==19378== Releasing lock... [2025-01-30 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:03:05 [end_date_ymd] => 2025-01-30 05:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:03:05' and `end` < '2025-01-30 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-30 05:03:19] Production.INFO: count ==848 [2025-01-30 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-30 02:03:05 - End Time 2025-01-30 05:03:05 [2025-01-30 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361392', 'tblTempUsageDetail_20' ) start [2025-01-30 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361392', 'tblTempUsageDetail_20' ) end [2025-01-30 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361392', 'tblTempVendorCDR_20' ) start [2025-01-30 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361392', 'tblTempVendorCDR_20' ) end [2025-01-30 05:03:20] Production.INFO: ProcessCDR(1,14361392,1,1,2) [2025-01-30 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361392', 'tblTempUsageDetail_20' ) start [2025-01-30 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361392', 'tblTempUsageDetail_20' ) end [2025-01-30 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:03:23] Production.INFO: ==19449== Releasing lock... [2025-01-30 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:03:23] Production.INFO: 35 MB #Memory Used# [2025-01-30 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:04:05 [end_date_ymd] => 2025-01-30 05:04:05 [RateCDR] => 1 ) [2025-01-30 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:04:05' and `end` < '2025-01-30 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:04:20] Production.INFO: count ==881 [2025-01-30 05:04:20] Production.ERROR: pbx CDR StartTime 2025-01-30 02:04:05 - End Time 2025-01-30 05:04:05 [2025-01-30 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361397', 'tblTempUsageDetail_20' ) start [2025-01-30 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361397', 'tblTempUsageDetail_20' ) end [2025-01-30 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361397', 'tblTempVendorCDR_20' ) start [2025-01-30 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361397', 'tblTempVendorCDR_20' ) end [2025-01-30 05:04:20] Production.INFO: ProcessCDR(1,14361397,1,1,2) [2025-01-30 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361397', 'tblTempUsageDetail_20' ) start [2025-01-30 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361397', 'tblTempUsageDetail_20' ) end [2025-01-30 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:04:23] Production.INFO: ==19526== Releasing lock... [2025-01-30 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:04:23] Production.INFO: 35 MB #Memory Used# [2025-01-30 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:05:05 [end_date_ymd] => 2025-01-30 05:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:05:05' and `end` < '2025-01-30 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-30 05:05:17] Production.INFO: count ==881 [2025-01-30 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:05:05 - End Time 2025-01-30 05:05:05 [2025-01-30 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361402', 'tblTempUsageDetail_20' ) start [2025-01-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361402', 'tblTempUsageDetail_20' ) end [2025-01-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361402', 'tblTempVendorCDR_20' ) start [2025-01-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361402', 'tblTempVendorCDR_20' ) end [2025-01-30 05:05:18] Production.INFO: ProcessCDR(1,14361402,1,1,2) [2025-01-30 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361402', 'tblTempUsageDetail_20' ) start [2025-01-30 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361402', 'tblTempUsageDetail_20' ) end [2025-01-30 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:05:21] Production.INFO: ==19600== Releasing lock... [2025-01-30 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:05:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:06:05 [end_date_ymd] => 2025-01-30 05:06:05 [RateCDR] => 1 ) [2025-01-30 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:06:05' and `end` < '2025-01-30 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:06:18] Production.INFO: count ==881 [2025-01-30 05:06:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:06:05 - End Time 2025-01-30 05:06:05 [2025-01-30 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361407', 'tblTempUsageDetail_20' ) start [2025-01-30 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361407', 'tblTempUsageDetail_20' ) end [2025-01-30 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361407', 'tblTempVendorCDR_20' ) start [2025-01-30 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361407', 'tblTempVendorCDR_20' ) end [2025-01-30 05:06:18] Production.INFO: ProcessCDR(1,14361407,1,1,2) [2025-01-30 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361407', 'tblTempUsageDetail_20' ) start [2025-01-30 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361407', 'tblTempUsageDetail_20' ) end [2025-01-30 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:06:21] Production.INFO: ==19709== Releasing lock... [2025-01-30 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:06:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:07:05 [end_date_ymd] => 2025-01-30 05:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:07:05' and `end` < '2025-01-30 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-30 05:07:18] Production.INFO: count ==881 [2025-01-30 05:07:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:07:05 - End Time 2025-01-30 05:07:05 [2025-01-30 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361412', 'tblTempUsageDetail_20' ) start [2025-01-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361412', 'tblTempUsageDetail_20' ) end [2025-01-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361412', 'tblTempVendorCDR_20' ) start [2025-01-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361412', 'tblTempVendorCDR_20' ) end [2025-01-30 05:07:19] Production.INFO: ProcessCDR(1,14361412,1,1,2) [2025-01-30 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361412', 'tblTempUsageDetail_20' ) start [2025-01-30 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361412', 'tblTempUsageDetail_20' ) end [2025-01-30 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:07:22] Production.INFO: ==19781== Releasing lock... [2025-01-30 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:07:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:08:05 [end_date_ymd] => 2025-01-30 05:08:05 [RateCDR] => 1 ) [2025-01-30 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:08:05' and `end` < '2025-01-30 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:08:19] Production.INFO: count ==865 [2025-01-30 05:08:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:08:05 - End Time 2025-01-30 05:08:05 [2025-01-30 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361417', 'tblTempUsageDetail_20' ) start [2025-01-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361417', 'tblTempUsageDetail_20' ) end [2025-01-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361417', 'tblTempVendorCDR_20' ) start [2025-01-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361417', 'tblTempVendorCDR_20' ) end [2025-01-30 05:08:19] Production.INFO: ProcessCDR(1,14361417,1,1,2) [2025-01-30 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361417', 'tblTempUsageDetail_20' ) start [2025-01-30 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361417', 'tblTempUsageDetail_20' ) end [2025-01-30 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:08:22] Production.INFO: ==19861== Releasing lock... [2025-01-30 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:08:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:09:05 [end_date_ymd] => 2025-01-30 05:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:09:05' and `end` < '2025-01-30 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-30 05:09:18] Production.INFO: count ==830 [2025-01-30 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:09:05 - End Time 2025-01-30 05:09:05 [2025-01-30 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361422', 'tblTempUsageDetail_20' ) start [2025-01-30 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361422', 'tblTempUsageDetail_20' ) end [2025-01-30 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361422', 'tblTempVendorCDR_20' ) start [2025-01-30 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361422', 'tblTempVendorCDR_20' ) end [2025-01-30 05:09:19] Production.INFO: ProcessCDR(1,14361422,1,1,2) [2025-01-30 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361422', 'tblTempUsageDetail_20' ) start [2025-01-30 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361422', 'tblTempUsageDetail_20' ) end [2025-01-30 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:09:21] Production.INFO: ==19939== Releasing lock... [2025-01-30 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:09:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:10:06 [end_date_ymd] => 2025-01-30 05:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 02:10:06' and `end` < '2025-01-30 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-30 05:10:20] Production.INFO: count ==824 [2025-01-30 05:10:20] Production.ERROR: pbx CDR StartTime 2025-01-30 02:10:06 - End Time 2025-01-30 05:10:06 [2025-01-30 05:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361427', 'tblTempUsageDetail_20' ) start [2025-01-30 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361427', 'tblTempUsageDetail_20' ) end [2025-01-30 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361427', 'tblTempVendorCDR_20' ) start [2025-01-30 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361427', 'tblTempVendorCDR_20' ) end [2025-01-30 05:10:20] Production.INFO: ProcessCDR(1,14361427,1,1,2) [2025-01-30 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361427', 'tblTempUsageDetail_20' ) start [2025-01-30 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361427', 'tblTempUsageDetail_20' ) end [2025-01-30 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:10:23] Production.INFO: ==20015== Releasing lock... [2025-01-30 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:10:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:11:06 [end_date_ymd] => 2025-01-30 05:11:06 [RateCDR] => 1 ) [2025-01-30 05: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-30 02:11:06' and `end` < '2025-01-30 05: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-30 05:11:18] Production.INFO: count ==783 [2025-01-30 05:11:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:11:06 - End Time 2025-01-30 05:11:06 [2025-01-30 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361433', 'tblTempUsageDetail_20' ) start [2025-01-30 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361433', 'tblTempUsageDetail_20' ) end [2025-01-30 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361433', 'tblTempVendorCDR_20' ) start [2025-01-30 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361433', 'tblTempVendorCDR_20' ) end [2025-01-30 05:11:19] Production.INFO: ProcessCDR(1,14361433,1,1,2) [2025-01-30 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361433', 'tblTempUsageDetail_20' ) start [2025-01-30 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361433', 'tblTempUsageDetail_20' ) end [2025-01-30 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:11:22] Production.INFO: ==20098== Releasing lock... [2025-01-30 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:11:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:12:05 [end_date_ymd] => 2025-01-30 05:12:05 [RateCDR] => 1 ) [2025-01-30 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:12:05' and `end` < '2025-01-30 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:12:18] Production.INFO: count ==781 [2025-01-30 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:12:05 - End Time 2025-01-30 05:12:05 [2025-01-30 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361438', 'tblTempUsageDetail_20' ) start [2025-01-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361438', 'tblTempUsageDetail_20' ) end [2025-01-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361438', 'tblTempVendorCDR_20' ) start [2025-01-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361438', 'tblTempVendorCDR_20' ) end [2025-01-30 05:12:18] Production.INFO: ProcessCDR(1,14361438,1,1,2) [2025-01-30 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361438', 'tblTempUsageDetail_20' ) start [2025-01-30 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361438', 'tblTempUsageDetail_20' ) end [2025-01-30 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:12:21] Production.INFO: ==20179== Releasing lock... [2025-01-30 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:12:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:13:05 [end_date_ymd] => 2025-01-30 05:13:05 [RateCDR] => 1 ) [2025-01-30 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:13:05' and `end` < '2025-01-30 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:13:18] Production.INFO: count ==793 [2025-01-30 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:13:05 - End Time 2025-01-30 05:13:05 [2025-01-30 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361443', 'tblTempUsageDetail_20' ) start [2025-01-30 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361443', 'tblTempUsageDetail_20' ) end [2025-01-30 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361443', 'tblTempVendorCDR_20' ) start [2025-01-30 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361443', 'tblTempVendorCDR_20' ) end [2025-01-30 05:13:19] Production.INFO: ProcessCDR(1,14361443,1,1,2) [2025-01-30 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361443', 'tblTempUsageDetail_20' ) start [2025-01-30 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361443', 'tblTempUsageDetail_20' ) end [2025-01-30 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:13:22] Production.INFO: ==20261== Releasing lock... [2025-01-30 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:13:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:14:05 [end_date_ymd] => 2025-01-30 05:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:14:05' and `end` < '2025-01-30 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-30 05:14:18] Production.INFO: count ==793 [2025-01-30 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:14:05 - End Time 2025-01-30 05:14:05 [2025-01-30 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361448', 'tblTempUsageDetail_20' ) start [2025-01-30 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361448', 'tblTempUsageDetail_20' ) end [2025-01-30 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361448', 'tblTempVendorCDR_20' ) start [2025-01-30 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361448', 'tblTempVendorCDR_20' ) end [2025-01-30 05:14:18] Production.INFO: ProcessCDR(1,14361448,1,1,2) [2025-01-30 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361448', 'tblTempUsageDetail_20' ) start [2025-01-30 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361448', 'tblTempUsageDetail_20' ) end [2025-01-30 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:14:21] Production.INFO: ==20334== Releasing lock... [2025-01-30 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:15:06 [end_date_ymd] => 2025-01-30 05:15:06 [RateCDR] => 1 ) [2025-01-30 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:15:06' and `end` < '2025-01-30 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:15:19] Production.INFO: count ==791 [2025-01-30 05:15:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:15:06 - End Time 2025-01-30 05:15:06 [2025-01-30 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361453', 'tblTempUsageDetail_20' ) start [2025-01-30 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361453', 'tblTempUsageDetail_20' ) end [2025-01-30 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361453', 'tblTempVendorCDR_20' ) start [2025-01-30 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361453', 'tblTempVendorCDR_20' ) end [2025-01-30 05:15:19] Production.INFO: ProcessCDR(1,14361453,1,1,2) [2025-01-30 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361453', 'tblTempUsageDetail_20' ) start [2025-01-30 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361453', 'tblTempUsageDetail_20' ) end [2025-01-30 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:15:22] Production.INFO: ==20415== Releasing lock... [2025-01-30 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:16:05 [end_date_ymd] => 2025-01-30 05:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:16:05' and `end` < '2025-01-30 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-30 05:16:18] Production.INFO: count ==757 [2025-01-30 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:16:05 - End Time 2025-01-30 05:16:05 [2025-01-30 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361458', 'tblTempUsageDetail_20' ) start [2025-01-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361458', 'tblTempUsageDetail_20' ) end [2025-01-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361458', 'tblTempVendorCDR_20' ) start [2025-01-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361458', 'tblTempVendorCDR_20' ) end [2025-01-30 05:16:18] Production.INFO: ProcessCDR(1,14361458,1,1,2) [2025-01-30 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361458', 'tblTempUsageDetail_20' ) start [2025-01-30 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361458', 'tblTempUsageDetail_20' ) end [2025-01-30 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:16:21] Production.INFO: ==20495== Releasing lock... [2025-01-30 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:16:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:17:05 [end_date_ymd] => 2025-01-30 05:17:05 [RateCDR] => 1 ) [2025-01-30 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:17:05' and `end` < '2025-01-30 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:17:19] Production.INFO: count ==722 [2025-01-30 05:17:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:17:05 - End Time 2025-01-30 05:17:05 [2025-01-30 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361463', 'tblTempUsageDetail_20' ) start [2025-01-30 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361463', 'tblTempUsageDetail_20' ) end [2025-01-30 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361463', 'tblTempVendorCDR_20' ) start [2025-01-30 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361463', 'tblTempVendorCDR_20' ) end [2025-01-30 05:17:19] Production.INFO: ProcessCDR(1,14361463,1,1,2) [2025-01-30 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361463', 'tblTempUsageDetail_20' ) start [2025-01-30 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361463', 'tblTempUsageDetail_20' ) end [2025-01-30 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:17:22] Production.INFO: ==20571== Releasing lock... [2025-01-30 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:17:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:18:05 [end_date_ymd] => 2025-01-30 05:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:18:05' and `end` < '2025-01-30 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-30 05:18:18] Production.INFO: count ==687 [2025-01-30 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:18:05 - End Time 2025-01-30 05:18:05 [2025-01-30 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361468', 'tblTempUsageDetail_20' ) start [2025-01-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361468', 'tblTempUsageDetail_20' ) end [2025-01-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361468', 'tblTempVendorCDR_20' ) start [2025-01-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361468', 'tblTempVendorCDR_20' ) end [2025-01-30 05:18:19] Production.INFO: ProcessCDR(1,14361468,1,1,2) [2025-01-30 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361468', 'tblTempUsageDetail_20' ) start [2025-01-30 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361468', 'tblTempUsageDetail_20' ) end [2025-01-30 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:18:22] Production.INFO: ==20648== Releasing lock... [2025-01-30 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:19:05 [end_date_ymd] => 2025-01-30 05:19:05 [RateCDR] => 1 ) [2025-01-30 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:19:05' and `end` < '2025-01-30 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:19:18] Production.INFO: count ==653 [2025-01-30 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:19:05 - End Time 2025-01-30 05:19:05 [2025-01-30 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361472', 'tblTempUsageDetail_20' ) start [2025-01-30 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361472', 'tblTempUsageDetail_20' ) end [2025-01-30 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361472', 'tblTempVendorCDR_20' ) start [2025-01-30 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361472', 'tblTempVendorCDR_20' ) end [2025-01-30 05:19:18] Production.INFO: ProcessCDR(1,14361472,1,1,2) [2025-01-30 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361472', 'tblTempUsageDetail_20' ) start [2025-01-30 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361472', 'tblTempUsageDetail_20' ) end [2025-01-30 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:19:21] Production.INFO: ==20733== Releasing lock... [2025-01-30 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:20:05 [end_date_ymd] => 2025-01-30 05:20:05 [RateCDR] => 1 ) [2025-01-30 05: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-30 02:20:05' and `end` < '2025-01-30 05: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-30 05:20:18] Production.INFO: count ==619 [2025-01-30 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:20:05 - End Time 2025-01-30 05:20:05 [2025-01-30 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361478', 'tblTempUsageDetail_20' ) start [2025-01-30 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361478', 'tblTempUsageDetail_20' ) end [2025-01-30 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361478', 'tblTempVendorCDR_20' ) start [2025-01-30 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361478', 'tblTempVendorCDR_20' ) end [2025-01-30 05:20:18] Production.INFO: ProcessCDR(1,14361478,1,1,2) [2025-01-30 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361478', 'tblTempUsageDetail_20' ) start [2025-01-30 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361478', 'tblTempUsageDetail_20' ) end [2025-01-30 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:20:21] Production.INFO: ==20817== Releasing lock... [2025-01-30 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:20:21] Production.INFO: 33 MB #Memory Used# [2025-01-30 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:21:05 [end_date_ymd] => 2025-01-30 05:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:21:05' and `end` < '2025-01-30 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-30 05:21:18] Production.INFO: count ==607 [2025-01-30 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:21:05 - End Time 2025-01-30 05:21:05 [2025-01-30 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361484', 'tblTempUsageDetail_20' ) start [2025-01-30 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361484', 'tblTempUsageDetail_20' ) end [2025-01-30 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361484', 'tblTempVendorCDR_20' ) start [2025-01-30 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361484', 'tblTempVendorCDR_20' ) end [2025-01-30 05:21:18] Production.INFO: ProcessCDR(1,14361484,1,1,2) [2025-01-30 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361484', 'tblTempUsageDetail_20' ) start [2025-01-30 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361484', 'tblTempUsageDetail_20' ) end [2025-01-30 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:21:21] Production.INFO: ==20934== Releasing lock... [2025-01-30 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:22:05 [end_date_ymd] => 2025-01-30 05:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:22:05' and `end` < '2025-01-30 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-30 05:22:18] Production.INFO: count ==605 [2025-01-30 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:22:05 - End Time 2025-01-30 05:22:05 [2025-01-30 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361489', 'tblTempUsageDetail_20' ) start [2025-01-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361489', 'tblTempUsageDetail_20' ) end [2025-01-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361489', 'tblTempVendorCDR_20' ) start [2025-01-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361489', 'tblTempVendorCDR_20' ) end [2025-01-30 05:22:18] Production.INFO: ProcessCDR(1,14361489,1,1,2) [2025-01-30 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361489', 'tblTempUsageDetail_20' ) start [2025-01-30 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361489', 'tblTempUsageDetail_20' ) end [2025-01-30 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:22:21] Production.INFO: ==21016== Releasing lock... [2025-01-30 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-30 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:23:05 [end_date_ymd] => 2025-01-30 05:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:23:05' and `end` < '2025-01-30 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-30 05:23:18] Production.INFO: count ==570 [2025-01-30 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:23:05 - End Time 2025-01-30 05:23:05 [2025-01-30 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361494', 'tblTempUsageDetail_20' ) start [2025-01-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361494', 'tblTempUsageDetail_20' ) end [2025-01-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361494', 'tblTempVendorCDR_20' ) start [2025-01-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361494', 'tblTempVendorCDR_20' ) end [2025-01-30 05:23:18] Production.INFO: ProcessCDR(1,14361494,1,1,2) [2025-01-30 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361494', 'tblTempUsageDetail_20' ) start [2025-01-30 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361494', 'tblTempUsageDetail_20' ) end [2025-01-30 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:23:21] Production.INFO: ==21100== Releasing lock... [2025-01-30 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-30 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:24:06 [end_date_ymd] => 2025-01-30 05:24:06 [RateCDR] => 1 ) [2025-01-30 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:24:06' and `end` < '2025-01-30 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:24:18] Production.INFO: count ==534 [2025-01-30 05:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:24:06 - End Time 2025-01-30 05:24:06 [2025-01-30 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361499', 'tblTempUsageDetail_20' ) start [2025-01-30 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361499', 'tblTempUsageDetail_20' ) end [2025-01-30 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361499', 'tblTempVendorCDR_20' ) start [2025-01-30 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361499', 'tblTempVendorCDR_20' ) end [2025-01-30 05:24:19] Production.INFO: ProcessCDR(1,14361499,1,1,2) [2025-01-30 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361499', 'tblTempUsageDetail_20' ) start [2025-01-30 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361499', 'tblTempUsageDetail_20' ) end [2025-01-30 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:24:22] Production.INFO: ==21173== Releasing lock... [2025-01-30 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-30 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:25:05 [end_date_ymd] => 2025-01-30 05:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:25:05' and `end` < '2025-01-30 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-30 05:25:18] Production.INFO: count ==501 [2025-01-30 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:25:05 - End Time 2025-01-30 05:25:05 [2025-01-30 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361504', 'tblTempUsageDetail_20' ) start [2025-01-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361504', 'tblTempUsageDetail_20' ) end [2025-01-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361504', 'tblTempVendorCDR_20' ) start [2025-01-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361504', 'tblTempVendorCDR_20' ) end [2025-01-30 05:25:18] Production.INFO: ProcessCDR(1,14361504,1,1,2) [2025-01-30 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361504', 'tblTempUsageDetail_20' ) start [2025-01-30 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361504', 'tblTempUsageDetail_20' ) end [2025-01-30 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:25:21] Production.INFO: ==21252== Releasing lock... [2025-01-30 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:25:21] Production.INFO: 32 MB #Memory Used# [2025-01-30 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:26:05 [end_date_ymd] => 2025-01-30 05:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:26:05' and `end` < '2025-01-30 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-30 05:26:19] Production.INFO: count ==467 [2025-01-30 05:26:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:26:05 - End Time 2025-01-30 05:26:05 [2025-01-30 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361509', 'tblTempUsageDetail_20' ) start [2025-01-30 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361509', 'tblTempUsageDetail_20' ) end [2025-01-30 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361509', 'tblTempVendorCDR_20' ) start [2025-01-30 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361509', 'tblTempVendorCDR_20' ) end [2025-01-30 05:26:19] Production.INFO: ProcessCDR(1,14361509,1,1,2) [2025-01-30 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361509', 'tblTempUsageDetail_20' ) start [2025-01-30 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361509', 'tblTempUsageDetail_20' ) end [2025-01-30 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:26:22] Production.INFO: ==21336== Releasing lock... [2025-01-30 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-30 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:27:05 [end_date_ymd] => 2025-01-30 05:27:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:27:05' and `end` < '2025-01-30 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-30 05:27:18] Production.INFO: count ==431 [2025-01-30 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:27:05 - End Time 2025-01-30 05:27:05 [2025-01-30 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361514', 'tblTempUsageDetail_20' ) start [2025-01-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361514', 'tblTempUsageDetail_20' ) end [2025-01-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361514', 'tblTempVendorCDR_20' ) start [2025-01-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361514', 'tblTempVendorCDR_20' ) end [2025-01-30 05:27:18] Production.INFO: ProcessCDR(1,14361514,1,1,2) [2025-01-30 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361514', 'tblTempUsageDetail_20' ) start [2025-01-30 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361514', 'tblTempUsageDetail_20' ) end [2025-01-30 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:27:21] Production.INFO: ==21414== Releasing lock... [2025-01-30 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:27:21] Production.INFO: 32 MB #Memory Used# [2025-01-30 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:28:05 [end_date_ymd] => 2025-01-30 05:28:05 [RateCDR] => 1 ) [2025-01-30 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:28:05' and `end` < '2025-01-30 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:28:18] Production.INFO: count ==397 [2025-01-30 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:28:05 - End Time 2025-01-30 05:28:05 [2025-01-30 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361519', 'tblTempUsageDetail_20' ) start [2025-01-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361519', 'tblTempUsageDetail_20' ) end [2025-01-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361519', 'tblTempVendorCDR_20' ) start [2025-01-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361519', 'tblTempVendorCDR_20' ) end [2025-01-30 05:28:18] Production.INFO: ProcessCDR(1,14361519,1,1,2) [2025-01-30 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361519', 'tblTempUsageDetail_20' ) start [2025-01-30 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361519', 'tblTempUsageDetail_20' ) end [2025-01-30 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:28:21] Production.INFO: ==21496== Releasing lock... [2025-01-30 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-30 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:29:04 [end_date_ymd] => 2025-01-30 05:29:04 [RateCDR] => 1 ) [2025-01-30 05: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-30 02:29:04' and `end` < '2025-01-30 05: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-30 05:29:18] Production.INFO: count ==362 [2025-01-30 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:29:04 - End Time 2025-01-30 05:29:04 [2025-01-30 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361524', 'tblTempUsageDetail_20' ) start [2025-01-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361524', 'tblTempUsageDetail_20' ) end [2025-01-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361524', 'tblTempVendorCDR_20' ) start [2025-01-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361524', 'tblTempVendorCDR_20' ) end [2025-01-30 05:29:18] Production.INFO: ProcessCDR(1,14361524,1,1,2) [2025-01-30 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361524', 'tblTempUsageDetail_20' ) start [2025-01-30 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361524', 'tblTempUsageDetail_20' ) end [2025-01-30 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:29:21] Production.INFO: ==21584== Releasing lock... [2025-01-30 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-30 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:30:05 [end_date_ymd] => 2025-01-30 05:30:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:30:05' and `end` < '2025-01-30 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-30 05:30:18] Production.INFO: count ==324 [2025-01-30 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:30:05 - End Time 2025-01-30 05:30:05 [2025-01-30 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361530', 'tblTempUsageDetail_20' ) start [2025-01-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361530', 'tblTempUsageDetail_20' ) end [2025-01-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361530', 'tblTempVendorCDR_20' ) start [2025-01-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361530', 'tblTempVendorCDR_20' ) end [2025-01-30 05:30:18] Production.INFO: ProcessCDR(1,14361530,1,1,2) [2025-01-30 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361530', 'tblTempUsageDetail_20' ) start [2025-01-30 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361530', 'tblTempUsageDetail_20' ) end [2025-01-30 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:30:21] Production.INFO: ==21671== Releasing lock... [2025-01-30 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:31:06 [end_date_ymd] => 2025-01-30 05:31:06 [RateCDR] => 1 ) [2025-01-30 05: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-30 02:31:06' and `end` < '2025-01-30 05: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-30 05:31:19] Production.INFO: count ==278 [2025-01-30 05:31:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:31:06 - End Time 2025-01-30 05:31:06 [2025-01-30 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361535', 'tblTempUsageDetail_20' ) start [2025-01-30 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361535', 'tblTempUsageDetail_20' ) end [2025-01-30 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361535', 'tblTempVendorCDR_20' ) start [2025-01-30 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361535', 'tblTempVendorCDR_20' ) end [2025-01-30 05:31:19] Production.INFO: ProcessCDR(1,14361535,1,1,2) [2025-01-30 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361535', 'tblTempUsageDetail_20' ) start [2025-01-30 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361535', 'tblTempUsageDetail_20' ) end [2025-01-30 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:31:22] Production.INFO: ==21757== Releasing lock... [2025-01-30 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:32:05 [end_date_ymd] => 2025-01-30 05:32:05 [RateCDR] => 1 ) [2025-01-30 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:32:05' and `end` < '2025-01-30 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:32:18] Production.INFO: count ==278 [2025-01-30 05:32:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:32:05 - End Time 2025-01-30 05:32:05 [2025-01-30 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361540', 'tblTempUsageDetail_20' ) start [2025-01-30 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361540', 'tblTempUsageDetail_20' ) end [2025-01-30 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361540', 'tblTempVendorCDR_20' ) start [2025-01-30 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361540', 'tblTempVendorCDR_20' ) end [2025-01-30 05:32:19] Production.INFO: ProcessCDR(1,14361540,1,1,2) [2025-01-30 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361540', 'tblTempUsageDetail_20' ) start [2025-01-30 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361540', 'tblTempUsageDetail_20' ) end [2025-01-30 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:32:21] Production.INFO: ==21848== Releasing lock... [2025-01-30 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:33:05 [end_date_ymd] => 2025-01-30 05:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:33:05' and `end` < '2025-01-30 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-30 05:33:18] Production.INFO: count ==278 [2025-01-30 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:33:05 - End Time 2025-01-30 05:33:05 [2025-01-30 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361545', 'tblTempUsageDetail_20' ) start [2025-01-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361545', 'tblTempUsageDetail_20' ) end [2025-01-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361545', 'tblTempVendorCDR_20' ) start [2025-01-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361545', 'tblTempVendorCDR_20' ) end [2025-01-30 05:33:18] Production.INFO: ProcessCDR(1,14361545,1,1,2) [2025-01-30 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361545', 'tblTempUsageDetail_20' ) start [2025-01-30 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361545', 'tblTempUsageDetail_20' ) end [2025-01-30 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:33:21] Production.INFO: ==21952== Releasing lock... [2025-01-30 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:34:05 [end_date_ymd] => 2025-01-30 05:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:34:05' and `end` < '2025-01-30 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-30 05:34:17] Production.INFO: count ==278 [2025-01-30 05:34:17] Production.ERROR: pbx CDR StartTime 2025-01-30 02:34:05 - End Time 2025-01-30 05:34:05 [2025-01-30 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361550', 'tblTempUsageDetail_20' ) start [2025-01-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361550', 'tblTempUsageDetail_20' ) end [2025-01-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361550', 'tblTempVendorCDR_20' ) start [2025-01-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361550', 'tblTempVendorCDR_20' ) end [2025-01-30 05:34:17] Production.INFO: ProcessCDR(1,14361550,1,1,2) [2025-01-30 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361550', 'tblTempUsageDetail_20' ) start [2025-01-30 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361550', 'tblTempUsageDetail_20' ) end [2025-01-30 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:34:21] Production.INFO: ==22059== Releasing lock... [2025-01-30 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:35:05 [end_date_ymd] => 2025-01-30 05:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:35:05' and `end` < '2025-01-30 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-30 05:35:17] Production.INFO: count ==278 [2025-01-30 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:35:05 - End Time 2025-01-30 05:35:05 [2025-01-30 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361555', 'tblTempUsageDetail_20' ) start [2025-01-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361555', 'tblTempUsageDetail_20' ) end [2025-01-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361555', 'tblTempVendorCDR_20' ) start [2025-01-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361555', 'tblTempVendorCDR_20' ) end [2025-01-30 05:35:18] Production.INFO: ProcessCDR(1,14361555,1,1,2) [2025-01-30 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361555', 'tblTempUsageDetail_20' ) start [2025-01-30 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361555', 'tblTempUsageDetail_20' ) end [2025-01-30 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:35:21] Production.INFO: ==22157== Releasing lock... [2025-01-30 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:36:05 [end_date_ymd] => 2025-01-30 05:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:36:05' and `end` < '2025-01-30 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-30 05:36:17] Production.INFO: count ==278 [2025-01-30 05:36:17] Production.ERROR: pbx CDR StartTime 2025-01-30 02:36:05 - End Time 2025-01-30 05:36:05 [2025-01-30 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361560', 'tblTempUsageDetail_20' ) start [2025-01-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361560', 'tblTempUsageDetail_20' ) end [2025-01-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361560', 'tblTempVendorCDR_20' ) start [2025-01-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361560', 'tblTempVendorCDR_20' ) end [2025-01-30 05:36:17] Production.INFO: ProcessCDR(1,14361560,1,1,2) [2025-01-30 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361560', 'tblTempUsageDetail_20' ) start [2025-01-30 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361560', 'tblTempUsageDetail_20' ) end [2025-01-30 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:36:20] Production.INFO: ==22261== Releasing lock... [2025-01-30 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:36:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:37:05 [end_date_ymd] => 2025-01-30 05:37:05 [RateCDR] => 1 ) [2025-01-30 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:37:05' and `end` < '2025-01-30 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:37:18] Production.INFO: count ==278 [2025-01-30 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:37:05 - End Time 2025-01-30 05:37:05 [2025-01-30 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361565', 'tblTempUsageDetail_20' ) start [2025-01-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361565', 'tblTempUsageDetail_20' ) end [2025-01-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361565', 'tblTempVendorCDR_20' ) start [2025-01-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361565', 'tblTempVendorCDR_20' ) end [2025-01-30 05:37:18] Production.INFO: ProcessCDR(1,14361565,1,1,2) [2025-01-30 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361565', 'tblTempUsageDetail_20' ) start [2025-01-30 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361565', 'tblTempUsageDetail_20' ) end [2025-01-30 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:37:21] Production.INFO: ==22405== Releasing lock... [2025-01-30 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:38:05 [end_date_ymd] => 2025-01-30 05:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:38:05' and `end` < '2025-01-30 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-30 05:38:19] Production.INFO: count ==278 [2025-01-30 05:38:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:38:05 - End Time 2025-01-30 05:38:05 [2025-01-30 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361570', 'tblTempUsageDetail_20' ) start [2025-01-30 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361570', 'tblTempUsageDetail_20' ) end [2025-01-30 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361570', 'tblTempVendorCDR_20' ) start [2025-01-30 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361570', 'tblTempVendorCDR_20' ) end [2025-01-30 05:38:19] Production.INFO: ProcessCDR(1,14361570,1,1,2) [2025-01-30 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361570', 'tblTempUsageDetail_20' ) start [2025-01-30 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361570', 'tblTempUsageDetail_20' ) end [2025-01-30 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:38:22] Production.INFO: ==22502== Releasing lock... [2025-01-30 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:39:05 [end_date_ymd] => 2025-01-30 05:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:39:05' and `end` < '2025-01-30 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-30 05:39:18] Production.INFO: count ==278 [2025-01-30 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:39:05 - End Time 2025-01-30 05:39:05 [2025-01-30 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361575', 'tblTempUsageDetail_20' ) start [2025-01-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361575', 'tblTempUsageDetail_20' ) end [2025-01-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361575', 'tblTempVendorCDR_20' ) start [2025-01-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361575', 'tblTempVendorCDR_20' ) end [2025-01-30 05:39:18] Production.INFO: ProcessCDR(1,14361575,1,1,2) [2025-01-30 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361575', 'tblTempUsageDetail_20' ) start [2025-01-30 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361575', 'tblTempUsageDetail_20' ) end [2025-01-30 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:39:21] Production.INFO: ==22588== Releasing lock... [2025-01-30 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:40:06 [end_date_ymd] => 2025-01-30 05:40:06 [RateCDR] => 1 ) [2025-01-30 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:40:06' and `end` < '2025-01-30 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:40:19] Production.INFO: count ==273 [2025-01-30 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:40:06 - End Time 2025-01-30 05:40:06 [2025-01-30 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361581', 'tblTempUsageDetail_20' ) start [2025-01-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361581', 'tblTempUsageDetail_20' ) end [2025-01-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361581', 'tblTempVendorCDR_20' ) start [2025-01-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361581', 'tblTempVendorCDR_20' ) end [2025-01-30 05:40:19] Production.INFO: ProcessCDR(1,14361581,1,1,2) [2025-01-30 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361581', 'tblTempUsageDetail_20' ) start [2025-01-30 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361581', 'tblTempUsageDetail_20' ) end [2025-01-30 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:40:22] Production.INFO: ==22675== Releasing lock... [2025-01-30 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:41:05 [end_date_ymd] => 2025-01-30 05:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:41:05' and `end` < '2025-01-30 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-30 05:41:19] Production.INFO: count ==273 [2025-01-30 05:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:41:05 - End Time 2025-01-30 05:41:05 [2025-01-30 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361586', 'tblTempUsageDetail_20' ) start [2025-01-30 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361586', 'tblTempUsageDetail_20' ) end [2025-01-30 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361586', 'tblTempVendorCDR_20' ) start [2025-01-30 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361586', 'tblTempVendorCDR_20' ) end [2025-01-30 05:41:19] Production.INFO: ProcessCDR(1,14361586,1,1,2) [2025-01-30 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361586', 'tblTempUsageDetail_20' ) start [2025-01-30 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361586', 'tblTempUsageDetail_20' ) end [2025-01-30 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:41:23] Production.INFO: ==22773== Releasing lock... [2025-01-30 05:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:41:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:42:05 [end_date_ymd] => 2025-01-30 05:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:42:05' and `end` < '2025-01-30 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-30 05:42:18] Production.INFO: count ==273 [2025-01-30 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:42:05 - End Time 2025-01-30 05:42:05 [2025-01-30 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361591', 'tblTempUsageDetail_20' ) start [2025-01-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361591', 'tblTempUsageDetail_20' ) end [2025-01-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361591', 'tblTempVendorCDR_20' ) start [2025-01-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361591', 'tblTempVendorCDR_20' ) end [2025-01-30 05:42:18] Production.INFO: ProcessCDR(1,14361591,1,1,2) [2025-01-30 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361591', 'tblTempUsageDetail_20' ) start [2025-01-30 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361591', 'tblTempUsageDetail_20' ) end [2025-01-30 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:42:21] Production.INFO: ==22853== Releasing lock... [2025-01-30 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:43:05 [end_date_ymd] => 2025-01-30 05:43:05 [RateCDR] => 1 ) [2025-01-30 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:43:05' and `end` < '2025-01-30 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:43:17] Production.INFO: count ==273 [2025-01-30 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-30 02:43:05 - End Time 2025-01-30 05:43:05 [2025-01-30 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361596', 'tblTempUsageDetail_20' ) start [2025-01-30 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361596', 'tblTempUsageDetail_20' ) end [2025-01-30 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361596', 'tblTempVendorCDR_20' ) start [2025-01-30 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361596', 'tblTempVendorCDR_20' ) end [2025-01-30 05:43:17] Production.INFO: ProcessCDR(1,14361596,1,1,2) [2025-01-30 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361596', 'tblTempUsageDetail_20' ) start [2025-01-30 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361596', 'tblTempUsageDetail_20' ) end [2025-01-30 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:43:20] Production.INFO: ==22937== Releasing lock... [2025-01-30 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:44:05 [end_date_ymd] => 2025-01-30 05:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:44:05' and `end` < '2025-01-30 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-30 05:44:20] Production.INFO: count ==273 [2025-01-30 05:44:20] Production.ERROR: pbx CDR StartTime 2025-01-30 02:44:05 - End Time 2025-01-30 05:44:05 [2025-01-30 05:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361601', 'tblTempUsageDetail_20' ) start [2025-01-30 05:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361601', 'tblTempUsageDetail_20' ) end [2025-01-30 05:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361601', 'tblTempVendorCDR_20' ) start [2025-01-30 05:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361601', 'tblTempVendorCDR_20' ) end [2025-01-30 05:44:20] Production.INFO: ProcessCDR(1,14361601,1,1,2) [2025-01-30 05:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361601', 'tblTempUsageDetail_20' ) start [2025-01-30 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361601', 'tblTempUsageDetail_20' ) end [2025-01-30 05:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:44:23] Production.INFO: ==23022== Releasing lock... [2025-01-30 05:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:44:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:45:05 [end_date_ymd] => 2025-01-30 05:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:45:05' and `end` < '2025-01-30 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-30 05:45:17] Production.INFO: count ==273 [2025-01-30 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-30 02:45:05 - End Time 2025-01-30 05:45:05 [2025-01-30 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361606', 'tblTempUsageDetail_20' ) start [2025-01-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361606', 'tblTempUsageDetail_20' ) end [2025-01-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361606', 'tblTempVendorCDR_20' ) start [2025-01-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361606', 'tblTempVendorCDR_20' ) end [2025-01-30 05:45:17] Production.INFO: ProcessCDR(1,14361606,1,1,2) [2025-01-30 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361606', 'tblTempUsageDetail_20' ) start [2025-01-30 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361606', 'tblTempUsageDetail_20' ) end [2025-01-30 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:45:20] Production.INFO: ==23104== Releasing lock... [2025-01-30 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:45:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:46:05 [end_date_ymd] => 2025-01-30 05:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:46:05' and `end` < '2025-01-30 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-30 05:46:18] Production.INFO: count ==273 [2025-01-30 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:46:05 - End Time 2025-01-30 05:46:05 [2025-01-30 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361611', 'tblTempUsageDetail_20' ) start [2025-01-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361611', 'tblTempUsageDetail_20' ) end [2025-01-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361611', 'tblTempVendorCDR_20' ) start [2025-01-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361611', 'tblTempVendorCDR_20' ) end [2025-01-30 05:46:18] Production.INFO: ProcessCDR(1,14361611,1,1,2) [2025-01-30 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361611', 'tblTempUsageDetail_20' ) start [2025-01-30 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361611', 'tblTempUsageDetail_20' ) end [2025-01-30 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:46:21] Production.INFO: ==23181== Releasing lock... [2025-01-30 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:47:05 [end_date_ymd] => 2025-01-30 05:47:05 [RateCDR] => 1 ) [2025-01-30 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:47:05' and `end` < '2025-01-30 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:47:19] Production.INFO: count ==273 [2025-01-30 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:47:05 - End Time 2025-01-30 05:47:05 [2025-01-30 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361616', 'tblTempUsageDetail_20' ) start [2025-01-30 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361616', 'tblTempUsageDetail_20' ) end [2025-01-30 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361616', 'tblTempVendorCDR_20' ) start [2025-01-30 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361616', 'tblTempVendorCDR_20' ) end [2025-01-30 05:47:19] Production.INFO: ProcessCDR(1,14361616,1,1,2) [2025-01-30 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361616', 'tblTempUsageDetail_20' ) start [2025-01-30 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361616', 'tblTempUsageDetail_20' ) end [2025-01-30 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:47:22] Production.INFO: ==23268== Releasing lock... [2025-01-30 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:48:05 [end_date_ymd] => 2025-01-30 05:48:05 [RateCDR] => 1 ) [2025-01-30 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:48:05' and `end` < '2025-01-30 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:48:18] Production.INFO: count ==273 [2025-01-30 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:48:05 - End Time 2025-01-30 05:48:05 [2025-01-30 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361621', 'tblTempUsageDetail_20' ) start [2025-01-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361621', 'tblTempUsageDetail_20' ) end [2025-01-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361621', 'tblTempVendorCDR_20' ) start [2025-01-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361621', 'tblTempVendorCDR_20' ) end [2025-01-30 05:48:18] Production.INFO: ProcessCDR(1,14361621,1,1,2) [2025-01-30 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361621', 'tblTempUsageDetail_20' ) start [2025-01-30 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361621', 'tblTempUsageDetail_20' ) end [2025-01-30 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:48:21] Production.INFO: ==23344== Releasing lock... [2025-01-30 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:49:05 [end_date_ymd] => 2025-01-30 05:49:05 [RateCDR] => 1 ) [2025-01-30 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 02:49:05' and `end` < '2025-01-30 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 05:49:19] Production.INFO: count ==273 [2025-01-30 05:49:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:49:05 - End Time 2025-01-30 05:49:05 [2025-01-30 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361626', 'tblTempUsageDetail_20' ) start [2025-01-30 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361626', 'tblTempUsageDetail_20' ) end [2025-01-30 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361626', 'tblTempVendorCDR_20' ) start [2025-01-30 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361626', 'tblTempVendorCDR_20' ) end [2025-01-30 05:49:19] Production.INFO: ProcessCDR(1,14361626,1,1,2) [2025-01-30 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361626', 'tblTempUsageDetail_20' ) start [2025-01-30 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361626', 'tblTempUsageDetail_20' ) end [2025-01-30 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:49:22] Production.INFO: ==23424== Releasing lock... [2025-01-30 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:50:05 [end_date_ymd] => 2025-01-30 05:50:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:50:05' and `end` < '2025-01-30 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-30 05:50:19] Production.INFO: count ==269 [2025-01-30 05:50:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:50:05 - End Time 2025-01-30 05:50:05 [2025-01-30 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361632', 'tblTempUsageDetail_20' ) start [2025-01-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361632', 'tblTempUsageDetail_20' ) end [2025-01-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361632', 'tblTempVendorCDR_20' ) start [2025-01-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361632', 'tblTempVendorCDR_20' ) end [2025-01-30 05:50:19] Production.INFO: ProcessCDR(1,14361632,1,1,2) [2025-01-30 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361632', 'tblTempUsageDetail_20' ) start [2025-01-30 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361632', 'tblTempUsageDetail_20' ) end [2025-01-30 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:50:23] Production.INFO: ==23507== Releasing lock... [2025-01-30 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:51:05 [end_date_ymd] => 2025-01-30 05:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:51:05' and `end` < '2025-01-30 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-30 05:51:18] Production.INFO: count ==267 [2025-01-30 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:51:05 - End Time 2025-01-30 05:51:05 [2025-01-30 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361637', 'tblTempUsageDetail_20' ) start [2025-01-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361637', 'tblTempUsageDetail_20' ) end [2025-01-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361637', 'tblTempVendorCDR_20' ) start [2025-01-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361637', 'tblTempVendorCDR_20' ) end [2025-01-30 05:51:18] Production.INFO: ProcessCDR(1,14361637,1,1,2) [2025-01-30 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361637', 'tblTempUsageDetail_20' ) start [2025-01-30 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361637', 'tblTempUsageDetail_20' ) end [2025-01-30 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:51:21] Production.INFO: ==23591== Releasing lock... [2025-01-30 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:52:05 [end_date_ymd] => 2025-01-30 05:52:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:52:05' and `end` < '2025-01-30 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-30 05:52:18] Production.INFO: count ==268 [2025-01-30 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:52:05 - End Time 2025-01-30 05:52:05 [2025-01-30 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361642', 'tblTempUsageDetail_20' ) start [2025-01-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361642', 'tblTempUsageDetail_20' ) end [2025-01-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361642', 'tblTempVendorCDR_20' ) start [2025-01-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361642', 'tblTempVendorCDR_20' ) end [2025-01-30 05:52:18] Production.INFO: ProcessCDR(1,14361642,1,1,2) [2025-01-30 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361642', 'tblTempUsageDetail_20' ) start [2025-01-30 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361642', 'tblTempUsageDetail_20' ) end [2025-01-30 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:52:22] Production.INFO: ==23709== Releasing lock... [2025-01-30 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:53:05 [end_date_ymd] => 2025-01-30 05:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:53:05' and `end` < '2025-01-30 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-30 05:53:18] Production.INFO: count ==268 [2025-01-30 05:53:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:53:05 - End Time 2025-01-30 05:53:05 [2025-01-30 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361647', 'tblTempUsageDetail_20' ) start [2025-01-30 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361647', 'tblTempUsageDetail_20' ) end [2025-01-30 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361647', 'tblTempVendorCDR_20' ) start [2025-01-30 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361647', 'tblTempVendorCDR_20' ) end [2025-01-30 05:53:19] Production.INFO: ProcessCDR(1,14361647,1,1,2) [2025-01-30 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361647', 'tblTempUsageDetail_20' ) start [2025-01-30 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361647', 'tblTempUsageDetail_20' ) end [2025-01-30 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:53:22] Production.INFO: ==23798== Releasing lock... [2025-01-30 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:54:06 [end_date_ymd] => 2025-01-30 05:54:06 [RateCDR] => 1 ) [2025-01-30 05: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-30 02:54:06' and `end` < '2025-01-30 05: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-30 05:54:19] Production.INFO: count ==268 [2025-01-30 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:54:06 - End Time 2025-01-30 05:54:06 [2025-01-30 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361652', 'tblTempUsageDetail_20' ) start [2025-01-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361652', 'tblTempUsageDetail_20' ) end [2025-01-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361652', 'tblTempVendorCDR_20' ) start [2025-01-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361652', 'tblTempVendorCDR_20' ) end [2025-01-30 05:54:19] Production.INFO: ProcessCDR(1,14361652,1,1,2) [2025-01-30 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361652', 'tblTempUsageDetail_20' ) start [2025-01-30 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361652', 'tblTempUsageDetail_20' ) end [2025-01-30 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:54:22] Production.INFO: ==23875== Releasing lock... [2025-01-30 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:55:05 [end_date_ymd] => 2025-01-30 05:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:55:05' and `end` < '2025-01-30 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-30 05:55:18] Production.INFO: count ==268 [2025-01-30 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:55:05 - End Time 2025-01-30 05:55:05 [2025-01-30 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361657', 'tblTempUsageDetail_20' ) start [2025-01-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361657', 'tblTempUsageDetail_20' ) end [2025-01-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361657', 'tblTempVendorCDR_20' ) start [2025-01-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361657', 'tblTempVendorCDR_20' ) end [2025-01-30 05:55:18] Production.INFO: ProcessCDR(1,14361657,1,1,2) [2025-01-30 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361657', 'tblTempUsageDetail_20' ) start [2025-01-30 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361657', 'tblTempUsageDetail_20' ) end [2025-01-30 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:55:21] Production.INFO: ==23953== Releasing lock... [2025-01-30 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:56:06 [end_date_ymd] => 2025-01-30 05:56:06 [RateCDR] => 1 ) [2025-01-30 05: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-30 02:56:06' and `end` < '2025-01-30 05: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-30 05:56:18] Production.INFO: count ==268 [2025-01-30 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:56:06 - End Time 2025-01-30 05:56:06 [2025-01-30 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361662', 'tblTempUsageDetail_20' ) start [2025-01-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361662', 'tblTempUsageDetail_20' ) end [2025-01-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361662', 'tblTempVendorCDR_20' ) start [2025-01-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361662', 'tblTempVendorCDR_20' ) end [2025-01-30 05:56:18] Production.INFO: ProcessCDR(1,14361662,1,1,2) [2025-01-30 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361662', 'tblTempUsageDetail_20' ) start [2025-01-30 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361662', 'tblTempUsageDetail_20' ) end [2025-01-30 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:56:21] Production.INFO: ==24031== Releasing lock... [2025-01-30 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:57:05 [end_date_ymd] => 2025-01-30 05:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:57:05' and `end` < '2025-01-30 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-30 05:57:18] Production.INFO: count ==268 [2025-01-30 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:57:05 - End Time 2025-01-30 05:57:05 [2025-01-30 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361667', 'tblTempUsageDetail_20' ) start [2025-01-30 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361667', 'tblTempUsageDetail_20' ) end [2025-01-30 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361667', 'tblTempVendorCDR_20' ) start [2025-01-30 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361667', 'tblTempVendorCDR_20' ) end [2025-01-30 05:57:18] Production.INFO: ProcessCDR(1,14361667,1,1,2) [2025-01-30 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361667', 'tblTempUsageDetail_20' ) start [2025-01-30 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361667', 'tblTempUsageDetail_20' ) end [2025-01-30 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:57:21] Production.INFO: ==24106== Releasing lock... [2025-01-30 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:58:05 [end_date_ymd] => 2025-01-30 05:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:58:05' and `end` < '2025-01-30 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-30 05:58:18] Production.INFO: count ==268 [2025-01-30 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-30 02:58:05 - End Time 2025-01-30 05:58:05 [2025-01-30 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361672', 'tblTempUsageDetail_20' ) start [2025-01-30 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361672', 'tblTempUsageDetail_20' ) end [2025-01-30 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361672', 'tblTempVendorCDR_20' ) start [2025-01-30 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361672', 'tblTempVendorCDR_20' ) end [2025-01-30 05:58:18] Production.INFO: ProcessCDR(1,14361672,1,1,2) [2025-01-30 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361672', 'tblTempUsageDetail_20' ) start [2025-01-30 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361672', 'tblTempUsageDetail_20' ) end [2025-01-30 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:58:21] Production.INFO: ==24179== Releasing lock... [2025-01-30 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 02:59:05 [end_date_ymd] => 2025-01-30 05:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 02:59:05' and `end` < '2025-01-30 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-30 05:59:19] Production.INFO: count ==268 [2025-01-30 05:59:19] Production.ERROR: pbx CDR StartTime 2025-01-30 02:59:05 - End Time 2025-01-30 05:59:05 [2025-01-30 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361677', 'tblTempUsageDetail_20' ) start [2025-01-30 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361677', 'tblTempUsageDetail_20' ) end [2025-01-30 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361677', 'tblTempVendorCDR_20' ) start [2025-01-30 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361677', 'tblTempVendorCDR_20' ) end [2025-01-30 05:59:19] Production.INFO: ProcessCDR(1,14361677,1,1,2) [2025-01-30 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361677', 'tblTempUsageDetail_20' ) start [2025-01-30 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361677', 'tblTempUsageDetail_20' ) end [2025-01-30 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 05:59:22] Production.INFO: ==24261== Releasing lock... [2025-01-30 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 05:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:00:06 [end_date_ymd] => 2025-01-30 06:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 03:00:06' and `end` < '2025-01-30 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-30 06:00:19] Production.INFO: count ==268 [2025-01-30 06:00:20] Production.ERROR: pbx CDR StartTime 2025-01-30 03:00:06 - End Time 2025-01-30 06:00:06 [2025-01-30 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361683', 'tblTempUsageDetail_20' ) start [2025-01-30 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361683', 'tblTempUsageDetail_20' ) end [2025-01-30 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361683', 'tblTempVendorCDR_20' ) start [2025-01-30 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361683', 'tblTempVendorCDR_20' ) end [2025-01-30 06:00:20] Production.INFO: ProcessCDR(1,14361683,1,1,2) [2025-01-30 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361683', 'tblTempUsageDetail_20' ) start [2025-01-30 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361683', 'tblTempUsageDetail_20' ) end [2025-01-30 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:00:23] Production.INFO: ==24348== Releasing lock... [2025-01-30 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:01:05 [end_date_ymd] => 2025-01-30 06:01:05 [RateCDR] => 1 ) [2025-01-30 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:01:05' and `end` < '2025-01-30 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-30 06:01:18] Production.INFO: count ==268 [2025-01-30 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:01:05 - End Time 2025-01-30 06:01:05 [2025-01-30 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361688', 'tblTempUsageDetail_20' ) start [2025-01-30 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361688', 'tblTempUsageDetail_20' ) end [2025-01-30 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361688', 'tblTempVendorCDR_20' ) start [2025-01-30 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361688', 'tblTempVendorCDR_20' ) end [2025-01-30 06:01:18] Production.INFO: ProcessCDR(1,14361688,1,1,2) [2025-01-30 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361688', 'tblTempUsageDetail_20' ) start [2025-01-30 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361688', 'tblTempUsageDetail_20' ) end [2025-01-30 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:01:21] Production.INFO: ==24442== Releasing lock... [2025-01-30 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:02:05 [end_date_ymd] => 2025-01-30 06:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:02:05' and `end` < '2025-01-30 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-30 06:02:18] Production.INFO: count ==268 [2025-01-30 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:02:05 - End Time 2025-01-30 06:02:05 [2025-01-30 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361693', 'tblTempUsageDetail_20' ) start [2025-01-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361693', 'tblTempUsageDetail_20' ) end [2025-01-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361693', 'tblTempVendorCDR_20' ) start [2025-01-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361693', 'tblTempVendorCDR_20' ) end [2025-01-30 06:02:18] Production.INFO: ProcessCDR(1,14361693,1,1,2) [2025-01-30 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361693', 'tblTempUsageDetail_20' ) start [2025-01-30 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361693', 'tblTempUsageDetail_20' ) end [2025-01-30 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:02:21] Production.INFO: ==24523== Releasing lock... [2025-01-30 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:03:05 [end_date_ymd] => 2025-01-30 06:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:03:05' and `end` < '2025-01-30 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-30 06:03:18] Production.INFO: count ==268 [2025-01-30 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:03:05 - End Time 2025-01-30 06:03:05 [2025-01-30 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361698', 'tblTempUsageDetail_20' ) start [2025-01-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361698', 'tblTempUsageDetail_20' ) end [2025-01-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361698', 'tblTempVendorCDR_20' ) start [2025-01-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361698', 'tblTempVendorCDR_20' ) end [2025-01-30 06:03:18] Production.INFO: ProcessCDR(1,14361698,1,1,2) [2025-01-30 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361698', 'tblTempUsageDetail_20' ) start [2025-01-30 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361698', 'tblTempUsageDetail_20' ) end [2025-01-30 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:03:21] Production.INFO: ==24596== Releasing lock... [2025-01-30 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:04:05 [end_date_ymd] => 2025-01-30 06:04:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:04:05' and `end` < '2025-01-30 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-30 06:04:18] Production.INFO: count ==268 [2025-01-30 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:04:05 - End Time 2025-01-30 06:04:05 [2025-01-30 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361703', 'tblTempUsageDetail_20' ) start [2025-01-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361703', 'tblTempUsageDetail_20' ) end [2025-01-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361703', 'tblTempVendorCDR_20' ) start [2025-01-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361703', 'tblTempVendorCDR_20' ) end [2025-01-30 06:04:18] Production.INFO: ProcessCDR(1,14361703,1,1,2) [2025-01-30 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361703', 'tblTempUsageDetail_20' ) start [2025-01-30 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361703', 'tblTempUsageDetail_20' ) end [2025-01-30 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:04:22] Production.INFO: ==24674== Releasing lock... [2025-01-30 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:05:05 [end_date_ymd] => 2025-01-30 06:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:05:05' and `end` < '2025-01-30 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-30 06:05:18] Production.INFO: count ==269 [2025-01-30 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:05:05 - End Time 2025-01-30 06:05:05 [2025-01-30 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361708', 'tblTempUsageDetail_20' ) start [2025-01-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361708', 'tblTempUsageDetail_20' ) end [2025-01-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361708', 'tblTempVendorCDR_20' ) start [2025-01-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361708', 'tblTempVendorCDR_20' ) end [2025-01-30 06:05:18] Production.INFO: ProcessCDR(1,14361708,1,1,2) [2025-01-30 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361708', 'tblTempUsageDetail_20' ) start [2025-01-30 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361708', 'tblTempUsageDetail_20' ) end [2025-01-30 06:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:05:23] Production.INFO: ==24749== Releasing lock... [2025-01-30 06:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:05:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:06:05 [end_date_ymd] => 2025-01-30 06:06:05 [RateCDR] => 1 ) [2025-01-30 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:06:05' and `end` < '2025-01-30 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:06:18] Production.INFO: count ==269 [2025-01-30 06:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:06:05 - End Time 2025-01-30 06:06:05 [2025-01-30 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361713', 'tblTempUsageDetail_20' ) start [2025-01-30 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361713', 'tblTempUsageDetail_20' ) end [2025-01-30 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361713', 'tblTempVendorCDR_20' ) start [2025-01-30 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361713', 'tblTempVendorCDR_20' ) end [2025-01-30 06:06:19] Production.INFO: ProcessCDR(1,14361713,1,1,2) [2025-01-30 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361713', 'tblTempUsageDetail_20' ) start [2025-01-30 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361713', 'tblTempUsageDetail_20' ) end [2025-01-30 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:06:22] Production.INFO: ==24822== Releasing lock... [2025-01-30 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:07:05 [end_date_ymd] => 2025-01-30 06:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:07:05' and `end` < '2025-01-30 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-30 06:07:18] Production.INFO: count ==261 [2025-01-30 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:07:05 - End Time 2025-01-30 06:07:05 [2025-01-30 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361718', 'tblTempUsageDetail_20' ) start [2025-01-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361718', 'tblTempUsageDetail_20' ) end [2025-01-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361718', 'tblTempVendorCDR_20' ) start [2025-01-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361718', 'tblTempVendorCDR_20' ) end [2025-01-30 06:07:18] Production.INFO: ProcessCDR(1,14361718,1,1,2) [2025-01-30 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361718', 'tblTempUsageDetail_20' ) start [2025-01-30 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361718', 'tblTempUsageDetail_20' ) end [2025-01-30 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:07:21] Production.INFO: ==24908== Releasing lock... [2025-01-30 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:08:05 [end_date_ymd] => 2025-01-30 06:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:08:05' and `end` < '2025-01-30 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-30 06:08:17] Production.INFO: count ==261 [2025-01-30 06:08:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:08:05 - End Time 2025-01-30 06:08:05 [2025-01-30 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361723', 'tblTempUsageDetail_20' ) start [2025-01-30 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361723', 'tblTempUsageDetail_20' ) end [2025-01-30 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361723', 'tblTempVendorCDR_20' ) start [2025-01-30 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361723', 'tblTempVendorCDR_20' ) end [2025-01-30 06:08:17] Production.INFO: ProcessCDR(1,14361723,1,1,2) [2025-01-30 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361723', 'tblTempUsageDetail_20' ) start [2025-01-30 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361723', 'tblTempUsageDetail_20' ) end [2025-01-30 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:08:20] Production.INFO: ==25026== Releasing lock... [2025-01-30 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:08:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:09:05 [end_date_ymd] => 2025-01-30 06:09:05 [RateCDR] => 1 ) [2025-01-30 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:09:05' and `end` < '2025-01-30 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:09:20] Production.INFO: count ==262 [2025-01-30 06:09:20] Production.ERROR: pbx CDR StartTime 2025-01-30 03:09:05 - End Time 2025-01-30 06:09:05 [2025-01-30 06:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361728', 'tblTempUsageDetail_20' ) start [2025-01-30 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361728', 'tblTempUsageDetail_20' ) end [2025-01-30 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361728', 'tblTempVendorCDR_20' ) start [2025-01-30 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361728', 'tblTempVendorCDR_20' ) end [2025-01-30 06:09:20] Production.INFO: ProcessCDR(1,14361728,1,1,2) [2025-01-30 06:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361728', 'tblTempUsageDetail_20' ) start [2025-01-30 06:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361728', 'tblTempUsageDetail_20' ) end [2025-01-30 06:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:09:24] Production.INFO: ==25097== Releasing lock... [2025-01-30 06:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:09:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:10:05 [end_date_ymd] => 2025-01-30 06:10:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:10:05' and `end` < '2025-01-30 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-30 06:10:17] Production.INFO: count ==261 [2025-01-30 06:10:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:10:05 - End Time 2025-01-30 06:10:05 [2025-01-30 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361733', 'tblTempUsageDetail_20' ) start [2025-01-30 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361733', 'tblTempUsageDetail_20' ) end [2025-01-30 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361733', 'tblTempVendorCDR_20' ) start [2025-01-30 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361733', 'tblTempVendorCDR_20' ) end [2025-01-30 06:10:17] Production.INFO: ProcessCDR(1,14361733,1,1,2) [2025-01-30 06:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361733', 'tblTempUsageDetail_20' ) start [2025-01-30 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361733', 'tblTempUsageDetail_20' ) end [2025-01-30 06:10:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:10:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:10:20] Production.INFO: ==25170== Releasing lock... [2025-01-30 06:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:10:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:11:05 [end_date_ymd] => 2025-01-30 06:11:05 [RateCDR] => 1 ) [2025-01-30 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:11:05' and `end` < '2025-01-30 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:11:17] Production.INFO: count ==261 [2025-01-30 06:11:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:11:05 - End Time 2025-01-30 06:11:05 [2025-01-30 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361739', 'tblTempUsageDetail_20' ) start [2025-01-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361739', 'tblTempUsageDetail_20' ) end [2025-01-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361739', 'tblTempVendorCDR_20' ) start [2025-01-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361739', 'tblTempVendorCDR_20' ) end [2025-01-30 06:11:17] Production.INFO: ProcessCDR(1,14361739,1,1,2) [2025-01-30 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361739', 'tblTempUsageDetail_20' ) start [2025-01-30 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361739', 'tblTempUsageDetail_20' ) end [2025-01-30 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:11:20] Production.INFO: ==25244== Releasing lock... [2025-01-30 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:12:05 [end_date_ymd] => 2025-01-30 06:12:05 [RateCDR] => 1 ) [2025-01-30 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:12:05' and `end` < '2025-01-30 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:12:18] Production.INFO: count ==261 [2025-01-30 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:12:05 - End Time 2025-01-30 06:12:05 [2025-01-30 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361744', 'tblTempUsageDetail_20' ) start [2025-01-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361744', 'tblTempUsageDetail_20' ) end [2025-01-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361744', 'tblTempVendorCDR_20' ) start [2025-01-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361744', 'tblTempVendorCDR_20' ) end [2025-01-30 06:12:18] Production.INFO: ProcessCDR(1,14361744,1,1,2) [2025-01-30 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361744', 'tblTempUsageDetail_20' ) start [2025-01-30 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361744', 'tblTempUsageDetail_20' ) end [2025-01-30 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:12:21] Production.INFO: ==25316== Releasing lock... [2025-01-30 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:13:05 [end_date_ymd] => 2025-01-30 06:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:13:05' and `end` < '2025-01-30 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-30 06:13:18] Production.INFO: count ==261 [2025-01-30 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:13:05 - End Time 2025-01-30 06:13:05 [2025-01-30 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361749', 'tblTempUsageDetail_20' ) start [2025-01-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361749', 'tblTempUsageDetail_20' ) end [2025-01-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361749', 'tblTempVendorCDR_20' ) start [2025-01-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361749', 'tblTempVendorCDR_20' ) end [2025-01-30 06:13:18] Production.INFO: ProcessCDR(1,14361749,1,1,2) [2025-01-30 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361749', 'tblTempUsageDetail_20' ) start [2025-01-30 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361749', 'tblTempUsageDetail_20' ) end [2025-01-30 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:13:22] Production.INFO: ==25387== Releasing lock... [2025-01-30 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:14:05 [end_date_ymd] => 2025-01-30 06:14:05 [RateCDR] => 1 ) [2025-01-30 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:14:05' and `end` < '2025-01-30 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:14:18] Production.INFO: count ==261 [2025-01-30 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:14:05 - End Time 2025-01-30 06:14:05 [2025-01-30 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361754', 'tblTempUsageDetail_20' ) start [2025-01-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361754', 'tblTempUsageDetail_20' ) end [2025-01-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361754', 'tblTempVendorCDR_20' ) start [2025-01-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361754', 'tblTempVendorCDR_20' ) end [2025-01-30 06:14:18] Production.INFO: ProcessCDR(1,14361754,1,1,2) [2025-01-30 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361754', 'tblTempUsageDetail_20' ) start [2025-01-30 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361754', 'tblTempUsageDetail_20' ) end [2025-01-30 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:14:21] Production.INFO: ==25457== Releasing lock... [2025-01-30 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:15:04 [end_date_ymd] => 2025-01-30 06:15:04 [RateCDR] => 1 ) [2025-01-30 06: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-30 03:15:04' and `end` < '2025-01-30 06: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-30 06:15:17] Production.INFO: count ==261 [2025-01-30 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:15:04 - End Time 2025-01-30 06:15:04 [2025-01-30 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361759', 'tblTempUsageDetail_20' ) start [2025-01-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361759', 'tblTempUsageDetail_20' ) end [2025-01-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361759', 'tblTempVendorCDR_20' ) start [2025-01-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361759', 'tblTempVendorCDR_20' ) end [2025-01-30 06:15:17] Production.INFO: ProcessCDR(1,14361759,1,1,2) [2025-01-30 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361759', 'tblTempUsageDetail_20' ) start [2025-01-30 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361759', 'tblTempUsageDetail_20' ) end [2025-01-30 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:15:20] Production.INFO: ==25529== Releasing lock... [2025-01-30 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:16:05 [end_date_ymd] => 2025-01-30 06:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:16:05' and `end` < '2025-01-30 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-30 06:16:17] Production.INFO: count ==261 [2025-01-30 06:16:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:16:05 - End Time 2025-01-30 06:16:05 [2025-01-30 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361761', 'tblTempUsageDetail_20' ) start [2025-01-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361761', 'tblTempUsageDetail_20' ) end [2025-01-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361761', 'tblTempVendorCDR_20' ) start [2025-01-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361761', 'tblTempVendorCDR_20' ) end [2025-01-30 06:16:17] Production.INFO: ProcessCDR(1,14361761,1,1,2) [2025-01-30 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361761', 'tblTempUsageDetail_20' ) start [2025-01-30 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361761', 'tblTempUsageDetail_20' ) end [2025-01-30 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:16:20] Production.INFO: ==25600== Releasing lock... [2025-01-30 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:16:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:17:06 [end_date_ymd] => 2025-01-30 06:17:06 [RateCDR] => 1 ) [2025-01-30 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:17:06' and `end` < '2025-01-30 06: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-30 06:17:18] Production.INFO: count ==261 [2025-01-30 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:17:06 - End Time 2025-01-30 06:17:06 [2025-01-30 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361769', 'tblTempUsageDetail_20' ) start [2025-01-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361769', 'tblTempUsageDetail_20' ) end [2025-01-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361769', 'tblTempVendorCDR_20' ) start [2025-01-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361769', 'tblTempVendorCDR_20' ) end [2025-01-30 06:17:18] Production.INFO: ProcessCDR(1,14361769,1,1,2) [2025-01-30 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361769', 'tblTempUsageDetail_20' ) start [2025-01-30 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361769', 'tblTempUsageDetail_20' ) end [2025-01-30 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:17:21] Production.INFO: ==25670== Releasing lock... [2025-01-30 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:18:05 [end_date_ymd] => 2025-01-30 06:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:18:05' and `end` < '2025-01-30 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-30 06:18:19] Production.INFO: count ==261 [2025-01-30 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:18:05 - End Time 2025-01-30 06:18:05 [2025-01-30 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361774', 'tblTempUsageDetail_20' ) start [2025-01-30 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361774', 'tblTempUsageDetail_20' ) end [2025-01-30 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361774', 'tblTempVendorCDR_20' ) start [2025-01-30 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361774', 'tblTempVendorCDR_20' ) end [2025-01-30 06:18:19] Production.INFO: ProcessCDR(1,14361774,1,1,2) [2025-01-30 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361774', 'tblTempUsageDetail_20' ) start [2025-01-30 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361774', 'tblTempUsageDetail_20' ) end [2025-01-30 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:18:22] Production.INFO: ==25740== Releasing lock... [2025-01-30 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:19:05 [end_date_ymd] => 2025-01-30 06:19:05 [RateCDR] => 1 ) [2025-01-30 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:19:05' and `end` < '2025-01-30 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:19:18] Production.INFO: count ==261 [2025-01-30 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:19:05 - End Time 2025-01-30 06:19:05 [2025-01-30 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361779', 'tblTempUsageDetail_20' ) start [2025-01-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361779', 'tblTempUsageDetail_20' ) end [2025-01-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361779', 'tblTempVendorCDR_20' ) start [2025-01-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361779', 'tblTempVendorCDR_20' ) end [2025-01-30 06:19:18] Production.INFO: ProcessCDR(1,14361779,1,1,2) [2025-01-30 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361779', 'tblTempUsageDetail_20' ) start [2025-01-30 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361779', 'tblTempUsageDetail_20' ) end [2025-01-30 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:19:21] Production.INFO: ==25816== Releasing lock... [2025-01-30 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:20:05 [end_date_ymd] => 2025-01-30 06:20:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:20:05' and `end` < '2025-01-30 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-30 06:20:19] Production.INFO: count ==262 [2025-01-30 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:20:05 - End Time 2025-01-30 06:20:05 [2025-01-30 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361784', 'tblTempUsageDetail_20' ) start [2025-01-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361784', 'tblTempUsageDetail_20' ) end [2025-01-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361784', 'tblTempVendorCDR_20' ) start [2025-01-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361784', 'tblTempVendorCDR_20' ) end [2025-01-30 06:20:19] Production.INFO: ProcessCDR(1,14361784,1,1,2) [2025-01-30 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361784', 'tblTempUsageDetail_20' ) start [2025-01-30 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361784', 'tblTempUsageDetail_20' ) end [2025-01-30 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:20:22] Production.INFO: ==25888== Releasing lock... [2025-01-30 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:21:05 [end_date_ymd] => 2025-01-30 06:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:21:05' and `end` < '2025-01-30 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-30 06:21:18] Production.INFO: count ==262 [2025-01-30 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:21:05 - End Time 2025-01-30 06:21:05 [2025-01-30 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361790', 'tblTempUsageDetail_20' ) start [2025-01-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361790', 'tblTempUsageDetail_20' ) end [2025-01-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361790', 'tblTempVendorCDR_20' ) start [2025-01-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361790', 'tblTempVendorCDR_20' ) end [2025-01-30 06:21:18] Production.INFO: ProcessCDR(1,14361790,1,1,2) [2025-01-30 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361790', 'tblTempUsageDetail_20' ) start [2025-01-30 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361790', 'tblTempUsageDetail_20' ) end [2025-01-30 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:21:21] Production.INFO: ==25962== Releasing lock... [2025-01-30 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:22:05 [end_date_ymd] => 2025-01-30 06:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:22:05' and `end` < '2025-01-30 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-30 06:22:18] Production.INFO: count ==262 [2025-01-30 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:22:05 - End Time 2025-01-30 06:22:05 [2025-01-30 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361795', 'tblTempUsageDetail_20' ) start [2025-01-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361795', 'tblTempUsageDetail_20' ) end [2025-01-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361795', 'tblTempVendorCDR_20' ) start [2025-01-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361795', 'tblTempVendorCDR_20' ) end [2025-01-30 06:22:18] Production.INFO: ProcessCDR(1,14361795,1,1,2) [2025-01-30 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361795', 'tblTempUsageDetail_20' ) start [2025-01-30 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361795', 'tblTempUsageDetail_20' ) end [2025-01-30 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:22:21] Production.INFO: ==26034== Releasing lock... [2025-01-30 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:23:05 [end_date_ymd] => 2025-01-30 06:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:23:05' and `end` < '2025-01-30 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-30 06:23:18] Production.INFO: count ==262 [2025-01-30 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:23:05 - End Time 2025-01-30 06:23:05 [2025-01-30 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361800', 'tblTempUsageDetail_20' ) start [2025-01-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361800', 'tblTempUsageDetail_20' ) end [2025-01-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361800', 'tblTempVendorCDR_20' ) start [2025-01-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361800', 'tblTempVendorCDR_20' ) end [2025-01-30 06:23:18] Production.INFO: ProcessCDR(1,14361800,1,1,2) [2025-01-30 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361800', 'tblTempUsageDetail_20' ) start [2025-01-30 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361800', 'tblTempUsageDetail_20' ) end [2025-01-30 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:23:21] Production.INFO: ==26145== Releasing lock... [2025-01-30 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:24:06 [end_date_ymd] => 2025-01-30 06:24:06 [RateCDR] => 1 ) [2025-01-30 06: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-30 03:24:06' and `end` < '2025-01-30 06: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-30 06:24:19] Production.INFO: count ==262 [2025-01-30 06:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:24:06 - End Time 2025-01-30 06:24:06 [2025-01-30 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361805', 'tblTempUsageDetail_20' ) start [2025-01-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361805', 'tblTempUsageDetail_20' ) end [2025-01-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361805', 'tblTempVendorCDR_20' ) start [2025-01-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361805', 'tblTempVendorCDR_20' ) end [2025-01-30 06:24:19] Production.INFO: ProcessCDR(1,14361805,1,1,2) [2025-01-30 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361805', 'tblTempUsageDetail_20' ) start [2025-01-30 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361805', 'tblTempUsageDetail_20' ) end [2025-01-30 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:24:22] Production.INFO: ==26218== Releasing lock... [2025-01-30 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:25:05 [end_date_ymd] => 2025-01-30 06:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:25:05' and `end` < '2025-01-30 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-30 06:25:18] Production.INFO: count ==262 [2025-01-30 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:25:05 - End Time 2025-01-30 06:25:05 [2025-01-30 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361810', 'tblTempUsageDetail_20' ) start [2025-01-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361810', 'tblTempUsageDetail_20' ) end [2025-01-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361810', 'tblTempVendorCDR_20' ) start [2025-01-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361810', 'tblTempVendorCDR_20' ) end [2025-01-30 06:25:18] Production.INFO: ProcessCDR(1,14361810,1,1,2) [2025-01-30 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361810', 'tblTempUsageDetail_20' ) start [2025-01-30 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361810', 'tblTempUsageDetail_20' ) end [2025-01-30 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:25:21] Production.INFO: ==26288== Releasing lock... [2025-01-30 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:26:05 [end_date_ymd] => 2025-01-30 06:26:05 [RateCDR] => 1 ) [2025-01-30 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:26:05' and `end` < '2025-01-30 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:26:18] Production.INFO: count ==262 [2025-01-30 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:26:05 - End Time 2025-01-30 06:26:05 [2025-01-30 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361815', 'tblTempUsageDetail_20' ) start [2025-01-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361815', 'tblTempUsageDetail_20' ) end [2025-01-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361815', 'tblTempVendorCDR_20' ) start [2025-01-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361815', 'tblTempVendorCDR_20' ) end [2025-01-30 06:26:18] Production.INFO: ProcessCDR(1,14361815,1,1,2) [2025-01-30 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361815', 'tblTempUsageDetail_20' ) start [2025-01-30 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361815', 'tblTempUsageDetail_20' ) end [2025-01-30 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:26:21] Production.INFO: ==26361== Releasing lock... [2025-01-30 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:27:05 [end_date_ymd] => 2025-01-30 06:27:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:27:05' and `end` < '2025-01-30 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-30 06:27:18] Production.INFO: count ==262 [2025-01-30 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:27:05 - End Time 2025-01-30 06:27:05 [2025-01-30 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361820', 'tblTempUsageDetail_20' ) start [2025-01-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361820', 'tblTempUsageDetail_20' ) end [2025-01-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361820', 'tblTempVendorCDR_20' ) start [2025-01-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361820', 'tblTempVendorCDR_20' ) end [2025-01-30 06:27:18] Production.INFO: ProcessCDR(1,14361820,1,1,2) [2025-01-30 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361820', 'tblTempUsageDetail_20' ) start [2025-01-30 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361820', 'tblTempUsageDetail_20' ) end [2025-01-30 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:27:21] Production.INFO: ==26456== Releasing lock... [2025-01-30 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:28:05 [end_date_ymd] => 2025-01-30 06:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:28:05' and `end` < '2025-01-30 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-30 06:28:18] Production.INFO: count ==262 [2025-01-30 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:28:05 - End Time 2025-01-30 06:28:05 [2025-01-30 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361825', 'tblTempUsageDetail_20' ) start [2025-01-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361825', 'tblTempUsageDetail_20' ) end [2025-01-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361825', 'tblTempVendorCDR_20' ) start [2025-01-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361825', 'tblTempVendorCDR_20' ) end [2025-01-30 06:28:18] Production.INFO: ProcessCDR(1,14361825,1,1,2) [2025-01-30 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361825', 'tblTempUsageDetail_20' ) start [2025-01-30 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361825', 'tblTempUsageDetail_20' ) end [2025-01-30 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:28:21] Production.INFO: ==26553== Releasing lock... [2025-01-30 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:29:05 [end_date_ymd] => 2025-01-30 06:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:29:05' and `end` < '2025-01-30 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-30 06:29:18] Production.INFO: count ==262 [2025-01-30 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:29:05 - End Time 2025-01-30 06:29:05 [2025-01-30 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361830', 'tblTempUsageDetail_20' ) start [2025-01-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361830', 'tblTempUsageDetail_20' ) end [2025-01-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361830', 'tblTempVendorCDR_20' ) start [2025-01-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361830', 'tblTempVendorCDR_20' ) end [2025-01-30 06:29:18] Production.INFO: ProcessCDR(1,14361830,1,1,2) [2025-01-30 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361830', 'tblTempUsageDetail_20' ) start [2025-01-30 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361830', 'tblTempUsageDetail_20' ) end [2025-01-30 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:29:21] Production.INFO: ==26650== Releasing lock... [2025-01-30 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:30:06 [end_date_ymd] => 2025-01-30 06:30:06 [RateCDR] => 1 ) [2025-01-30 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-30 03:30:06' and `end` < '2025-01-30 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-30 06:30:18] Production.INFO: count ==266 [2025-01-30 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:30:06 - End Time 2025-01-30 06:30:06 [2025-01-30 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361836', 'tblTempUsageDetail_20' ) start [2025-01-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361836', 'tblTempUsageDetail_20' ) end [2025-01-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361836', 'tblTempVendorCDR_20' ) start [2025-01-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361836', 'tblTempVendorCDR_20' ) end [2025-01-30 06:30:18] Production.INFO: ProcessCDR(1,14361836,1,1,2) [2025-01-30 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361836', 'tblTempUsageDetail_20' ) start [2025-01-30 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361836', 'tblTempUsageDetail_20' ) end [2025-01-30 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:30:21] Production.INFO: ==26752== Releasing lock... [2025-01-30 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:31:05 [end_date_ymd] => 2025-01-30 06:31:05 [RateCDR] => 1 ) [2025-01-30 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:31:05' and `end` < '2025-01-30 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:31:18] Production.INFO: count ==273 [2025-01-30 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:31:05 - End Time 2025-01-30 06:31:05 [2025-01-30 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361841', 'tblTempUsageDetail_20' ) start [2025-01-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361841', 'tblTempUsageDetail_20' ) end [2025-01-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361841', 'tblTempVendorCDR_20' ) start [2025-01-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361841', 'tblTempVendorCDR_20' ) end [2025-01-30 06:31:18] Production.INFO: ProcessCDR(1,14361841,1,1,2) [2025-01-30 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361841', 'tblTempUsageDetail_20' ) start [2025-01-30 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361841', 'tblTempUsageDetail_20' ) end [2025-01-30 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:31:21] Production.INFO: ==26853== Releasing lock... [2025-01-30 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:32:05 [end_date_ymd] => 2025-01-30 06:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:32:05' and `end` < '2025-01-30 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-30 06:32:19] Production.INFO: count ==273 [2025-01-30 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:32:05 - End Time 2025-01-30 06:32:05 [2025-01-30 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361846', 'tblTempUsageDetail_20' ) start [2025-01-30 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361846', 'tblTempUsageDetail_20' ) end [2025-01-30 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361846', 'tblTempVendorCDR_20' ) start [2025-01-30 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361846', 'tblTempVendorCDR_20' ) end [2025-01-30 06:32:19] Production.INFO: ProcessCDR(1,14361846,1,1,2) [2025-01-30 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361846', 'tblTempUsageDetail_20' ) start [2025-01-30 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361846', 'tblTempUsageDetail_20' ) end [2025-01-30 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:32:22] Production.INFO: ==26950== Releasing lock... [2025-01-30 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:33:05 [end_date_ymd] => 2025-01-30 06:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:33:05' and `end` < '2025-01-30 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-30 06:33:19] Production.INFO: count ==273 [2025-01-30 06:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:33:05 - End Time 2025-01-30 06:33:05 [2025-01-30 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361851', 'tblTempUsageDetail_20' ) start [2025-01-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361851', 'tblTempUsageDetail_20' ) end [2025-01-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361851', 'tblTempVendorCDR_20' ) start [2025-01-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361851', 'tblTempVendorCDR_20' ) end [2025-01-30 06:33:19] Production.INFO: ProcessCDR(1,14361851,1,1,2) [2025-01-30 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361851', 'tblTempUsageDetail_20' ) start [2025-01-30 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361851', 'tblTempUsageDetail_20' ) end [2025-01-30 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:33:22] Production.INFO: ==27048== Releasing lock... [2025-01-30 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:34:05 [end_date_ymd] => 2025-01-30 06:34:05 [RateCDR] => 1 ) [2025-01-30 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:34:05' and `end` < '2025-01-30 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:34:18] Production.INFO: count ==273 [2025-01-30 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:34:05 - End Time 2025-01-30 06:34:05 [2025-01-30 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361856', 'tblTempUsageDetail_20' ) start [2025-01-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361856', 'tblTempUsageDetail_20' ) end [2025-01-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361856', 'tblTempVendorCDR_20' ) start [2025-01-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361856', 'tblTempVendorCDR_20' ) end [2025-01-30 06:34:18] Production.INFO: ProcessCDR(1,14361856,1,1,2) [2025-01-30 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361856', 'tblTempUsageDetail_20' ) start [2025-01-30 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361856', 'tblTempUsageDetail_20' ) end [2025-01-30 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:34:21] Production.INFO: ==27147== Releasing lock... [2025-01-30 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:35:05 [end_date_ymd] => 2025-01-30 06:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:35:05' and `end` < '2025-01-30 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-30 06:35:17] Production.INFO: count ==275 [2025-01-30 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:35:05 - End Time 2025-01-30 06:35:05 [2025-01-30 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361861', 'tblTempUsageDetail_20' ) start [2025-01-30 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361861', 'tblTempUsageDetail_20' ) end [2025-01-30 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361861', 'tblTempVendorCDR_20' ) start [2025-01-30 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361861', 'tblTempVendorCDR_20' ) end [2025-01-30 06:35:17] Production.INFO: ProcessCDR(1,14361861,1,1,2) [2025-01-30 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361861', 'tblTempUsageDetail_20' ) start [2025-01-30 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361861', 'tblTempUsageDetail_20' ) end [2025-01-30 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:35:20] Production.INFO: ==27245== Releasing lock... [2025-01-30 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:35:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:36:05 [end_date_ymd] => 2025-01-30 06:36:05 [RateCDR] => 1 ) [2025-01-30 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:36:05' and `end` < '2025-01-30 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:36:18] Production.INFO: count ==277 [2025-01-30 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:36:05 - End Time 2025-01-30 06:36:05 [2025-01-30 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361866', 'tblTempUsageDetail_20' ) start [2025-01-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361866', 'tblTempUsageDetail_20' ) end [2025-01-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361866', 'tblTempVendorCDR_20' ) start [2025-01-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361866', 'tblTempVendorCDR_20' ) end [2025-01-30 06:36:18] Production.INFO: ProcessCDR(1,14361866,1,1,2) [2025-01-30 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361866', 'tblTempUsageDetail_20' ) start [2025-01-30 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361866', 'tblTempUsageDetail_20' ) end [2025-01-30 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:36:22] Production.INFO: ==27338== Releasing lock... [2025-01-30 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:37:05 [end_date_ymd] => 2025-01-30 06:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:37:05' and `end` < '2025-01-30 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-30 06:37:20] Production.INFO: count ==277 [2025-01-30 06:37:20] Production.ERROR: pbx CDR StartTime 2025-01-30 03:37:05 - End Time 2025-01-30 06:37:05 [2025-01-30 06:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361871', 'tblTempUsageDetail_20' ) start [2025-01-30 06:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361871', 'tblTempUsageDetail_20' ) end [2025-01-30 06:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361871', 'tblTempVendorCDR_20' ) start [2025-01-30 06:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361871', 'tblTempVendorCDR_20' ) end [2025-01-30 06:37:20] Production.INFO: ProcessCDR(1,14361871,1,1,2) [2025-01-30 06:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361871', 'tblTempUsageDetail_20' ) start [2025-01-30 06:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361871', 'tblTempUsageDetail_20' ) end [2025-01-30 06:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:37:23] Production.INFO: ==27438== Releasing lock... [2025-01-30 06:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:37:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:38:06 [end_date_ymd] => 2025-01-30 06:38:06 [RateCDR] => 1 ) [2025-01-30 06: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-30 03:38:06' and `end` < '2025-01-30 06: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-30 06:38:19] Production.INFO: count ==277 [2025-01-30 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:38:06 - End Time 2025-01-30 06:38:06 [2025-01-30 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361876', 'tblTempUsageDetail_20' ) start [2025-01-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361876', 'tblTempUsageDetail_20' ) end [2025-01-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361876', 'tblTempVendorCDR_20' ) start [2025-01-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361876', 'tblTempVendorCDR_20' ) end [2025-01-30 06:38:19] Production.INFO: ProcessCDR(1,14361876,1,1,2) [2025-01-30 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361876', 'tblTempUsageDetail_20' ) start [2025-01-30 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361876', 'tblTempUsageDetail_20' ) end [2025-01-30 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:38:21] Production.INFO: ==27541== Releasing lock... [2025-01-30 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:39:05 [end_date_ymd] => 2025-01-30 06:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:39:05' and `end` < '2025-01-30 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-30 06:39:18] Production.INFO: count ==277 [2025-01-30 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:39:05 - End Time 2025-01-30 06:39:05 [2025-01-30 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361881', 'tblTempUsageDetail_20' ) start [2025-01-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361881', 'tblTempUsageDetail_20' ) end [2025-01-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361881', 'tblTempVendorCDR_20' ) start [2025-01-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361881', 'tblTempVendorCDR_20' ) end [2025-01-30 06:39:18] Production.INFO: ProcessCDR(1,14361881,1,1,2) [2025-01-30 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361881', 'tblTempUsageDetail_20' ) start [2025-01-30 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361881', 'tblTempUsageDetail_20' ) end [2025-01-30 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:39:21] Production.INFO: ==27683== Releasing lock... [2025-01-30 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:40:06 [end_date_ymd] => 2025-01-30 06:40:06 [RateCDR] => 1 ) [2025-01-30 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:40:06' and `end` < '2025-01-30 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:40:19] Production.INFO: count ==277 [2025-01-30 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:40:06 - End Time 2025-01-30 06:40:06 [2025-01-30 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361886', 'tblTempUsageDetail_20' ) start [2025-01-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361886', 'tblTempUsageDetail_20' ) end [2025-01-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361886', 'tblTempVendorCDR_20' ) start [2025-01-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361886', 'tblTempVendorCDR_20' ) end [2025-01-30 06:40:19] Production.INFO: ProcessCDR(1,14361886,1,1,2) [2025-01-30 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361886', 'tblTempUsageDetail_20' ) start [2025-01-30 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361886', 'tblTempUsageDetail_20' ) end [2025-01-30 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:40:23] Production.INFO: ==27785== Releasing lock... [2025-01-30 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:40:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:41:05 [end_date_ymd] => 2025-01-30 06:41:05 [RateCDR] => 1 ) [2025-01-30 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:41:05' and `end` < '2025-01-30 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:41:19] Production.INFO: count ==277 [2025-01-30 06:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:41:05 - End Time 2025-01-30 06:41:05 [2025-01-30 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361892', 'tblTempUsageDetail_20' ) start [2025-01-30 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361892', 'tblTempUsageDetail_20' ) end [2025-01-30 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361892', 'tblTempVendorCDR_20' ) start [2025-01-30 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361892', 'tblTempVendorCDR_20' ) end [2025-01-30 06:41:19] Production.INFO: ProcessCDR(1,14361892,1,1,2) [2025-01-30 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361892', 'tblTempUsageDetail_20' ) start [2025-01-30 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361892', 'tblTempUsageDetail_20' ) end [2025-01-30 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:41:22] Production.INFO: ==27885== Releasing lock... [2025-01-30 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:42:05 [end_date_ymd] => 2025-01-30 06:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:42:05' and `end` < '2025-01-30 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-30 06:42:18] Production.INFO: count ==277 [2025-01-30 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:42:05 - End Time 2025-01-30 06:42:05 [2025-01-30 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361897', 'tblTempUsageDetail_20' ) start [2025-01-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361897', 'tblTempUsageDetail_20' ) end [2025-01-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361897', 'tblTempVendorCDR_20' ) start [2025-01-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361897', 'tblTempVendorCDR_20' ) end [2025-01-30 06:42:18] Production.INFO: ProcessCDR(1,14361897,1,1,2) [2025-01-30 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361897', 'tblTempUsageDetail_20' ) start [2025-01-30 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361897', 'tblTempUsageDetail_20' ) end [2025-01-30 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:42:21] Production.INFO: ==27982== Releasing lock... [2025-01-30 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:43:04 [end_date_ymd] => 2025-01-30 06:43:04 [RateCDR] => 1 ) [2025-01-30 06: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-30 03:43:04' and `end` < '2025-01-30 06: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-30 06:43:17] Production.INFO: count ==277 [2025-01-30 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:43:04 - End Time 2025-01-30 06:43:04 [2025-01-30 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361902', 'tblTempUsageDetail_20' ) start [2025-01-30 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361902', 'tblTempUsageDetail_20' ) end [2025-01-30 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361902', 'tblTempVendorCDR_20' ) start [2025-01-30 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361902', 'tblTempVendorCDR_20' ) end [2025-01-30 06:43:17] Production.INFO: ProcessCDR(1,14361902,1,1,2) [2025-01-30 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361902', 'tblTempUsageDetail_20' ) start [2025-01-30 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361902', 'tblTempUsageDetail_20' ) end [2025-01-30 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:43:20] Production.INFO: ==28079== Releasing lock... [2025-01-30 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:44:05 [end_date_ymd] => 2025-01-30 06:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:44:05' and `end` < '2025-01-30 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-30 06:44:18] Production.INFO: count ==277 [2025-01-30 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:44:05 - End Time 2025-01-30 06:44:05 [2025-01-30 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361907', 'tblTempUsageDetail_20' ) start [2025-01-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361907', 'tblTempUsageDetail_20' ) end [2025-01-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361907', 'tblTempVendorCDR_20' ) start [2025-01-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361907', 'tblTempVendorCDR_20' ) end [2025-01-30 06:44:18] Production.INFO: ProcessCDR(1,14361907,1,1,2) [2025-01-30 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361907', 'tblTempUsageDetail_20' ) start [2025-01-30 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361907', 'tblTempUsageDetail_20' ) end [2025-01-30 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:44:21] Production.INFO: ==28175== Releasing lock... [2025-01-30 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:45:06 [end_date_ymd] => 2025-01-30 06:45:06 [RateCDR] => 1 ) [2025-01-30 06:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:45:06' and `end` < '2025-01-30 06:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:45:18] Production.INFO: count ==277 [2025-01-30 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:45:06 - End Time 2025-01-30 06:45:06 [2025-01-30 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361912', 'tblTempUsageDetail_20' ) start [2025-01-30 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361912', 'tblTempUsageDetail_20' ) end [2025-01-30 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361912', 'tblTempVendorCDR_20' ) start [2025-01-30 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361912', 'tblTempVendorCDR_20' ) end [2025-01-30 06:45:19] Production.INFO: ProcessCDR(1,14361912,1,1,2) [2025-01-30 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361912', 'tblTempUsageDetail_20' ) start [2025-01-30 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361912', 'tblTempUsageDetail_20' ) end [2025-01-30 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:45:21] Production.INFO: ==28276== Releasing lock... [2025-01-30 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:46:05 [end_date_ymd] => 2025-01-30 06:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:46:05' and `end` < '2025-01-30 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-30 06:46:18] Production.INFO: count ==277 [2025-01-30 06:46:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:46:05 - End Time 2025-01-30 06:46:05 [2025-01-30 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361917', 'tblTempUsageDetail_20' ) start [2025-01-30 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361917', 'tblTempUsageDetail_20' ) end [2025-01-30 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361917', 'tblTempVendorCDR_20' ) start [2025-01-30 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361917', 'tblTempVendorCDR_20' ) end [2025-01-30 06:46:19] Production.INFO: ProcessCDR(1,14361917,1,1,2) [2025-01-30 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361917', 'tblTempUsageDetail_20' ) start [2025-01-30 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361917', 'tblTempUsageDetail_20' ) end [2025-01-30 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:46:21] Production.INFO: ==28345== Releasing lock... [2025-01-30 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:47:05 [end_date_ymd] => 2025-01-30 06:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:47:05' and `end` < '2025-01-30 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-30 06:47:19] Production.INFO: count ==277 [2025-01-30 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:47:05 - End Time 2025-01-30 06:47:05 [2025-01-30 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361922', 'tblTempUsageDetail_20' ) start [2025-01-30 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361922', 'tblTempUsageDetail_20' ) end [2025-01-30 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361922', 'tblTempVendorCDR_20' ) start [2025-01-30 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361922', 'tblTempVendorCDR_20' ) end [2025-01-30 06:47:19] Production.INFO: ProcessCDR(1,14361922,1,1,2) [2025-01-30 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361922', 'tblTempUsageDetail_20' ) start [2025-01-30 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361922', 'tblTempUsageDetail_20' ) end [2025-01-30 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:47:22] Production.INFO: ==28416== Releasing lock... [2025-01-30 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:48:05 [end_date_ymd] => 2025-01-30 06:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:48:05' and `end` < '2025-01-30 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-30 06:48:18] Production.INFO: count ==278 [2025-01-30 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:48:05 - End Time 2025-01-30 06:48:05 [2025-01-30 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361927', 'tblTempUsageDetail_20' ) start [2025-01-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361927', 'tblTempUsageDetail_20' ) end [2025-01-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361927', 'tblTempVendorCDR_20' ) start [2025-01-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361927', 'tblTempVendorCDR_20' ) end [2025-01-30 06:48:18] Production.INFO: ProcessCDR(1,14361927,1,1,2) [2025-01-30 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361927', 'tblTempUsageDetail_20' ) start [2025-01-30 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361927', 'tblTempUsageDetail_20' ) end [2025-01-30 06:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:48:23] Production.INFO: ==28489== Releasing lock... [2025-01-30 06:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:48:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:49:06 [end_date_ymd] => 2025-01-30 06:49:06 [RateCDR] => 1 ) [2025-01-30 06: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-30 03:49:06' and `end` < '2025-01-30 06: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-30 06:49:18] Production.INFO: count ==278 [2025-01-30 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:49:06 - End Time 2025-01-30 06:49:06 [2025-01-30 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361932', 'tblTempUsageDetail_20' ) start [2025-01-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361932', 'tblTempUsageDetail_20' ) end [2025-01-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361932', 'tblTempVendorCDR_20' ) start [2025-01-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361932', 'tblTempVendorCDR_20' ) end [2025-01-30 06:49:18] Production.INFO: ProcessCDR(1,14361932,1,1,2) [2025-01-30 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361932', 'tblTempUsageDetail_20' ) start [2025-01-30 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361932', 'tblTempUsageDetail_20' ) end [2025-01-30 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:49:21] Production.INFO: ==28559== Releasing lock... [2025-01-30 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:50:05 [end_date_ymd] => 2025-01-30 06:50:05 [RateCDR] => 1 ) [2025-01-30 06: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-30 03:50:05' and `end` < '2025-01-30 06: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-30 06:50:18] Production.INFO: count ==278 [2025-01-30 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:50:05 - End Time 2025-01-30 06:50:05 [2025-01-30 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361938', 'tblTempUsageDetail_20' ) start [2025-01-30 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361938', 'tblTempUsageDetail_20' ) end [2025-01-30 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361938', 'tblTempVendorCDR_20' ) start [2025-01-30 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361938', 'tblTempVendorCDR_20' ) end [2025-01-30 06:50:18] Production.INFO: ProcessCDR(1,14361938,1,1,2) [2025-01-30 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361938', 'tblTempUsageDetail_20' ) start [2025-01-30 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361938', 'tblTempUsageDetail_20' ) end [2025-01-30 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:50:21] Production.INFO: ==28630== Releasing lock... [2025-01-30 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:51:05 [end_date_ymd] => 2025-01-30 06:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:51:05' and `end` < '2025-01-30 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-30 06:51:19] Production.INFO: count ==278 [2025-01-30 06:51:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:51:05 - End Time 2025-01-30 06:51:05 [2025-01-30 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361943', 'tblTempUsageDetail_20' ) start [2025-01-30 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361943', 'tblTempUsageDetail_20' ) end [2025-01-30 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361943', 'tblTempVendorCDR_20' ) start [2025-01-30 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361943', 'tblTempVendorCDR_20' ) end [2025-01-30 06:51:19] Production.INFO: ProcessCDR(1,14361943,1,1,2) [2025-01-30 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361943', 'tblTempUsageDetail_20' ) start [2025-01-30 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361943', 'tblTempUsageDetail_20' ) end [2025-01-30 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:51:22] Production.INFO: ==28704== Releasing lock... [2025-01-30 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:52:05 [end_date_ymd] => 2025-01-30 06:52:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:52:05' and `end` < '2025-01-30 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-30 06:52:17] Production.INFO: count ==278 [2025-01-30 06:52:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:52:05 - End Time 2025-01-30 06:52:05 [2025-01-30 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361948', 'tblTempUsageDetail_20' ) start [2025-01-30 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361948', 'tblTempUsageDetail_20' ) end [2025-01-30 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361948', 'tblTempVendorCDR_20' ) start [2025-01-30 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361948', 'tblTempVendorCDR_20' ) end [2025-01-30 06:52:17] Production.INFO: ProcessCDR(1,14361948,1,1,2) [2025-01-30 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361948', 'tblTempUsageDetail_20' ) start [2025-01-30 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361948', 'tblTempUsageDetail_20' ) end [2025-01-30 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:52:21] Production.INFO: ==28775== Releasing lock... [2025-01-30 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:53:05 [end_date_ymd] => 2025-01-30 06:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:53:05' and `end` < '2025-01-30 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-30 06:53:18] Production.INFO: count ==279 [2025-01-30 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:53:05 - End Time 2025-01-30 06:53:05 [2025-01-30 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361953', 'tblTempUsageDetail_20' ) start [2025-01-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361953', 'tblTempUsageDetail_20' ) end [2025-01-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361953', 'tblTempVendorCDR_20' ) start [2025-01-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361953', 'tblTempVendorCDR_20' ) end [2025-01-30 06:53:18] Production.INFO: ProcessCDR(1,14361953,1,1,2) [2025-01-30 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361953', 'tblTempUsageDetail_20' ) start [2025-01-30 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361953', 'tblTempUsageDetail_20' ) end [2025-01-30 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:53:22] Production.INFO: ==28855== Releasing lock... [2025-01-30 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:54:05 [end_date_ymd] => 2025-01-30 06:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:54:05' and `end` < '2025-01-30 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-30 06:54:18] Production.INFO: count ==280 [2025-01-30 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:54:05 - End Time 2025-01-30 06:54:05 [2025-01-30 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361958', 'tblTempUsageDetail_20' ) start [2025-01-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361958', 'tblTempUsageDetail_20' ) end [2025-01-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361958', 'tblTempVendorCDR_20' ) start [2025-01-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361958', 'tblTempVendorCDR_20' ) end [2025-01-30 06:54:18] Production.INFO: ProcessCDR(1,14361958,1,1,2) [2025-01-30 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361958', 'tblTempUsageDetail_20' ) start [2025-01-30 06:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361958', 'tblTempUsageDetail_20' ) end [2025-01-30 06:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:54:23] Production.INFO: ==28970== Releasing lock... [2025-01-30 06:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:54:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:55:05 [end_date_ymd] => 2025-01-30 06:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:55:05' and `end` < '2025-01-30 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-30 06:55:18] Production.INFO: count ==280 [2025-01-30 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:55:05 - End Time 2025-01-30 06:55:05 [2025-01-30 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361963', 'tblTempUsageDetail_20' ) start [2025-01-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361963', 'tblTempUsageDetail_20' ) end [2025-01-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361963', 'tblTempVendorCDR_20' ) start [2025-01-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361963', 'tblTempVendorCDR_20' ) end [2025-01-30 06:55:18] Production.INFO: ProcessCDR(1,14361963,1,1,2) [2025-01-30 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361963', 'tblTempUsageDetail_20' ) start [2025-01-30 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361963', 'tblTempUsageDetail_20' ) end [2025-01-30 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:55:21] Production.INFO: ==29046== Releasing lock... [2025-01-30 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:56:06 [end_date_ymd] => 2025-01-30 06:56:06 [RateCDR] => 1 ) [2025-01-30 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 03:56:06' and `end` < '2025-01-30 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 06:56:19] Production.INFO: count ==280 [2025-01-30 06:56:19] Production.ERROR: pbx CDR StartTime 2025-01-30 03:56:06 - End Time 2025-01-30 06:56:06 [2025-01-30 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361968', 'tblTempUsageDetail_20' ) start [2025-01-30 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361968', 'tblTempUsageDetail_20' ) end [2025-01-30 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361968', 'tblTempVendorCDR_20' ) start [2025-01-30 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361968', 'tblTempVendorCDR_20' ) end [2025-01-30 06:56:19] Production.INFO: ProcessCDR(1,14361968,1,1,2) [2025-01-30 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361968', 'tblTempUsageDetail_20' ) start [2025-01-30 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361968', 'tblTempUsageDetail_20' ) end [2025-01-30 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:56:22] Production.INFO: ==29126== Releasing lock... [2025-01-30 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:57:06 [end_date_ymd] => 2025-01-30 06:57:06 [RateCDR] => 1 ) [2025-01-30 06: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-30 03:57:06' and `end` < '2025-01-30 06: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-30 06:57:20] Production.INFO: count ==280 [2025-01-30 06:57:20] Production.ERROR: pbx CDR StartTime 2025-01-30 03:57:06 - End Time 2025-01-30 06:57:06 [2025-01-30 06:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361973', 'tblTempUsageDetail_20' ) start [2025-01-30 06:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361973', 'tblTempUsageDetail_20' ) end [2025-01-30 06:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361973', 'tblTempVendorCDR_20' ) start [2025-01-30 06:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361973', 'tblTempVendorCDR_20' ) end [2025-01-30 06:57:20] Production.INFO: ProcessCDR(1,14361973,1,1,2) [2025-01-30 06:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361973', 'tblTempUsageDetail_20' ) start [2025-01-30 06:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361973', 'tblTempUsageDetail_20' ) end [2025-01-30 06:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:57:23] Production.INFO: ==29198== Releasing lock... [2025-01-30 06:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:57:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:58:04 [end_date_ymd] => 2025-01-30 06:58:04 [RateCDR] => 1 ) [2025-01-30 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-30 03:58:04' and `end` < '2025-01-30 06: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-30 06:58:17] Production.INFO: count ==280 [2025-01-30 06:58:17] Production.ERROR: pbx CDR StartTime 2025-01-30 03:58:04 - End Time 2025-01-30 06:58:04 [2025-01-30 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361978', 'tblTempUsageDetail_20' ) start [2025-01-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361978', 'tblTempUsageDetail_20' ) end [2025-01-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361978', 'tblTempVendorCDR_20' ) start [2025-01-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361978', 'tblTempVendorCDR_20' ) end [2025-01-30 06:58:17] Production.INFO: ProcessCDR(1,14361978,1,1,2) [2025-01-30 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361978', 'tblTempUsageDetail_20' ) start [2025-01-30 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361978', 'tblTempUsageDetail_20' ) end [2025-01-30 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:58:20] Production.INFO: ==29280== Releasing lock... [2025-01-30 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:58:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 03:59:05 [end_date_ymd] => 2025-01-30 06:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 03:59:05' and `end` < '2025-01-30 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-30 06:59:18] Production.INFO: count ==280 [2025-01-30 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-30 03:59:05 - End Time 2025-01-30 06:59:05 [2025-01-30 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361983', 'tblTempUsageDetail_20' ) start [2025-01-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361983', 'tblTempUsageDetail_20' ) end [2025-01-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361983', 'tblTempVendorCDR_20' ) start [2025-01-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361983', 'tblTempVendorCDR_20' ) end [2025-01-30 06:59:18] Production.INFO: ProcessCDR(1,14361983,1,1,2) [2025-01-30 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361983', 'tblTempUsageDetail_20' ) start [2025-01-30 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361983', 'tblTempUsageDetail_20' ) end [2025-01-30 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 06:59:21] Production.INFO: ==29358== Releasing lock... [2025-01-30 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 06:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:00:06 [end_date_ymd] => 2025-01-30 07:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 04:00:06' and `end` < '2025-01-30 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-30 07:00:18] Production.INFO: count ==280 [2025-01-30 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:00:06 - End Time 2025-01-30 07:00:06 [2025-01-30 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361988', 'tblTempUsageDetail_20' ) start [2025-01-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361988', 'tblTempUsageDetail_20' ) end [2025-01-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361988', 'tblTempVendorCDR_20' ) start [2025-01-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361988', 'tblTempVendorCDR_20' ) end [2025-01-30 07:00:18] Production.INFO: ProcessCDR(1,14361988,1,1,2) [2025-01-30 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361988', 'tblTempUsageDetail_20' ) start [2025-01-30 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361988', 'tblTempUsageDetail_20' ) end [2025-01-30 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:00:21] Production.INFO: ==29436== Releasing lock... [2025-01-30 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:01:05 [end_date_ymd] => 2025-01-30 07:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:01:05' and `end` < '2025-01-30 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-30 07:01:24] Production.INFO: count ==280 [2025-01-30 07:01:24] Production.ERROR: pbx CDR StartTime 2025-01-30 04:01:05 - End Time 2025-01-30 07:01:05 [2025-01-30 07:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361994', 'tblTempUsageDetail_20' ) start [2025-01-30 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361994', 'tblTempUsageDetail_20' ) end [2025-01-30 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361994', 'tblTempVendorCDR_20' ) start [2025-01-30 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361994', 'tblTempVendorCDR_20' ) end [2025-01-30 07:01:24] Production.INFO: ProcessCDR(1,14361994,1,1,2) [2025-01-30 07:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361994', 'tblTempUsageDetail_20' ) start [2025-01-30 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361994', 'tblTempUsageDetail_20' ) end [2025-01-30 07:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:01:27] Production.INFO: ==29525== Releasing lock... [2025-01-30 07:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:01:27] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:02:06 [end_date_ymd] => 2025-01-30 07:02:06 [RateCDR] => 1 ) [2025-01-30 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:02:06' and `end` < '2025-01-30 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:02:20] Production.INFO: count ==280 [2025-01-30 07:02:20] Production.ERROR: pbx CDR StartTime 2025-01-30 04:02:06 - End Time 2025-01-30 07:02:06 [2025-01-30 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361999', 'tblTempUsageDetail_20' ) start [2025-01-30 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14361999', 'tblTempUsageDetail_20' ) end [2025-01-30 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361999', 'tblTempVendorCDR_20' ) start [2025-01-30 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14361999', 'tblTempVendorCDR_20' ) end [2025-01-30 07:02:20] Production.INFO: ProcessCDR(1,14361999,1,1,2) [2025-01-30 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14361999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14361999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14361999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14361999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361999', 'tblTempUsageDetail_20' ) start [2025-01-30 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14361999', 'tblTempUsageDetail_20' ) end [2025-01-30 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:02:23] Production.INFO: ==29680== Releasing lock... [2025-01-30 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:02:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:03:05 [end_date_ymd] => 2025-01-30 07:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:03:05' and `end` < '2025-01-30 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-30 07:03:18] Production.INFO: count ==281 [2025-01-30 07:03:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:03:05 - End Time 2025-01-30 07:03:05 [2025-01-30 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362004', 'tblTempUsageDetail_20' ) start [2025-01-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362004', 'tblTempUsageDetail_20' ) end [2025-01-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362004', 'tblTempVendorCDR_20' ) start [2025-01-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362004', 'tblTempVendorCDR_20' ) end [2025-01-30 07:03:18] Production.INFO: ProcessCDR(1,14362004,1,1,2) [2025-01-30 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362004', 'tblTempUsageDetail_20' ) start [2025-01-30 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362004', 'tblTempUsageDetail_20' ) end [2025-01-30 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:03:22] Production.INFO: ==29756== Releasing lock... [2025-01-30 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:03:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:04:06 [end_date_ymd] => 2025-01-30 07:04:06 [RateCDR] => 1 ) [2025-01-30 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:04:06' and `end` < '2025-01-30 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:04:19] Production.INFO: count ==286 [2025-01-30 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:04:06 - End Time 2025-01-30 07:04:06 [2025-01-30 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362009', 'tblTempUsageDetail_20' ) start [2025-01-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362009', 'tblTempUsageDetail_20' ) end [2025-01-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362009', 'tblTempVendorCDR_20' ) start [2025-01-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362009', 'tblTempVendorCDR_20' ) end [2025-01-30 07:04:19] Production.INFO: ProcessCDR(1,14362009,1,1,2) [2025-01-30 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362009', 'tblTempUsageDetail_20' ) start [2025-01-30 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362009', 'tblTempUsageDetail_20' ) end [2025-01-30 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:04:22] Production.INFO: ==29833== Releasing lock... [2025-01-30 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:05:04 [end_date_ymd] => 2025-01-30 07:05:04 [RateCDR] => 1 ) [2025-01-30 07: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-30 04:05:04' and `end` < '2025-01-30 07: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-30 07:05:18] Production.INFO: count ==286 [2025-01-30 07:05:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:05:04 - End Time 2025-01-30 07:05:04 [2025-01-30 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362014', 'tblTempUsageDetail_20' ) start [2025-01-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362014', 'tblTempUsageDetail_20' ) end [2025-01-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362014', 'tblTempVendorCDR_20' ) start [2025-01-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362014', 'tblTempVendorCDR_20' ) end [2025-01-30 07:05:18] Production.INFO: ProcessCDR(1,14362014,1,1,2) [2025-01-30 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362014', 'tblTempUsageDetail_20' ) start [2025-01-30 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362014', 'tblTempUsageDetail_20' ) end [2025-01-30 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:05:21] Production.INFO: ==29989== Releasing lock... [2025-01-30 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:06:05 [end_date_ymd] => 2025-01-30 07:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:06:05' and `end` < '2025-01-30 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-30 07:06:19] Production.INFO: count ==286 [2025-01-30 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:06:05 - End Time 2025-01-30 07:06:05 [2025-01-30 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362019', 'tblTempUsageDetail_20' ) start [2025-01-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362019', 'tblTempUsageDetail_20' ) end [2025-01-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362019', 'tblTempVendorCDR_20' ) start [2025-01-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362019', 'tblTempVendorCDR_20' ) end [2025-01-30 07:06:19] Production.INFO: ProcessCDR(1,14362019,1,1,2) [2025-01-30 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362019', 'tblTempUsageDetail_20' ) start [2025-01-30 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362019', 'tblTempUsageDetail_20' ) end [2025-01-30 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:06:22] Production.INFO: ==30067== Releasing lock... [2025-01-30 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:06:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:07:05 [end_date_ymd] => 2025-01-30 07:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:07:05' and `end` < '2025-01-30 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:07:19] Production.INFO: count ==286 [2025-01-30 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:07:05 - End Time 2025-01-30 07:07:05 [2025-01-30 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362024', 'tblTempUsageDetail_20' ) start [2025-01-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362024', 'tblTempUsageDetail_20' ) end [2025-01-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362024', 'tblTempVendorCDR_20' ) start [2025-01-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362024', 'tblTempVendorCDR_20' ) end [2025-01-30 07:07:19] Production.INFO: ProcessCDR(1,14362024,1,1,2) [2025-01-30 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362024', 'tblTempUsageDetail_20' ) start [2025-01-30 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362024', 'tblTempUsageDetail_20' ) end [2025-01-30 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:07:22] Production.INFO: ==30145== Releasing lock... [2025-01-30 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:08:05 [end_date_ymd] => 2025-01-30 07:08:05 [RateCDR] => 1 ) [2025-01-30 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:08:05' and `end` < '2025-01-30 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:08:19] Production.INFO: count ==286 [2025-01-30 07:08:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:08:05 - End Time 2025-01-30 07:08:05 [2025-01-30 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362029', 'tblTempUsageDetail_20' ) start [2025-01-30 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362029', 'tblTempUsageDetail_20' ) end [2025-01-30 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362029', 'tblTempVendorCDR_20' ) start [2025-01-30 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362029', 'tblTempVendorCDR_20' ) end [2025-01-30 07:08:19] Production.INFO: ProcessCDR(1,14362029,1,1,2) [2025-01-30 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362029', 'tblTempUsageDetail_20' ) start [2025-01-30 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362029', 'tblTempUsageDetail_20' ) end [2025-01-30 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:08:22] Production.INFO: ==30266== Releasing lock... [2025-01-30 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:09:05 [end_date_ymd] => 2025-01-30 07:09:05 [RateCDR] => 1 ) [2025-01-30 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:09:05' and `end` < '2025-01-30 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:09:20] Production.INFO: count ==286 [2025-01-30 07:09:20] Production.ERROR: pbx CDR StartTime 2025-01-30 04:09:05 - End Time 2025-01-30 07:09:05 [2025-01-30 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362034', 'tblTempUsageDetail_20' ) start [2025-01-30 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362034', 'tblTempUsageDetail_20' ) end [2025-01-30 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362034', 'tblTempVendorCDR_20' ) start [2025-01-30 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362034', 'tblTempVendorCDR_20' ) end [2025-01-30 07:09:20] Production.INFO: ProcessCDR(1,14362034,1,1,2) [2025-01-30 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362034', 'tblTempUsageDetail_20' ) start [2025-01-30 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362034', 'tblTempUsageDetail_20' ) end [2025-01-30 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:09:23] Production.INFO: ==30421== Releasing lock... [2025-01-30 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:09:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:10:06 [end_date_ymd] => 2025-01-30 07:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 04:10:06' and `end` < '2025-01-30 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-30 07:10:19] Production.INFO: count ==290 [2025-01-30 07:10:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:10:06 - End Time 2025-01-30 07:10:06 [2025-01-30 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362040', 'tblTempUsageDetail_20' ) start [2025-01-30 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362040', 'tblTempUsageDetail_20' ) end [2025-01-30 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362040', 'tblTempVendorCDR_20' ) start [2025-01-30 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362040', 'tblTempVendorCDR_20' ) end [2025-01-30 07:10:19] Production.INFO: ProcessCDR(1,14362040,1,1,2) [2025-01-30 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362040', 'tblTempUsageDetail_20' ) start [2025-01-30 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362040', 'tblTempUsageDetail_20' ) end [2025-01-30 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:10:22] Production.INFO: ==30542== Releasing lock... [2025-01-30 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:11:05 [end_date_ymd] => 2025-01-30 07:11:05 [RateCDR] => 1 ) [2025-01-30 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:11:05' and `end` < '2025-01-30 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:11:18] Production.INFO: count ==292 [2025-01-30 07:11:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:11:05 - End Time 2025-01-30 07:11:05 [2025-01-30 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362045', 'tblTempUsageDetail_20' ) start [2025-01-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362045', 'tblTempUsageDetail_20' ) end [2025-01-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362045', 'tblTempVendorCDR_20' ) start [2025-01-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362045', 'tblTempVendorCDR_20' ) end [2025-01-30 07:11:18] Production.INFO: ProcessCDR(1,14362045,1,1,2) [2025-01-30 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362045', 'tblTempUsageDetail_20' ) start [2025-01-30 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362045', 'tblTempUsageDetail_20' ) end [2025-01-30 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:11:21] Production.INFO: ==30667== Releasing lock... [2025-01-30 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:12:05 [end_date_ymd] => 2025-01-30 07:12:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:12:05' and `end` < '2025-01-30 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-30 07:12:19] Production.INFO: count ==293 [2025-01-30 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:12:05 - End Time 2025-01-30 07:12:05 [2025-01-30 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362050', 'tblTempUsageDetail_20' ) start [2025-01-30 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362050', 'tblTempUsageDetail_20' ) end [2025-01-30 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362050', 'tblTempVendorCDR_20' ) start [2025-01-30 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362050', 'tblTempVendorCDR_20' ) end [2025-01-30 07:12:19] Production.INFO: ProcessCDR(1,14362050,1,1,2) [2025-01-30 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362050', 'tblTempUsageDetail_20' ) start [2025-01-30 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362050', 'tblTempUsageDetail_20' ) end [2025-01-30 07:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:12:24] Production.INFO: ==30821== Releasing lock... [2025-01-30 07:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:12:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:13:05 [end_date_ymd] => 2025-01-30 07:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:13:05' and `end` < '2025-01-30 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-30 07:13:18] Production.INFO: count ==291 [2025-01-30 07:13:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:13:05 - End Time 2025-01-30 07:13:05 [2025-01-30 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362055', 'tblTempUsageDetail_20' ) start [2025-01-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362055', 'tblTempUsageDetail_20' ) end [2025-01-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362055', 'tblTempVendorCDR_20' ) start [2025-01-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362055', 'tblTempVendorCDR_20' ) end [2025-01-30 07:13:18] Production.INFO: ProcessCDR(1,14362055,1,1,2) [2025-01-30 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362055', 'tblTempUsageDetail_20' ) start [2025-01-30 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362055', 'tblTempUsageDetail_20' ) end [2025-01-30 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:13:22] Production.INFO: ==30900== Releasing lock... [2025-01-30 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:14:05 [end_date_ymd] => 2025-01-30 07:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:14:05' and `end` < '2025-01-30 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-30 07:14:18] Production.INFO: count ==287 [2025-01-30 07:14:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:14:05 - End Time 2025-01-30 07:14:05 [2025-01-30 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362060', 'tblTempUsageDetail_20' ) start [2025-01-30 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362060', 'tblTempUsageDetail_20' ) end [2025-01-30 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362060', 'tblTempVendorCDR_20' ) start [2025-01-30 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362060', 'tblTempVendorCDR_20' ) end [2025-01-30 07:14:18] Production.INFO: ProcessCDR(1,14362060,1,1,2) [2025-01-30 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362060', 'tblTempUsageDetail_20' ) start [2025-01-30 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362060', 'tblTempUsageDetail_20' ) end [2025-01-30 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:14:21] Production.INFO: ==30982== Releasing lock... [2025-01-30 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:15:05 [end_date_ymd] => 2025-01-30 07:15:05 [RateCDR] => 1 ) [2025-01-30 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:15:05' and `end` < '2025-01-30 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:15:20] Production.INFO: count ==287 [2025-01-30 07:15:20] Production.ERROR: pbx CDR StartTime 2025-01-30 04:15:05 - End Time 2025-01-30 07:15:05 [2025-01-30 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362065', 'tblTempUsageDetail_20' ) start [2025-01-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362065', 'tblTempUsageDetail_20' ) end [2025-01-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362065', 'tblTempVendorCDR_20' ) start [2025-01-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362065', 'tblTempVendorCDR_20' ) end [2025-01-30 07:15:20] Production.INFO: ProcessCDR(1,14362065,1,1,2) [2025-01-30 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362065', 'tblTempUsageDetail_20' ) start [2025-01-30 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362065', 'tblTempUsageDetail_20' ) end [2025-01-30 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:15:23] Production.INFO: ==31137== Releasing lock... [2025-01-30 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:15:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:16:05 [end_date_ymd] => 2025-01-30 07:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:16:05' and `end` < '2025-01-30 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-30 07:16:19] Production.INFO: count ==287 [2025-01-30 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:16:05 - End Time 2025-01-30 07:16:05 [2025-01-30 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362070', 'tblTempUsageDetail_20' ) start [2025-01-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362070', 'tblTempUsageDetail_20' ) end [2025-01-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362070', 'tblTempVendorCDR_20' ) start [2025-01-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362070', 'tblTempVendorCDR_20' ) end [2025-01-30 07:16:19] Production.INFO: ProcessCDR(1,14362070,1,1,2) [2025-01-30 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362070', 'tblTempUsageDetail_20' ) start [2025-01-30 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362070', 'tblTempUsageDetail_20' ) end [2025-01-30 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:16:23] Production.INFO: ==31216== Releasing lock... [2025-01-30 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:16:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:17:05 [end_date_ymd] => 2025-01-30 07:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:17:05' and `end` < '2025-01-30 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-30 07:17:19] Production.INFO: count ==287 [2025-01-30 07:17:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:17:05 - End Time 2025-01-30 07:17:05 [2025-01-30 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362075', 'tblTempUsageDetail_20' ) start [2025-01-30 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362075', 'tblTempUsageDetail_20' ) end [2025-01-30 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362075', 'tblTempVendorCDR_20' ) start [2025-01-30 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362075', 'tblTempVendorCDR_20' ) end [2025-01-30 07:17:19] Production.INFO: ProcessCDR(1,14362075,1,1,2) [2025-01-30 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362075', 'tblTempUsageDetail_20' ) start [2025-01-30 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362075', 'tblTempUsageDetail_20' ) end [2025-01-30 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:17:22] Production.INFO: ==31312== Releasing lock... [2025-01-30 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:18:05 [end_date_ymd] => 2025-01-30 07:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:18:05' and `end` < '2025-01-30 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-30 07:18:19] Production.INFO: count ==287 [2025-01-30 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:18:05 - End Time 2025-01-30 07:18:05 [2025-01-30 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362080', 'tblTempUsageDetail_20' ) start [2025-01-30 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362080', 'tblTempUsageDetail_20' ) end [2025-01-30 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362080', 'tblTempVendorCDR_20' ) start [2025-01-30 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362080', 'tblTempVendorCDR_20' ) end [2025-01-30 07:18:19] Production.INFO: ProcessCDR(1,14362080,1,1,2) [2025-01-30 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362080', 'tblTempUsageDetail_20' ) start [2025-01-30 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362080', 'tblTempUsageDetail_20' ) end [2025-01-30 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:18:22] Production.INFO: ==31401== Releasing lock... [2025-01-30 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:19:05 [end_date_ymd] => 2025-01-30 07:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:19:05' and `end` < '2025-01-30 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-30 07:19:19] Production.INFO: count ==289 [2025-01-30 07:19:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:19:05 - End Time 2025-01-30 07:19:05 [2025-01-30 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362085', 'tblTempUsageDetail_20' ) start [2025-01-30 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362085', 'tblTempUsageDetail_20' ) end [2025-01-30 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362085', 'tblTempVendorCDR_20' ) start [2025-01-30 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362085', 'tblTempVendorCDR_20' ) end [2025-01-30 07:19:19] Production.INFO: ProcessCDR(1,14362085,1,1,2) [2025-01-30 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362085', 'tblTempUsageDetail_20' ) start [2025-01-30 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362085', 'tblTempUsageDetail_20' ) end [2025-01-30 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:19:22] Production.INFO: ==31482== Releasing lock... [2025-01-30 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:20:06 [end_date_ymd] => 2025-01-30 07:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 04:20:06' and `end` < '2025-01-30 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-30 07:20:19] Production.INFO: count ==287 [2025-01-30 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:20:06 - End Time 2025-01-30 07:20:06 [2025-01-30 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362091', 'tblTempUsageDetail_20' ) start [2025-01-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362091', 'tblTempUsageDetail_20' ) end [2025-01-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362091', 'tblTempVendorCDR_20' ) start [2025-01-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362091', 'tblTempVendorCDR_20' ) end [2025-01-30 07:20:19] Production.INFO: ProcessCDR(1,14362091,1,1,2) [2025-01-30 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362091', 'tblTempUsageDetail_20' ) start [2025-01-30 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362091', 'tblTempUsageDetail_20' ) end [2025-01-30 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:20:22] Production.INFO: ==31573== Releasing lock... [2025-01-30 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:21:05 [end_date_ymd] => 2025-01-30 07:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:21:05' and `end` < '2025-01-30 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-30 07:21:18] Production.INFO: count ==285 [2025-01-30 07:21:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:21:05 - End Time 2025-01-30 07:21:05 [2025-01-30 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362096', 'tblTempUsageDetail_20' ) start [2025-01-30 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362096', 'tblTempUsageDetail_20' ) end [2025-01-30 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362096', 'tblTempVendorCDR_20' ) start [2025-01-30 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362096', 'tblTempVendorCDR_20' ) end [2025-01-30 07:21:19] Production.INFO: ProcessCDR(1,14362096,1,1,2) [2025-01-30 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362096', 'tblTempUsageDetail_20' ) start [2025-01-30 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362096', 'tblTempUsageDetail_20' ) end [2025-01-30 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:21:22] Production.INFO: ==31655== Releasing lock... [2025-01-30 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:22:06 [end_date_ymd] => 2025-01-30 07:22:06 [RateCDR] => 1 ) [2025-01-30 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:22:06' and `end` < '2025-01-30 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:22:19] Production.INFO: count ==285 [2025-01-30 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:22:06 - End Time 2025-01-30 07:22:06 [2025-01-30 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362101', 'tblTempUsageDetail_20' ) start [2025-01-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362101', 'tblTempUsageDetail_20' ) end [2025-01-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362101', 'tblTempVendorCDR_20' ) start [2025-01-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362101', 'tblTempVendorCDR_20' ) end [2025-01-30 07:22:19] Production.INFO: ProcessCDR(1,14362101,1,1,2) [2025-01-30 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362101', 'tblTempUsageDetail_20' ) start [2025-01-30 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362101', 'tblTempUsageDetail_20' ) end [2025-01-30 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:22:22] Production.INFO: ==31735== Releasing lock... [2025-01-30 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:22:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:23:04 [end_date_ymd] => 2025-01-30 07:23:04 [RateCDR] => 1 ) [2025-01-30 07: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-30 04:23:04' and `end` < '2025-01-30 07: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-30 07:23:18] Production.INFO: count ==285 [2025-01-30 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:23:04 - End Time 2025-01-30 07:23:04 [2025-01-30 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362106', 'tblTempUsageDetail_20' ) start [2025-01-30 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362106', 'tblTempUsageDetail_20' ) end [2025-01-30 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362106', 'tblTempVendorCDR_20' ) start [2025-01-30 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362106', 'tblTempVendorCDR_20' ) end [2025-01-30 07:23:18] Production.INFO: ProcessCDR(1,14362106,1,1,2) [2025-01-30 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362106', 'tblTempUsageDetail_20' ) start [2025-01-30 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362106', 'tblTempUsageDetail_20' ) end [2025-01-30 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:23:21] Production.INFO: ==31815== Releasing lock... [2025-01-30 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:24:06 [end_date_ymd] => 2025-01-30 07:24:06 [RateCDR] => 1 ) [2025-01-30 07: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-30 04:24:06' and `end` < '2025-01-30 07: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-30 07:24:18] Production.INFO: count ==285 [2025-01-30 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:24:06 - End Time 2025-01-30 07:24:06 [2025-01-30 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362111', 'tblTempUsageDetail_20' ) start [2025-01-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362111', 'tblTempUsageDetail_20' ) end [2025-01-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362111', 'tblTempVendorCDR_20' ) start [2025-01-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362111', 'tblTempVendorCDR_20' ) end [2025-01-30 07:24:18] Production.INFO: ProcessCDR(1,14362111,1,1,2) [2025-01-30 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362111', 'tblTempUsageDetail_20' ) start [2025-01-30 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362111', 'tblTempUsageDetail_20' ) end [2025-01-30 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:24:21] Production.INFO: ==31896== Releasing lock... [2025-01-30 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:25:05 [end_date_ymd] => 2025-01-30 07:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:25:05' and `end` < '2025-01-30 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-30 07:25:18] Production.INFO: count ==285 [2025-01-30 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:25:05 - End Time 2025-01-30 07:25:05 [2025-01-30 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362116', 'tblTempUsageDetail_20' ) start [2025-01-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362116', 'tblTempUsageDetail_20' ) end [2025-01-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362116', 'tblTempVendorCDR_20' ) start [2025-01-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362116', 'tblTempVendorCDR_20' ) end [2025-01-30 07:25:18] Production.INFO: ProcessCDR(1,14362116,1,1,2) [2025-01-30 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362116', 'tblTempUsageDetail_20' ) start [2025-01-30 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362116', 'tblTempUsageDetail_20' ) end [2025-01-30 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:25:22] Production.INFO: ==32011== Releasing lock... [2025-01-30 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:26:05 [end_date_ymd] => 2025-01-30 07:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:26:05' and `end` < '2025-01-30 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-30 07:26:18] Production.INFO: count ==285 [2025-01-30 07:26:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:26:05 - End Time 2025-01-30 07:26:05 [2025-01-30 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362121', 'tblTempUsageDetail_20' ) start [2025-01-30 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362121', 'tblTempUsageDetail_20' ) end [2025-01-30 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362121', 'tblTempVendorCDR_20' ) start [2025-01-30 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362121', 'tblTempVendorCDR_20' ) end [2025-01-30 07:26:19] Production.INFO: ProcessCDR(1,14362121,1,1,2) [2025-01-30 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362121', 'tblTempUsageDetail_20' ) start [2025-01-30 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362121', 'tblTempUsageDetail_20' ) end [2025-01-30 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:26:21] Production.INFO: ==32094== Releasing lock... [2025-01-30 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:27:05 [end_date_ymd] => 2025-01-30 07:27:05 [RateCDR] => 1 ) [2025-01-30 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:27:05' and `end` < '2025-01-30 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:27:18] Production.INFO: count ==285 [2025-01-30 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:27:05 - End Time 2025-01-30 07:27:05 [2025-01-30 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362126', 'tblTempUsageDetail_20' ) start [2025-01-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362126', 'tblTempUsageDetail_20' ) end [2025-01-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362126', 'tblTempVendorCDR_20' ) start [2025-01-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362126', 'tblTempVendorCDR_20' ) end [2025-01-30 07:27:18] Production.INFO: ProcessCDR(1,14362126,1,1,2) [2025-01-30 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362126', 'tblTempUsageDetail_20' ) start [2025-01-30 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362126', 'tblTempUsageDetail_20' ) end [2025-01-30 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:27:21] Production.INFO: ==32169== Releasing lock... [2025-01-30 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:28:05 [end_date_ymd] => 2025-01-30 07:28:05 [RateCDR] => 1 ) [2025-01-30 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:28:05' and `end` < '2025-01-30 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:28:18] Production.INFO: count ==285 [2025-01-30 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:28:05 - End Time 2025-01-30 07:28:05 [2025-01-30 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362131', 'tblTempUsageDetail_20' ) start [2025-01-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362131', 'tblTempUsageDetail_20' ) end [2025-01-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362131', 'tblTempVendorCDR_20' ) start [2025-01-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362131', 'tblTempVendorCDR_20' ) end [2025-01-30 07:28:18] Production.INFO: ProcessCDR(1,14362131,1,1,2) [2025-01-30 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362131', 'tblTempUsageDetail_20' ) start [2025-01-30 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362131', 'tblTempUsageDetail_20' ) end [2025-01-30 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:28:21] Production.INFO: ==32250== Releasing lock... [2025-01-30 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:29:05 [end_date_ymd] => 2025-01-30 07:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:29:05' and `end` < '2025-01-30 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-30 07:29:19] Production.INFO: count ==285 [2025-01-30 07:29:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:29:05 - End Time 2025-01-30 07:29:05 [2025-01-30 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362136', 'tblTempUsageDetail_20' ) start [2025-01-30 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362136', 'tblTempUsageDetail_20' ) end [2025-01-30 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362136', 'tblTempVendorCDR_20' ) start [2025-01-30 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362136', 'tblTempVendorCDR_20' ) end [2025-01-30 07:29:19] Production.INFO: ProcessCDR(1,14362136,1,1,2) [2025-01-30 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362136', 'tblTempUsageDetail_20' ) start [2025-01-30 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362136', 'tblTempUsageDetail_20' ) end [2025-01-30 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:29:22] Production.INFO: ==32327== Releasing lock... [2025-01-30 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:30:06 [end_date_ymd] => 2025-01-30 07:30:06 [RateCDR] => 1 ) [2025-01-30 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-30 04:30:06' and `end` < '2025-01-30 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-30 07:30:18] Production.INFO: count ==280 [2025-01-30 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:30:06 - End Time 2025-01-30 07:30:06 [2025-01-30 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362142', 'tblTempUsageDetail_20' ) start [2025-01-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362142', 'tblTempUsageDetail_20' ) end [2025-01-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362142', 'tblTempVendorCDR_20' ) start [2025-01-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362142', 'tblTempVendorCDR_20' ) end [2025-01-30 07:30:18] Production.INFO: ProcessCDR(1,14362142,1,1,2) [2025-01-30 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362142', 'tblTempUsageDetail_20' ) start [2025-01-30 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362142', 'tblTempUsageDetail_20' ) end [2025-01-30 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:30:22] Production.INFO: ==32409== Releasing lock... [2025-01-30 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:31:05 [end_date_ymd] => 2025-01-30 07:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:31:05' and `end` < '2025-01-30 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-30 07:31:18] Production.INFO: count ==280 [2025-01-30 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:31:05 - End Time 2025-01-30 07:31:05 [2025-01-30 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362147', 'tblTempUsageDetail_20' ) start [2025-01-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362147', 'tblTempUsageDetail_20' ) end [2025-01-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362147', 'tblTempVendorCDR_20' ) start [2025-01-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362147', 'tblTempVendorCDR_20' ) end [2025-01-30 07:31:18] Production.INFO: ProcessCDR(1,14362147,1,1,2) [2025-01-30 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362147', 'tblTempUsageDetail_20' ) start [2025-01-30 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362147', 'tblTempUsageDetail_20' ) end [2025-01-30 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:31:21] Production.INFO: ==32492== Releasing lock... [2025-01-30 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:32:05 [end_date_ymd] => 2025-01-30 07:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:32:05' and `end` < '2025-01-30 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-30 07:32:19] Production.INFO: count ==280 [2025-01-30 07:32:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:32:05 - End Time 2025-01-30 07:32:05 [2025-01-30 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362152', 'tblTempUsageDetail_20' ) start [2025-01-30 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362152', 'tblTempUsageDetail_20' ) end [2025-01-30 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362152', 'tblTempVendorCDR_20' ) start [2025-01-30 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362152', 'tblTempVendorCDR_20' ) end [2025-01-30 07:32:19] Production.INFO: ProcessCDR(1,14362152,1,1,2) [2025-01-30 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362152', 'tblTempUsageDetail_20' ) start [2025-01-30 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362152', 'tblTempUsageDetail_20' ) end [2025-01-30 07:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:32:23] Production.INFO: ==32570== Releasing lock... [2025-01-30 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:32:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:33:05 [end_date_ymd] => 2025-01-30 07:33:05 [RateCDR] => 1 ) [2025-01-30 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:33:05' and `end` < '2025-01-30 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:33:18] Production.INFO: count ==280 [2025-01-30 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:33:05 - End Time 2025-01-30 07:33:05 [2025-01-30 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362157', 'tblTempUsageDetail_20' ) start [2025-01-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362157', 'tblTempUsageDetail_20' ) end [2025-01-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362157', 'tblTempVendorCDR_20' ) start [2025-01-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362157', 'tblTempVendorCDR_20' ) end [2025-01-30 07:33:18] Production.INFO: ProcessCDR(1,14362157,1,1,2) [2025-01-30 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362157', 'tblTempUsageDetail_20' ) start [2025-01-30 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362157', 'tblTempUsageDetail_20' ) end [2025-01-30 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:33:21] Production.INFO: ==32648== Releasing lock... [2025-01-30 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:34:05 [end_date_ymd] => 2025-01-30 07:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:34:05' and `end` < '2025-01-30 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-30 07:34:18] Production.INFO: count ==280 [2025-01-30 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:34:05 - End Time 2025-01-30 07:34:05 [2025-01-30 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362162', 'tblTempUsageDetail_20' ) start [2025-01-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362162', 'tblTempUsageDetail_20' ) end [2025-01-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362162', 'tblTempVendorCDR_20' ) start [2025-01-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362162', 'tblTempVendorCDR_20' ) end [2025-01-30 07:34:18] Production.INFO: ProcessCDR(1,14362162,1,1,2) [2025-01-30 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362162', 'tblTempUsageDetail_20' ) start [2025-01-30 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362162', 'tblTempUsageDetail_20' ) end [2025-01-30 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:34:21] Production.INFO: ==32745== Releasing lock... [2025-01-30 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:35:05 [end_date_ymd] => 2025-01-30 07:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:35:05' and `end` < '2025-01-30 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-30 07:35:18] Production.INFO: count ==280 [2025-01-30 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:35:05 - End Time 2025-01-30 07:35:05 [2025-01-30 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362167', 'tblTempUsageDetail_20' ) start [2025-01-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362167', 'tblTempUsageDetail_20' ) end [2025-01-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362167', 'tblTempVendorCDR_20' ) start [2025-01-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362167', 'tblTempVendorCDR_20' ) end [2025-01-30 07:35:18] Production.INFO: ProcessCDR(1,14362167,1,1,2) [2025-01-30 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362167', 'tblTempUsageDetail_20' ) start [2025-01-30 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362167', 'tblTempUsageDetail_20' ) end [2025-01-30 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:35:21] Production.INFO: ==377== Releasing lock... [2025-01-30 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:36:05 [end_date_ymd] => 2025-01-30 07:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:36:05' and `end` < '2025-01-30 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-30 07:36:18] Production.INFO: count ==281 [2025-01-30 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:36:05 - End Time 2025-01-30 07:36:05 [2025-01-30 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362172', 'tblTempUsageDetail_20' ) start [2025-01-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362172', 'tblTempUsageDetail_20' ) end [2025-01-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362172', 'tblTempVendorCDR_20' ) start [2025-01-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362172', 'tblTempVendorCDR_20' ) end [2025-01-30 07:36:18] Production.INFO: ProcessCDR(1,14362172,1,1,2) [2025-01-30 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362172', 'tblTempUsageDetail_20' ) start [2025-01-30 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362172', 'tblTempUsageDetail_20' ) end [2025-01-30 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:36:21] Production.INFO: ==451== Releasing lock... [2025-01-30 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:37:05 [end_date_ymd] => 2025-01-30 07:37:05 [RateCDR] => 1 ) [2025-01-30 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:37:05' and `end` < '2025-01-30 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:37:18] Production.INFO: count ==281 [2025-01-30 07:37:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:37:05 - End Time 2025-01-30 07:37:05 [2025-01-30 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362177', 'tblTempUsageDetail_20' ) start [2025-01-30 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362177', 'tblTempUsageDetail_20' ) end [2025-01-30 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362177', 'tblTempVendorCDR_20' ) start [2025-01-30 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362177', 'tblTempVendorCDR_20' ) end [2025-01-30 07:37:19] Production.INFO: ProcessCDR(1,14362177,1,1,2) [2025-01-30 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362177', 'tblTempUsageDetail_20' ) start [2025-01-30 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362177', 'tblTempUsageDetail_20' ) end [2025-01-30 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:37:21] Production.INFO: ==543== Releasing lock... [2025-01-30 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:38:05 [end_date_ymd] => 2025-01-30 07:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:38:05' and `end` < '2025-01-30 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-30 07:38:18] Production.INFO: count ==281 [2025-01-30 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:38:05 - End Time 2025-01-30 07:38:05 [2025-01-30 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362182', 'tblTempUsageDetail_20' ) start [2025-01-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362182', 'tblTempUsageDetail_20' ) end [2025-01-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362182', 'tblTempVendorCDR_20' ) start [2025-01-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362182', 'tblTempVendorCDR_20' ) end [2025-01-30 07:38:18] Production.INFO: ProcessCDR(1,14362182,1,1,2) [2025-01-30 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362182', 'tblTempUsageDetail_20' ) start [2025-01-30 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362182', 'tblTempUsageDetail_20' ) end [2025-01-30 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:38:21] Production.INFO: ==634== Releasing lock... [2025-01-30 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:39:05 [end_date_ymd] => 2025-01-30 07:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:39:05' and `end` < '2025-01-30 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-30 07:39:19] Production.INFO: count ==281 [2025-01-30 07:39:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:39:05 - End Time 2025-01-30 07:39:05 [2025-01-30 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362187', 'tblTempUsageDetail_20' ) start [2025-01-30 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362187', 'tblTempUsageDetail_20' ) end [2025-01-30 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362187', 'tblTempVendorCDR_20' ) start [2025-01-30 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362187', 'tblTempVendorCDR_20' ) end [2025-01-30 07:39:19] Production.INFO: ProcessCDR(1,14362187,1,1,2) [2025-01-30 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362187', 'tblTempUsageDetail_20' ) start [2025-01-30 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362187', 'tblTempUsageDetail_20' ) end [2025-01-30 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:39:21] Production.INFO: ==737== Releasing lock... [2025-01-30 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:40:06 [end_date_ymd] => 2025-01-30 07:40:06 [RateCDR] => 1 ) [2025-01-30 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:40:06' and `end` < '2025-01-30 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:40:19] Production.INFO: count ==286 [2025-01-30 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:40:06 - End Time 2025-01-30 07:40:06 [2025-01-30 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362192', 'tblTempUsageDetail_20' ) start [2025-01-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362192', 'tblTempUsageDetail_20' ) end [2025-01-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362192', 'tblTempVendorCDR_20' ) start [2025-01-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362192', 'tblTempVendorCDR_20' ) end [2025-01-30 07:40:19] Production.INFO: ProcessCDR(1,14362192,1,1,2) [2025-01-30 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362192', 'tblTempUsageDetail_20' ) start [2025-01-30 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362192', 'tblTempUsageDetail_20' ) end [2025-01-30 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:40:22] Production.INFO: ==861== Releasing lock... [2025-01-30 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:41:05 [end_date_ymd] => 2025-01-30 07:41:05 [RateCDR] => 1 ) [2025-01-30 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:41:05' and `end` < '2025-01-30 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:41:19] Production.INFO: count ==301 [2025-01-30 07:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:41:05 - End Time 2025-01-30 07:41:05 [2025-01-30 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362198', 'tblTempUsageDetail_20' ) start [2025-01-30 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362198', 'tblTempUsageDetail_20' ) end [2025-01-30 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362198', 'tblTempVendorCDR_20' ) start [2025-01-30 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362198', 'tblTempVendorCDR_20' ) end [2025-01-30 07:41:19] Production.INFO: ProcessCDR(1,14362198,1,1,2) [2025-01-30 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362198', 'tblTempUsageDetail_20' ) start [2025-01-30 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362198', 'tblTempUsageDetail_20' ) end [2025-01-30 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:41:22] Production.INFO: ==940== Releasing lock... [2025-01-30 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:42:05 [end_date_ymd] => 2025-01-30 07:42:05 [RateCDR] => 1 ) [2025-01-30 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:42:05' and `end` < '2025-01-30 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:42:18] Production.INFO: count ==302 [2025-01-30 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:42:05 - End Time 2025-01-30 07:42:05 [2025-01-30 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362203', 'tblTempUsageDetail_20' ) start [2025-01-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362203', 'tblTempUsageDetail_20' ) end [2025-01-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362203', 'tblTempVendorCDR_20' ) start [2025-01-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362203', 'tblTempVendorCDR_20' ) end [2025-01-30 07:42:18] Production.INFO: ProcessCDR(1,14362203,1,1,2) [2025-01-30 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362203', 'tblTempUsageDetail_20' ) start [2025-01-30 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362203', 'tblTempUsageDetail_20' ) end [2025-01-30 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:42:21] Production.INFO: ==1021== Releasing lock... [2025-01-30 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:42:21] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:43:05 [end_date_ymd] => 2025-01-30 07:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:43:05' and `end` < '2025-01-30 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-30 07:43:18] Production.INFO: count ==307 [2025-01-30 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:43:05 - End Time 2025-01-30 07:43:05 [2025-01-30 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362208', 'tblTempUsageDetail_20' ) start [2025-01-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362208', 'tblTempUsageDetail_20' ) end [2025-01-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362208', 'tblTempVendorCDR_20' ) start [2025-01-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362208', 'tblTempVendorCDR_20' ) end [2025-01-30 07:43:18] Production.INFO: ProcessCDR(1,14362208,1,1,2) [2025-01-30 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362208', 'tblTempUsageDetail_20' ) start [2025-01-30 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362208', 'tblTempUsageDetail_20' ) end [2025-01-30 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:43:21] Production.INFO: ==1100== Releasing lock... [2025-01-30 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:44:05 [end_date_ymd] => 2025-01-30 07:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:44:05' and `end` < '2025-01-30 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-30 07:44:19] Production.INFO: count ==307 [2025-01-30 07:44:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:44:05 - End Time 2025-01-30 07:44:05 [2025-01-30 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362213', 'tblTempUsageDetail_20' ) start [2025-01-30 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362213', 'tblTempUsageDetail_20' ) end [2025-01-30 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362213', 'tblTempVendorCDR_20' ) start [2025-01-30 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362213', 'tblTempVendorCDR_20' ) end [2025-01-30 07:44:19] Production.INFO: ProcessCDR(1,14362213,1,1,2) [2025-01-30 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362213', 'tblTempUsageDetail_20' ) start [2025-01-30 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362213', 'tblTempUsageDetail_20' ) end [2025-01-30 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:44:22] Production.INFO: ==1189== Releasing lock... [2025-01-30 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:45:05 [end_date_ymd] => 2025-01-30 07:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:45:05' and `end` < '2025-01-30 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-30 07:45:17] Production.INFO: count ==308 [2025-01-30 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:45:05 - End Time 2025-01-30 07:45:05 [2025-01-30 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362218', 'tblTempUsageDetail_20' ) start [2025-01-30 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362218', 'tblTempUsageDetail_20' ) end [2025-01-30 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362218', 'tblTempVendorCDR_20' ) start [2025-01-30 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362218', 'tblTempVendorCDR_20' ) end [2025-01-30 07:45:18] Production.INFO: ProcessCDR(1,14362218,1,1,2) [2025-01-30 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362218', 'tblTempUsageDetail_20' ) start [2025-01-30 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362218', 'tblTempUsageDetail_20' ) end [2025-01-30 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:45:21] Production.INFO: ==1279== Releasing lock... [2025-01-30 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:46:05 [end_date_ymd] => 2025-01-30 07:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:46:05' and `end` < '2025-01-30 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-30 07:46:18] Production.INFO: count ==313 [2025-01-30 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:46:05 - End Time 2025-01-30 07:46:05 [2025-01-30 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362223', 'tblTempUsageDetail_20' ) start [2025-01-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362223', 'tblTempUsageDetail_20' ) end [2025-01-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362223', 'tblTempVendorCDR_20' ) start [2025-01-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362223', 'tblTempVendorCDR_20' ) end [2025-01-30 07:46:18] Production.INFO: ProcessCDR(1,14362223,1,1,2) [2025-01-30 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362223', 'tblTempUsageDetail_20' ) start [2025-01-30 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362223', 'tblTempUsageDetail_20' ) end [2025-01-30 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:46:21] Production.INFO: ==1357== Releasing lock... [2025-01-30 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:46:21] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:47:05 [end_date_ymd] => 2025-01-30 07:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:47:05' and `end` < '2025-01-30 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-30 07:47:18] Production.INFO: count ==313 [2025-01-30 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:47:05 - End Time 2025-01-30 07:47:05 [2025-01-30 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362228', 'tblTempUsageDetail_20' ) start [2025-01-30 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362228', 'tblTempUsageDetail_20' ) end [2025-01-30 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362228', 'tblTempVendorCDR_20' ) start [2025-01-30 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362228', 'tblTempVendorCDR_20' ) end [2025-01-30 07:47:18] Production.INFO: ProcessCDR(1,14362228,1,1,2) [2025-01-30 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362228', 'tblTempUsageDetail_20' ) start [2025-01-30 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362228', 'tblTempUsageDetail_20' ) end [2025-01-30 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:47:21] Production.INFO: ==1437== Releasing lock... [2025-01-30 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:47:21] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:48:05 [end_date_ymd] => 2025-01-30 07:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:48:05' and `end` < '2025-01-30 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-30 07:48:18] Production.INFO: count ==313 [2025-01-30 07:48:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:48:05 - End Time 2025-01-30 07:48:05 [2025-01-30 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362233', 'tblTempUsageDetail_20' ) start [2025-01-30 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362233', 'tblTempUsageDetail_20' ) end [2025-01-30 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362233', 'tblTempVendorCDR_20' ) start [2025-01-30 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362233', 'tblTempVendorCDR_20' ) end [2025-01-30 07:48:19] Production.INFO: ProcessCDR(1,14362233,1,1,2) [2025-01-30 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362233', 'tblTempUsageDetail_20' ) start [2025-01-30 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362233', 'tblTempUsageDetail_20' ) end [2025-01-30 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:48:21] Production.INFO: ==1550== Releasing lock... [2025-01-30 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:48:21] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:49:06 [end_date_ymd] => 2025-01-30 07:49:06 [RateCDR] => 1 ) [2025-01-30 07:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:49:06' and `end` < '2025-01-30 07:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:49:20] Production.INFO: count ==314 [2025-01-30 07:49:20] Production.ERROR: pbx CDR StartTime 2025-01-30 04:49:06 - End Time 2025-01-30 07:49:06 [2025-01-30 07:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362238', 'tblTempUsageDetail_20' ) start [2025-01-30 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362238', 'tblTempUsageDetail_20' ) end [2025-01-30 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362238', 'tblTempVendorCDR_20' ) start [2025-01-30 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362238', 'tblTempVendorCDR_20' ) end [2025-01-30 07:49:20] Production.INFO: ProcessCDR(1,14362238,1,1,2) [2025-01-30 07:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362238', 'tblTempUsageDetail_20' ) start [2025-01-30 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362238', 'tblTempUsageDetail_20' ) end [2025-01-30 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:49:22] Production.INFO: ==1636== Releasing lock... [2025-01-30 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:49:22] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:50:05 [end_date_ymd] => 2025-01-30 07:50:05 [RateCDR] => 1 ) [2025-01-30 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:50:05' and `end` < '2025-01-30 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:50:18] Production.INFO: count ==316 [2025-01-30 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:50:05 - End Time 2025-01-30 07:50:05 [2025-01-30 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362244', 'tblTempUsageDetail_20' ) start [2025-01-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362244', 'tblTempUsageDetail_20' ) end [2025-01-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362244', 'tblTempVendorCDR_20' ) start [2025-01-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362244', 'tblTempVendorCDR_20' ) end [2025-01-30 07:50:18] Production.INFO: ProcessCDR(1,14362244,1,1,2) [2025-01-30 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362244', 'tblTempUsageDetail_20' ) start [2025-01-30 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362244', 'tblTempUsageDetail_20' ) end [2025-01-30 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:50:22] Production.INFO: ==1713== Releasing lock... [2025-01-30 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:51:05 [end_date_ymd] => 2025-01-30 07:51:05 [RateCDR] => 1 ) [2025-01-30 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:51:05' and `end` < '2025-01-30 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:51:19] Production.INFO: count ==320 [2025-01-30 07:51:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:51:05 - End Time 2025-01-30 07:51:05 [2025-01-30 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362249', 'tblTempUsageDetail_20' ) start [2025-01-30 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362249', 'tblTempUsageDetail_20' ) end [2025-01-30 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362249', 'tblTempVendorCDR_20' ) start [2025-01-30 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362249', 'tblTempVendorCDR_20' ) end [2025-01-30 07:51:19] Production.INFO: ProcessCDR(1,14362249,1,1,2) [2025-01-30 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362249', 'tblTempUsageDetail_20' ) start [2025-01-30 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362249', 'tblTempUsageDetail_20' ) end [2025-01-30 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:51:22] Production.INFO: ==1795== Releasing lock... [2025-01-30 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:52:04 [end_date_ymd] => 2025-01-30 07:52:04 [RateCDR] => 1 ) [2025-01-30 07: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-30 04:52:04' and `end` < '2025-01-30 07: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-30 07:52:17] Production.INFO: count ==320 [2025-01-30 07:52:17] Production.ERROR: pbx CDR StartTime 2025-01-30 04:52:04 - End Time 2025-01-30 07:52:04 [2025-01-30 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362254', 'tblTempUsageDetail_20' ) start [2025-01-30 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362254', 'tblTempUsageDetail_20' ) end [2025-01-30 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362254', 'tblTempVendorCDR_20' ) start [2025-01-30 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362254', 'tblTempVendorCDR_20' ) end [2025-01-30 07:52:17] Production.INFO: ProcessCDR(1,14362254,1,1,2) [2025-01-30 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362254', 'tblTempUsageDetail_20' ) start [2025-01-30 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362254', 'tblTempUsageDetail_20' ) end [2025-01-30 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:52:20] Production.INFO: ==1878== Releasing lock... [2025-01-30 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:52:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:53:05 [end_date_ymd] => 2025-01-30 07:53:05 [RateCDR] => 1 ) [2025-01-30 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:53:05' and `end` < '2025-01-30 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:53:18] Production.INFO: count ==320 [2025-01-30 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:53:05 - End Time 2025-01-30 07:53:05 [2025-01-30 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362259', 'tblTempUsageDetail_20' ) start [2025-01-30 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362259', 'tblTempUsageDetail_20' ) end [2025-01-30 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362259', 'tblTempVendorCDR_20' ) start [2025-01-30 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362259', 'tblTempVendorCDR_20' ) end [2025-01-30 07:53:18] Production.INFO: ProcessCDR(1,14362259,1,1,2) [2025-01-30 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362259', 'tblTempUsageDetail_20' ) start [2025-01-30 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362259', 'tblTempUsageDetail_20' ) end [2025-01-30 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:53:21] Production.INFO: ==1966== Releasing lock... [2025-01-30 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:54:05 [end_date_ymd] => 2025-01-30 07:54:05 [RateCDR] => 1 ) [2025-01-30 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:54:05' and `end` < '2025-01-30 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:54:19] Production.INFO: count ==321 [2025-01-30 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:54:05 - End Time 2025-01-30 07:54:05 [2025-01-30 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362264', 'tblTempUsageDetail_20' ) start [2025-01-30 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362264', 'tblTempUsageDetail_20' ) end [2025-01-30 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362264', 'tblTempVendorCDR_20' ) start [2025-01-30 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362264', 'tblTempVendorCDR_20' ) end [2025-01-30 07:54:19] Production.INFO: ProcessCDR(1,14362264,1,1,2) [2025-01-30 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362264', 'tblTempUsageDetail_20' ) start [2025-01-30 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362264', 'tblTempUsageDetail_20' ) end [2025-01-30 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:54:23] Production.INFO: ==2043== Releasing lock... [2025-01-30 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:54:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:55:05 [end_date_ymd] => 2025-01-30 07:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:55:05' and `end` < '2025-01-30 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-30 07:55:17] Production.INFO: count ==321 [2025-01-30 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-30 04:55:05 - End Time 2025-01-30 07:55:05 [2025-01-30 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362269', 'tblTempUsageDetail_20' ) start [2025-01-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362269', 'tblTempUsageDetail_20' ) end [2025-01-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362269', 'tblTempVendorCDR_20' ) start [2025-01-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362269', 'tblTempVendorCDR_20' ) end [2025-01-30 07:55:17] Production.INFO: ProcessCDR(1,14362269,1,1,2) [2025-01-30 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362269', 'tblTempUsageDetail_20' ) start [2025-01-30 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362269', 'tblTempUsageDetail_20' ) end [2025-01-30 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:55:20] Production.INFO: ==2122== Releasing lock... [2025-01-30 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:55:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:56:05 [end_date_ymd] => 2025-01-30 07:56:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:56:05' and `end` < '2025-01-30 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-30 07:56:19] Production.INFO: count ==323 [2025-01-30 07:56:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:56:05 - End Time 2025-01-30 07:56:05 [2025-01-30 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362274', 'tblTempUsageDetail_20' ) start [2025-01-30 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362274', 'tblTempUsageDetail_20' ) end [2025-01-30 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362274', 'tblTempVendorCDR_20' ) start [2025-01-30 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362274', 'tblTempVendorCDR_20' ) end [2025-01-30 07:56:19] Production.INFO: ProcessCDR(1,14362274,1,1,2) [2025-01-30 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362274', 'tblTempUsageDetail_20' ) start [2025-01-30 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362274', 'tblTempUsageDetail_20' ) end [2025-01-30 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:56:23] Production.INFO: ==2246== Releasing lock... [2025-01-30 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:56:23] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:57:05 [end_date_ymd] => 2025-01-30 07:57:05 [RateCDR] => 1 ) [2025-01-30 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:57:05' and `end` < '2025-01-30 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:57:19] Production.INFO: count ==323 [2025-01-30 07:57:19] Production.ERROR: pbx CDR StartTime 2025-01-30 04:57:05 - End Time 2025-01-30 07:57:05 [2025-01-30 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362279', 'tblTempUsageDetail_20' ) start [2025-01-30 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362279', 'tblTempUsageDetail_20' ) end [2025-01-30 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362279', 'tblTempVendorCDR_20' ) start [2025-01-30 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362279', 'tblTempVendorCDR_20' ) end [2025-01-30 07:57:19] Production.INFO: ProcessCDR(1,14362279,1,1,2) [2025-01-30 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362279', 'tblTempUsageDetail_20' ) start [2025-01-30 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362279', 'tblTempUsageDetail_20' ) end [2025-01-30 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:57:22] Production.INFO: ==2322== Releasing lock... [2025-01-30 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:57:22] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:58:06 [end_date_ymd] => 2025-01-30 07:58:06 [RateCDR] => 1 ) [2025-01-30 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 04:58:06' and `end` < '2025-01-30 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 07:58:18] Production.INFO: count ==324 [2025-01-30 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:58:06 - End Time 2025-01-30 07:58:06 [2025-01-30 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362284', 'tblTempUsageDetail_20' ) start [2025-01-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362284', 'tblTempUsageDetail_20' ) end [2025-01-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362284', 'tblTempVendorCDR_20' ) start [2025-01-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362284', 'tblTempVendorCDR_20' ) end [2025-01-30 07:58:18] Production.INFO: ProcessCDR(1,14362284,1,1,2) [2025-01-30 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362284', 'tblTempUsageDetail_20' ) start [2025-01-30 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362284', 'tblTempUsageDetail_20' ) end [2025-01-30 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:58:22] Production.INFO: ==2400== Releasing lock... [2025-01-30 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:58:22] Production.INFO: 31 MB #Memory Used# [2025-01-30 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 04:59:05 [end_date_ymd] => 2025-01-30 07:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 04:59:05' and `end` < '2025-01-30 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-30 07:59:17] Production.INFO: count ==329 [2025-01-30 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-30 04:59:05 - End Time 2025-01-30 07:59:05 [2025-01-30 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362289', 'tblTempUsageDetail_20' ) start [2025-01-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362289', 'tblTempUsageDetail_20' ) end [2025-01-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362289', 'tblTempVendorCDR_20' ) start [2025-01-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362289', 'tblTempVendorCDR_20' ) end [2025-01-30 07:59:18] Production.INFO: ProcessCDR(1,14362289,1,1,2) [2025-01-30 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362289', 'tblTempUsageDetail_20' ) start [2025-01-30 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362289', 'tblTempUsageDetail_20' ) end [2025-01-30 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 07:59:21] Production.INFO: ==2476== Releasing lock... [2025-01-30 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 07:59:21] Production.INFO: 31 MB #Memory Used# [2025-01-30 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:00:06 [end_date_ymd] => 2025-01-30 08:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 05:00:06' and `end` < '2025-01-30 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-30 08:00:19] Production.INFO: count ==311 [2025-01-30 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:00:06 - End Time 2025-01-30 08:00:06 [2025-01-30 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362295', 'tblTempUsageDetail_20' ) start [2025-01-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362295', 'tblTempUsageDetail_20' ) end [2025-01-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362295', 'tblTempVendorCDR_20' ) start [2025-01-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362295', 'tblTempVendorCDR_20' ) end [2025-01-30 08:00:19] Production.INFO: ProcessCDR(1,14362295,1,1,2) [2025-01-30 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362295', 'tblTempUsageDetail_20' ) start [2025-01-30 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362295', 'tblTempUsageDetail_20' ) end [2025-01-30 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:00:22] Production.INFO: ==2553== Releasing lock... [2025-01-30 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:01:05 [end_date_ymd] => 2025-01-30 08:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:01:05' and `end` < '2025-01-30 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-30 08:01:18] Production.INFO: count ==291 [2025-01-30 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:01:05 - End Time 2025-01-30 08:01:05 [2025-01-30 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362300', 'tblTempUsageDetail_20' ) start [2025-01-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362300', 'tblTempUsageDetail_20' ) end [2025-01-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362300', 'tblTempVendorCDR_20' ) start [2025-01-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362300', 'tblTempVendorCDR_20' ) end [2025-01-30 08:01:18] Production.INFO: ProcessCDR(1,14362300,1,1,2) [2025-01-30 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362300', 'tblTempUsageDetail_20' ) start [2025-01-30 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362300', 'tblTempUsageDetail_20' ) end [2025-01-30 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:01:21] Production.INFO: ==2645== Releasing lock... [2025-01-30 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:02:05 [end_date_ymd] => 2025-01-30 08:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:02:05' and `end` < '2025-01-30 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-30 08:02:19] Production.INFO: count ==273 [2025-01-30 08:02:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:02:05 - End Time 2025-01-30 08:02:05 [2025-01-30 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362305', 'tblTempUsageDetail_20' ) start [2025-01-30 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362305', 'tblTempUsageDetail_20' ) end [2025-01-30 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362305', 'tblTempVendorCDR_20' ) start [2025-01-30 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362305', 'tblTempVendorCDR_20' ) end [2025-01-30 08:02:19] Production.INFO: ProcessCDR(1,14362305,1,1,2) [2025-01-30 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362305', 'tblTempUsageDetail_20' ) start [2025-01-30 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362305', 'tblTempUsageDetail_20' ) end [2025-01-30 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:02:23] Production.INFO: ==2735== Releasing lock... [2025-01-30 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:02:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:03:05 [end_date_ymd] => 2025-01-30 08:03:05 [RateCDR] => 1 ) [2025-01-30 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:03:05' and `end` < '2025-01-30 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:03:19] Production.INFO: count ==245 [2025-01-30 08:03:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:03:05 - End Time 2025-01-30 08:03:05 [2025-01-30 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362310', 'tblTempUsageDetail_20' ) start [2025-01-30 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362310', 'tblTempUsageDetail_20' ) end [2025-01-30 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362310', 'tblTempVendorCDR_20' ) start [2025-01-30 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362310', 'tblTempVendorCDR_20' ) end [2025-01-30 08:03:19] Production.INFO: ProcessCDR(1,14362310,1,1,2) [2025-01-30 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362310', 'tblTempUsageDetail_20' ) start [2025-01-30 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362310', 'tblTempUsageDetail_20' ) end [2025-01-30 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:03:22] Production.INFO: ==2828== Releasing lock... [2025-01-30 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-30 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:04:06 [end_date_ymd] => 2025-01-30 08:04:06 [RateCDR] => 1 ) [2025-01-30 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:04:06' and `end` < '2025-01-30 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:04:20] Production.INFO: count ==246 [2025-01-30 08:04:20] Production.ERROR: pbx CDR StartTime 2025-01-30 05:04:06 - End Time 2025-01-30 08:04:06 [2025-01-30 08:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362315', 'tblTempUsageDetail_20' ) start [2025-01-30 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362315', 'tblTempUsageDetail_20' ) end [2025-01-30 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362315', 'tblTempVendorCDR_20' ) start [2025-01-30 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362315', 'tblTempVendorCDR_20' ) end [2025-01-30 08:04:20] Production.INFO: ProcessCDR(1,14362315,1,1,2) [2025-01-30 08:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362315', 'tblTempUsageDetail_20' ) start [2025-01-30 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362315', 'tblTempUsageDetail_20' ) end [2025-01-30 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:04:23] Production.INFO: ==2927== Releasing lock... [2025-01-30 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:04:23] Production.INFO: 30 MB #Memory Used# [2025-01-30 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:05:04 [end_date_ymd] => 2025-01-30 08:05:04 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:05:04' and `end` < '2025-01-30 08: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-30 08:05:17] Production.INFO: count ==248 [2025-01-30 08:05:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:05:04 - End Time 2025-01-30 08:05:04 [2025-01-30 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362320', 'tblTempUsageDetail_20' ) start [2025-01-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362320', 'tblTempUsageDetail_20' ) end [2025-01-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362320', 'tblTempVendorCDR_20' ) start [2025-01-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362320', 'tblTempVendorCDR_20' ) end [2025-01-30 08:05:17] Production.INFO: ProcessCDR(1,14362320,1,1,2) [2025-01-30 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362320', 'tblTempUsageDetail_20' ) start [2025-01-30 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362320', 'tblTempUsageDetail_20' ) end [2025-01-30 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:05:20] Production.INFO: ==3016== Releasing lock... [2025-01-30 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:05:20] Production.INFO: 30 MB #Memory Used# [2025-01-30 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:06:05 [end_date_ymd] => 2025-01-30 08:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:06:05' and `end` < '2025-01-30 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-30 08:06:19] Production.INFO: count ==267 [2025-01-30 08:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:06:05 - End Time 2025-01-30 08:06:05 [2025-01-30 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362325', 'tblTempUsageDetail_20' ) start [2025-01-30 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362325', 'tblTempUsageDetail_20' ) end [2025-01-30 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362325', 'tblTempVendorCDR_20' ) start [2025-01-30 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362325', 'tblTempVendorCDR_20' ) end [2025-01-30 08:06:19] Production.INFO: ProcessCDR(1,14362325,1,1,2) [2025-01-30 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362325', 'tblTempUsageDetail_20' ) start [2025-01-30 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362325', 'tblTempUsageDetail_20' ) end [2025-01-30 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:06:23] Production.INFO: ==3112== Releasing lock... [2025-01-30 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:06:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:07:04 [end_date_ymd] => 2025-01-30 08:07:04 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:07:04' and `end` < '2025-01-30 08: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-30 08:07:17] Production.INFO: count ==268 [2025-01-30 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:07:04 - End Time 2025-01-30 08:07:04 [2025-01-30 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362330', 'tblTempUsageDetail_20' ) start [2025-01-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362330', 'tblTempUsageDetail_20' ) end [2025-01-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362330', 'tblTempVendorCDR_20' ) start [2025-01-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362330', 'tblTempVendorCDR_20' ) end [2025-01-30 08:07:17] Production.INFO: ProcessCDR(1,14362330,1,1,2) [2025-01-30 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362330', 'tblTempUsageDetail_20' ) start [2025-01-30 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362330', 'tblTempUsageDetail_20' ) end [2025-01-30 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:07:20] Production.INFO: ==3222== Releasing lock... [2025-01-30 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:08:05 [end_date_ymd] => 2025-01-30 08:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:08:05' and `end` < '2025-01-30 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-30 08:08:18] Production.INFO: count ==274 [2025-01-30 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:08:05 - End Time 2025-01-30 08:08:05 [2025-01-30 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362335', 'tblTempUsageDetail_20' ) start [2025-01-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362335', 'tblTempUsageDetail_20' ) end [2025-01-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362335', 'tblTempVendorCDR_20' ) start [2025-01-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362335', 'tblTempVendorCDR_20' ) end [2025-01-30 08:08:18] Production.INFO: ProcessCDR(1,14362335,1,1,2) [2025-01-30 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362335', 'tblTempUsageDetail_20' ) start [2025-01-30 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362335', 'tblTempUsageDetail_20' ) end [2025-01-30 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:08:21] Production.INFO: ==3328== Releasing lock... [2025-01-30 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:09:05 [end_date_ymd] => 2025-01-30 08:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:09:05' and `end` < '2025-01-30 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-30 08:09:17] Production.INFO: count ==270 [2025-01-30 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:09:05 - End Time 2025-01-30 08:09:05 [2025-01-30 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362340', 'tblTempUsageDetail_20' ) start [2025-01-30 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362340', 'tblTempUsageDetail_20' ) end [2025-01-30 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362340', 'tblTempVendorCDR_20' ) start [2025-01-30 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362340', 'tblTempVendorCDR_20' ) end [2025-01-30 08:09:18] Production.INFO: ProcessCDR(1,14362340,1,1,2) [2025-01-30 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362340', 'tblTempUsageDetail_20' ) start [2025-01-30 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362340', 'tblTempUsageDetail_20' ) end [2025-01-30 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:09:21] Production.INFO: ==3429== Releasing lock... [2025-01-30 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:10:06 [end_date_ymd] => 2025-01-30 08:10:06 [RateCDR] => 1 ) [2025-01-30 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:10:06' and `end` < '2025-01-30 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:10:19] Production.INFO: count ==277 [2025-01-30 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:10:06 - End Time 2025-01-30 08:10:06 [2025-01-30 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362346', 'tblTempUsageDetail_20' ) start [2025-01-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362346', 'tblTempUsageDetail_20' ) end [2025-01-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362346', 'tblTempVendorCDR_20' ) start [2025-01-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362346', 'tblTempVendorCDR_20' ) end [2025-01-30 08:10:19] Production.INFO: ProcessCDR(1,14362346,1,1,2) [2025-01-30 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362346', 'tblTempUsageDetail_20' ) start [2025-01-30 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362346', 'tblTempUsageDetail_20' ) end [2025-01-30 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:10:23] Production.INFO: ==3509== Releasing lock... [2025-01-30 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:10:23] Production.INFO: 30 MB #Memory Used# [2025-01-30 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:11:05 [end_date_ymd] => 2025-01-30 08:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:11:05' and `end` < '2025-01-30 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-30 08:11:18] Production.INFO: count ==314 [2025-01-30 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:11:05 - End Time 2025-01-30 08:11:05 [2025-01-30 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362351', 'tblTempUsageDetail_20' ) start [2025-01-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362351', 'tblTempUsageDetail_20' ) end [2025-01-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362351', 'tblTempVendorCDR_20' ) start [2025-01-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362351', 'tblTempVendorCDR_20' ) end [2025-01-30 08:11:18] Production.INFO: ProcessCDR(1,14362351,1,1,2) [2025-01-30 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362351', 'tblTempUsageDetail_20' ) start [2025-01-30 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362351', 'tblTempUsageDetail_20' ) end [2025-01-30 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:11:22] Production.INFO: ==3620== Releasing lock... [2025-01-30 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:12:05 [end_date_ymd] => 2025-01-30 08:12:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:12:05' and `end` < '2025-01-30 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-30 08:12:18] Production.INFO: count ==311 [2025-01-30 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:12:05 - End Time 2025-01-30 08:12:05 [2025-01-30 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362356', 'tblTempUsageDetail_20' ) start [2025-01-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362356', 'tblTempUsageDetail_20' ) end [2025-01-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362356', 'tblTempVendorCDR_20' ) start [2025-01-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362356', 'tblTempVendorCDR_20' ) end [2025-01-30 08:12:18] Production.INFO: ProcessCDR(1,14362356,1,1,2) [2025-01-30 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362356', 'tblTempUsageDetail_20' ) start [2025-01-30 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362356', 'tblTempUsageDetail_20' ) end [2025-01-30 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:12:21] Production.INFO: ==3690== Releasing lock... [2025-01-30 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:13:05 [end_date_ymd] => 2025-01-30 08:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:13:05' and `end` < '2025-01-30 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-30 08:13:18] Production.INFO: count ==310 [2025-01-30 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:13:05 - End Time 2025-01-30 08:13:05 [2025-01-30 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362361', 'tblTempUsageDetail_20' ) start [2025-01-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362361', 'tblTempUsageDetail_20' ) end [2025-01-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362361', 'tblTempVendorCDR_20' ) start [2025-01-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362361', 'tblTempVendorCDR_20' ) end [2025-01-30 08:13:18] Production.INFO: ProcessCDR(1,14362361,1,1,2) [2025-01-30 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362361', 'tblTempUsageDetail_20' ) start [2025-01-30 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362361', 'tblTempUsageDetail_20' ) end [2025-01-30 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:13:21] Production.INFO: ==3762== Releasing lock... [2025-01-30 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-30 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:14:05 [end_date_ymd] => 2025-01-30 08:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:14:05' and `end` < '2025-01-30 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-30 08:14:19] Production.INFO: count ==312 [2025-01-30 08:14:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:14:05 - End Time 2025-01-30 08:14:05 [2025-01-30 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362366', 'tblTempUsageDetail_20' ) start [2025-01-30 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362366', 'tblTempUsageDetail_20' ) end [2025-01-30 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362366', 'tblTempVendorCDR_20' ) start [2025-01-30 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362366', 'tblTempVendorCDR_20' ) end [2025-01-30 08:14:19] Production.INFO: ProcessCDR(1,14362366,1,1,2) [2025-01-30 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362366', 'tblTempUsageDetail_20' ) start [2025-01-30 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362366', 'tblTempUsageDetail_20' ) end [2025-01-30 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:14:23] Production.INFO: ==3832== Releasing lock... [2025-01-30 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:14:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-30 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:15:05 [end_date_ymd] => 2025-01-30 08:15:05 [RateCDR] => 1 ) [2025-01-30 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:15:05' and `end` < '2025-01-30 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:15:18] Production.INFO: count ==318 [2025-01-30 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:15:05 - End Time 2025-01-30 08:15:05 [2025-01-30 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362371', 'tblTempUsageDetail_20' ) start [2025-01-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362371', 'tblTempUsageDetail_20' ) end [2025-01-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362371', 'tblTempVendorCDR_20' ) start [2025-01-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362371', 'tblTempVendorCDR_20' ) end [2025-01-30 08:15:18] Production.INFO: ProcessCDR(1,14362371,1,1,2) [2025-01-30 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362371', 'tblTempUsageDetail_20' ) start [2025-01-30 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362371', 'tblTempUsageDetail_20' ) end [2025-01-30 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:15:21] Production.INFO: ==3909== Releasing lock... [2025-01-30 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:16:04 [end_date_ymd] => 2025-01-30 08:16:04 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:16:04' and `end` < '2025-01-30 08: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-30 08:16:17] Production.INFO: count ==320 [2025-01-30 08:16:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:16:04 - End Time 2025-01-30 08:16:04 [2025-01-30 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362376', 'tblTempUsageDetail_20' ) start [2025-01-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362376', 'tblTempUsageDetail_20' ) end [2025-01-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362376', 'tblTempVendorCDR_20' ) start [2025-01-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362376', 'tblTempVendorCDR_20' ) end [2025-01-30 08:16:17] Production.INFO: ProcessCDR(1,14362376,1,1,2) [2025-01-30 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362376', 'tblTempUsageDetail_20' ) start [2025-01-30 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362376', 'tblTempUsageDetail_20' ) end [2025-01-30 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:16:22] Production.INFO: ==3980== Releasing lock... [2025-01-30 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:17:05 [end_date_ymd] => 2025-01-30 08:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:17:05' and `end` < '2025-01-30 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-30 08:17:19] Production.INFO: count ==326 [2025-01-30 08:17:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:17:05 - End Time 2025-01-30 08:17:05 [2025-01-30 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362381', 'tblTempUsageDetail_20' ) start [2025-01-30 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362381', 'tblTempUsageDetail_20' ) end [2025-01-30 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362381', 'tblTempVendorCDR_20' ) start [2025-01-30 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362381', 'tblTempVendorCDR_20' ) end [2025-01-30 08:17:19] Production.INFO: ProcessCDR(1,14362381,1,1,2) [2025-01-30 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362381', 'tblTempUsageDetail_20' ) start [2025-01-30 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362381', 'tblTempUsageDetail_20' ) end [2025-01-30 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:17:22] Production.INFO: ==4052== Releasing lock... [2025-01-30 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:18:05 [end_date_ymd] => 2025-01-30 08:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:18:05' and `end` < '2025-01-30 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-30 08:18:17] Production.INFO: count ==326 [2025-01-30 08:18:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:18:05 - End Time 2025-01-30 08:18:05 [2025-01-30 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362386', 'tblTempUsageDetail_20' ) start [2025-01-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362386', 'tblTempUsageDetail_20' ) end [2025-01-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362386', 'tblTempVendorCDR_20' ) start [2025-01-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362386', 'tblTempVendorCDR_20' ) end [2025-01-30 08:18:17] Production.INFO: ProcessCDR(1,14362386,1,1,2) [2025-01-30 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362386', 'tblTempUsageDetail_20' ) start [2025-01-30 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362386', 'tblTempUsageDetail_20' ) end [2025-01-30 08:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:18:21] Production.INFO: ==4135== Releasing lock... [2025-01-30 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:19:05 [end_date_ymd] => 2025-01-30 08:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:19:05' and `end` < '2025-01-30 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-30 08:19:18] Production.INFO: count ==332 [2025-01-30 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:19:05 - End Time 2025-01-30 08:19:05 [2025-01-30 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362391', 'tblTempUsageDetail_20' ) start [2025-01-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362391', 'tblTempUsageDetail_20' ) end [2025-01-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362391', 'tblTempVendorCDR_20' ) start [2025-01-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362391', 'tblTempVendorCDR_20' ) end [2025-01-30 08:19:18] Production.INFO: ProcessCDR(1,14362391,1,1,2) [2025-01-30 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362391', 'tblTempUsageDetail_20' ) start [2025-01-30 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362391', 'tblTempUsageDetail_20' ) end [2025-01-30 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:19:21] Production.INFO: ==4206== Releasing lock... [2025-01-30 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:20:06 [end_date_ymd] => 2025-01-30 08:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 05:20:06' and `end` < '2025-01-30 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-30 08:20:19] Production.INFO: count ==336 [2025-01-30 08:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:20:06 - End Time 2025-01-30 08:20:06 [2025-01-30 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362396', 'tblTempUsageDetail_20' ) start [2025-01-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362396', 'tblTempUsageDetail_20' ) end [2025-01-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362396', 'tblTempVendorCDR_20' ) start [2025-01-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362396', 'tblTempVendorCDR_20' ) end [2025-01-30 08:20:19] Production.INFO: ProcessCDR(1,14362396,1,1,2) [2025-01-30 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362396', 'tblTempUsageDetail_20' ) start [2025-01-30 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362396', 'tblTempUsageDetail_20' ) end [2025-01-30 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:20:22] Production.INFO: ==4280== Releasing lock... [2025-01-30 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-30 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:21:05 [end_date_ymd] => 2025-01-30 08:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:21:05' and `end` < '2025-01-30 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-30 08:21:18] Production.INFO: count ==368 [2025-01-30 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:21:05 - End Time 2025-01-30 08:21:05 [2025-01-30 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362402', 'tblTempUsageDetail_20' ) start [2025-01-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362402', 'tblTempUsageDetail_20' ) end [2025-01-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362402', 'tblTempVendorCDR_20' ) start [2025-01-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362402', 'tblTempVendorCDR_20' ) end [2025-01-30 08:21:18] Production.INFO: ProcessCDR(1,14362402,1,1,2) [2025-01-30 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362402', 'tblTempUsageDetail_20' ) start [2025-01-30 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362402', 'tblTempUsageDetail_20' ) end [2025-01-30 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:21:21] Production.INFO: ==4353== Releasing lock... [2025-01-30 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-30 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:22:05 [end_date_ymd] => 2025-01-30 08:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:22:05' and `end` < '2025-01-30 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-30 08:22:18] Production.INFO: count ==370 [2025-01-30 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:22:05 - End Time 2025-01-30 08:22:05 [2025-01-30 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362407', 'tblTempUsageDetail_20' ) start [2025-01-30 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362407', 'tblTempUsageDetail_20' ) end [2025-01-30 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362407', 'tblTempVendorCDR_20' ) start [2025-01-30 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362407', 'tblTempVendorCDR_20' ) end [2025-01-30 08:22:18] Production.INFO: ProcessCDR(1,14362407,1,1,2) [2025-01-30 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362407', 'tblTempUsageDetail_20' ) start [2025-01-30 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362407', 'tblTempUsageDetail_20' ) end [2025-01-30 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:22:23] Production.INFO: ==4426== Releasing lock... [2025-01-30 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:22:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-30 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:23:05 [end_date_ymd] => 2025-01-30 08:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:23:05' and `end` < '2025-01-30 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-30 08:23:18] Production.INFO: count ==372 [2025-01-30 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:23:05 - End Time 2025-01-30 08:23:05 [2025-01-30 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362412', 'tblTempUsageDetail_20' ) start [2025-01-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362412', 'tblTempUsageDetail_20' ) end [2025-01-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362412', 'tblTempVendorCDR_20' ) start [2025-01-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362412', 'tblTempVendorCDR_20' ) end [2025-01-30 08:23:18] Production.INFO: ProcessCDR(1,14362412,1,1,2) [2025-01-30 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362412', 'tblTempUsageDetail_20' ) start [2025-01-30 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362412', 'tblTempUsageDetail_20' ) end [2025-01-30 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:23:22] Production.INFO: ==4497== Releasing lock... [2025-01-30 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:23:22] Production.INFO: 31 MB #Memory Used# [2025-01-30 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:24:05 [end_date_ymd] => 2025-01-30 08:24:05 [RateCDR] => 1 ) [2025-01-30 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:24:05' and `end` < '2025-01-30 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:24:19] Production.INFO: count ==374 [2025-01-30 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:24:05 - End Time 2025-01-30 08:24:05 [2025-01-30 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362417', 'tblTempUsageDetail_20' ) start [2025-01-30 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362417', 'tblTempUsageDetail_20' ) end [2025-01-30 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362417', 'tblTempVendorCDR_20' ) start [2025-01-30 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362417', 'tblTempVendorCDR_20' ) end [2025-01-30 08:24:19] Production.INFO: ProcessCDR(1,14362417,1,1,2) [2025-01-30 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362417', 'tblTempUsageDetail_20' ) start [2025-01-30 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362417', 'tblTempUsageDetail_20' ) end [2025-01-30 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:24:22] Production.INFO: ==4569== Releasing lock... [2025-01-30 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:24:22] Production.INFO: 31 MB #Memory Used# [2025-01-30 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:25:05 [end_date_ymd] => 2025-01-30 08:25:05 [RateCDR] => 1 ) [2025-01-30 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:25:05' and `end` < '2025-01-30 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:25:18] Production.INFO: count ==375 [2025-01-30 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:25:05 - End Time 2025-01-30 08:25:05 [2025-01-30 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362422', 'tblTempUsageDetail_20' ) start [2025-01-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362422', 'tblTempUsageDetail_20' ) end [2025-01-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362422', 'tblTempVendorCDR_20' ) start [2025-01-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362422', 'tblTempVendorCDR_20' ) end [2025-01-30 08:25:18] Production.INFO: ProcessCDR(1,14362422,1,1,2) [2025-01-30 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362422', 'tblTempUsageDetail_20' ) start [2025-01-30 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362422', 'tblTempUsageDetail_20' ) end [2025-01-30 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:25:21] Production.INFO: ==4647== Releasing lock... [2025-01-30 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-30 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:26:05 [end_date_ymd] => 2025-01-30 08:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:26:05' and `end` < '2025-01-30 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-30 08:26:19] Production.INFO: count ==387 [2025-01-30 08:26:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:26:05 - End Time 2025-01-30 08:26:05 [2025-01-30 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362427', 'tblTempUsageDetail_20' ) start [2025-01-30 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362427', 'tblTempUsageDetail_20' ) end [2025-01-30 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362427', 'tblTempVendorCDR_20' ) start [2025-01-30 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362427', 'tblTempVendorCDR_20' ) end [2025-01-30 08:26:19] Production.INFO: ProcessCDR(1,14362427,1,1,2) [2025-01-30 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362427', 'tblTempUsageDetail_20' ) start [2025-01-30 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362427', 'tblTempUsageDetail_20' ) end [2025-01-30 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:26:22] Production.INFO: ==4718== Releasing lock... [2025-01-30 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-30 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:27:05 [end_date_ymd] => 2025-01-30 08:27:05 [RateCDR] => 1 ) [2025-01-30 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:27:05' and `end` < '2025-01-30 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:27:19] Production.INFO: count ==388 [2025-01-30 08:27:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:27:05 - End Time 2025-01-30 08:27:05 [2025-01-30 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362432', 'tblTempUsageDetail_20' ) start [2025-01-30 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362432', 'tblTempUsageDetail_20' ) end [2025-01-30 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362432', 'tblTempVendorCDR_20' ) start [2025-01-30 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362432', 'tblTempVendorCDR_20' ) end [2025-01-30 08:27:19] Production.INFO: ProcessCDR(1,14362432,1,1,2) [2025-01-30 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362432', 'tblTempUsageDetail_20' ) start [2025-01-30 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362432', 'tblTempUsageDetail_20' ) end [2025-01-30 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:27:23] Production.INFO: ==4827== Releasing lock... [2025-01-30 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:27:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-30 08:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:28:04 [end_date_ymd] => 2025-01-30 08:28:04 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:28:04' and `end` < '2025-01-30 08: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-30 08:28:17] Production.INFO: count ==391 [2025-01-30 08:28:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:28:04 - End Time 2025-01-30 08:28:04 [2025-01-30 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362437', 'tblTempUsageDetail_20' ) start [2025-01-30 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362437', 'tblTempUsageDetail_20' ) end [2025-01-30 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362437', 'tblTempVendorCDR_20' ) start [2025-01-30 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362437', 'tblTempVendorCDR_20' ) end [2025-01-30 08:28:17] Production.INFO: ProcessCDR(1,14362437,1,1,2) [2025-01-30 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362437', 'tblTempUsageDetail_20' ) start [2025-01-30 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362437', 'tblTempUsageDetail_20' ) end [2025-01-30 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:28:20] Production.INFO: ==4898== Releasing lock... [2025-01-30 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:28:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-30 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:29:05 [end_date_ymd] => 2025-01-30 08:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:29:05' and `end` < '2025-01-30 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-30 08:29:19] Production.INFO: count ==397 [2025-01-30 08:29:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:29:05 - End Time 2025-01-30 08:29:05 [2025-01-30 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362442', 'tblTempUsageDetail_20' ) start [2025-01-30 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362442', 'tblTempUsageDetail_20' ) end [2025-01-30 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362442', 'tblTempVendorCDR_20' ) start [2025-01-30 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362442', 'tblTempVendorCDR_20' ) end [2025-01-30 08:29:19] Production.INFO: ProcessCDR(1,14362442,1,1,2) [2025-01-30 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362442', 'tblTempUsageDetail_20' ) start [2025-01-30 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362442', 'tblTempUsageDetail_20' ) end [2025-01-30 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:29:23] Production.INFO: ==4968== Releasing lock... [2025-01-30 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:29:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-30 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:30:05 [end_date_ymd] => 2025-01-30 08:30:05 [RateCDR] => 1 ) [2025-01-30 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:30:05' and `end` < '2025-01-30 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-30 08:30:18] Production.INFO: count ==399 [2025-01-30 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:30:05 - End Time 2025-01-30 08:30:05 [2025-01-30 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362448', 'tblTempUsageDetail_20' ) start [2025-01-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362448', 'tblTempUsageDetail_20' ) end [2025-01-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362448', 'tblTempVendorCDR_20' ) start [2025-01-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362448', 'tblTempVendorCDR_20' ) end [2025-01-30 08:30:18] Production.INFO: ProcessCDR(1,14362448,1,1,2) [2025-01-30 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362448', 'tblTempUsageDetail_20' ) start [2025-01-30 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362448', 'tblTempUsageDetail_20' ) end [2025-01-30 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:30:22] Production.INFO: ==5042== Releasing lock... [2025-01-30 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-30 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:31:05 [end_date_ymd] => 2025-01-30 08:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:31:05' and `end` < '2025-01-30 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-30 08:31:18] Production.INFO: count ==429 [2025-01-30 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:31:05 - End Time 2025-01-30 08:31:05 [2025-01-30 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362453', 'tblTempUsageDetail_20' ) start [2025-01-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362453', 'tblTempUsageDetail_20' ) end [2025-01-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362453', 'tblTempVendorCDR_20' ) start [2025-01-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362453', 'tblTempVendorCDR_20' ) end [2025-01-30 08:31:18] Production.INFO: ProcessCDR(1,14362453,1,1,2) [2025-01-30 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362453', 'tblTempUsageDetail_20' ) start [2025-01-30 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362453', 'tblTempUsageDetail_20' ) end [2025-01-30 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:31:21] Production.INFO: ==5115== Releasing lock... [2025-01-30 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-30 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:32:05 [end_date_ymd] => 2025-01-30 08:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:32:05' and `end` < '2025-01-30 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-30 08:32:19] Production.INFO: count ==436 [2025-01-30 08:32:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:32:05 - End Time 2025-01-30 08:32:05 [2025-01-30 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362458', 'tblTempUsageDetail_20' ) start [2025-01-30 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362458', 'tblTempUsageDetail_20' ) end [2025-01-30 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362458', 'tblTempVendorCDR_20' ) start [2025-01-30 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362458', 'tblTempVendorCDR_20' ) end [2025-01-30 08:32:19] Production.INFO: ProcessCDR(1,14362458,1,1,2) [2025-01-30 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362458', 'tblTempUsageDetail_20' ) start [2025-01-30 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362458', 'tblTempUsageDetail_20' ) end [2025-01-30 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:32:22] Production.INFO: ==5185== Releasing lock... [2025-01-30 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:32:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-30 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:33:05 [end_date_ymd] => 2025-01-30 08:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:33:05' and `end` < '2025-01-30 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-30 08:33:18] Production.INFO: count ==443 [2025-01-30 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:33:05 - End Time 2025-01-30 08:33:05 [2025-01-30 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362463', 'tblTempUsageDetail_20' ) start [2025-01-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362463', 'tblTempUsageDetail_20' ) end [2025-01-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362463', 'tblTempVendorCDR_20' ) start [2025-01-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362463', 'tblTempVendorCDR_20' ) end [2025-01-30 08:33:18] Production.INFO: ProcessCDR(1,14362463,1,1,2) [2025-01-30 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362463', 'tblTempUsageDetail_20' ) start [2025-01-30 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362463', 'tblTempUsageDetail_20' ) end [2025-01-30 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:33:23] Production.INFO: ==5256== Releasing lock... [2025-01-30 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:33:23] Production.INFO: 32 MB #Memory Used# [2025-01-30 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:34:04 [end_date_ymd] => 2025-01-30 08:34:04 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:34:04' and `end` < '2025-01-30 08: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-30 08:34:17] Production.INFO: count ==446 [2025-01-30 08:34:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:34:04 - End Time 2025-01-30 08:34:04 [2025-01-30 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362468', 'tblTempUsageDetail_20' ) start [2025-01-30 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362468', 'tblTempUsageDetail_20' ) end [2025-01-30 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362468', 'tblTempVendorCDR_20' ) start [2025-01-30 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362468', 'tblTempVendorCDR_20' ) end [2025-01-30 08:34:17] Production.INFO: ProcessCDR(1,14362468,1,1,2) [2025-01-30 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362468', 'tblTempUsageDetail_20' ) start [2025-01-30 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362468', 'tblTempUsageDetail_20' ) end [2025-01-30 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:34:22] Production.INFO: ==5328== Releasing lock... [2025-01-30 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-30 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:35:05 [end_date_ymd] => 2025-01-30 08:35:05 [RateCDR] => 1 ) [2025-01-30 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:35:05' and `end` < '2025-01-30 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:35:18] Production.INFO: count ==446 [2025-01-30 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:35:05 - End Time 2025-01-30 08:35:05 [2025-01-30 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362473', 'tblTempUsageDetail_20' ) start [2025-01-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362473', 'tblTempUsageDetail_20' ) end [2025-01-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362473', 'tblTempVendorCDR_20' ) start [2025-01-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362473', 'tblTempVendorCDR_20' ) end [2025-01-30 08:35:18] Production.INFO: ProcessCDR(1,14362473,1,1,2) [2025-01-30 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362473', 'tblTempUsageDetail_20' ) start [2025-01-30 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362473', 'tblTempUsageDetail_20' ) end [2025-01-30 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:35:21] Production.INFO: ==5403== Releasing lock... [2025-01-30 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-30 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:36:06 [end_date_ymd] => 2025-01-30 08:36:06 [RateCDR] => 1 ) [2025-01-30 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:36:06' and `end` < '2025-01-30 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:36:20] Production.INFO: count ==452 [2025-01-30 08:36:20] Production.ERROR: pbx CDR StartTime 2025-01-30 05:36:06 - End Time 2025-01-30 08:36:06 [2025-01-30 08:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362478', 'tblTempUsageDetail_20' ) start [2025-01-30 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362478', 'tblTempUsageDetail_20' ) end [2025-01-30 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362478', 'tblTempVendorCDR_20' ) start [2025-01-30 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362478', 'tblTempVendorCDR_20' ) end [2025-01-30 08:36:20] Production.INFO: ProcessCDR(1,14362478,1,1,2) [2025-01-30 08:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362478', 'tblTempUsageDetail_20' ) start [2025-01-30 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362478', 'tblTempUsageDetail_20' ) end [2025-01-30 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:36:23] Production.INFO: ==5475== Releasing lock... [2025-01-30 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:36:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-30 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:37:05 [end_date_ymd] => 2025-01-30 08:37:05 [RateCDR] => 1 ) [2025-01-30 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:37:05' and `end` < '2025-01-30 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:37:17] Production.INFO: count ==460 [2025-01-30 08:37:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:37:05 - End Time 2025-01-30 08:37:05 [2025-01-30 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362483', 'tblTempUsageDetail_20' ) start [2025-01-30 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362483', 'tblTempUsageDetail_20' ) end [2025-01-30 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362483', 'tblTempVendorCDR_20' ) start [2025-01-30 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362483', 'tblTempVendorCDR_20' ) end [2025-01-30 08:37:17] Production.INFO: ProcessCDR(1,14362483,1,1,2) [2025-01-30 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362483', 'tblTempUsageDetail_20' ) start [2025-01-30 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362483', 'tblTempUsageDetail_20' ) end [2025-01-30 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:37:22] Production.INFO: ==5550== Releasing lock... [2025-01-30 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-30 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:38:05 [end_date_ymd] => 2025-01-30 08:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:38:05' and `end` < '2025-01-30 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-30 08:38:18] Production.INFO: count ==480 [2025-01-30 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:38:05 - End Time 2025-01-30 08:38:05 [2025-01-30 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362488', 'tblTempUsageDetail_20' ) start [2025-01-30 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362488', 'tblTempUsageDetail_20' ) end [2025-01-30 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362488', 'tblTempVendorCDR_20' ) start [2025-01-30 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362488', 'tblTempVendorCDR_20' ) end [2025-01-30 08:38:18] Production.INFO: ProcessCDR(1,14362488,1,1,2) [2025-01-30 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362488', 'tblTempUsageDetail_20' ) start [2025-01-30 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362488', 'tblTempUsageDetail_20' ) end [2025-01-30 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:38:22] Production.INFO: ==5622== Releasing lock... [2025-01-30 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-30 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:39:05 [end_date_ymd] => 2025-01-30 08:39:05 [RateCDR] => 1 ) [2025-01-30 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:39:05' and `end` < '2025-01-30 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:39:19] Production.INFO: count ==487 [2025-01-30 08:39:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:39:05 - End Time 2025-01-30 08:39:05 [2025-01-30 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362493', 'tblTempUsageDetail_20' ) start [2025-01-30 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362493', 'tblTempUsageDetail_20' ) end [2025-01-30 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362493', 'tblTempVendorCDR_20' ) start [2025-01-30 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362493', 'tblTempVendorCDR_20' ) end [2025-01-30 08:39:19] Production.INFO: ProcessCDR(1,14362493,1,1,2) [2025-01-30 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362493', 'tblTempUsageDetail_20' ) start [2025-01-30 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362493', 'tblTempUsageDetail_20' ) end [2025-01-30 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:39:23] Production.INFO: ==5692== Releasing lock... [2025-01-30 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-30 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:40:06 [end_date_ymd] => 2025-01-30 08:40:06 [RateCDR] => 1 ) [2025-01-30 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:40:06' and `end` < '2025-01-30 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:40:19] Production.INFO: count ==500 [2025-01-30 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:40:06 - End Time 2025-01-30 08:40:06 [2025-01-30 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362497', 'tblTempUsageDetail_20' ) start [2025-01-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362497', 'tblTempUsageDetail_20' ) end [2025-01-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362497', 'tblTempVendorCDR_20' ) start [2025-01-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362497', 'tblTempVendorCDR_20' ) end [2025-01-30 08:40:19] Production.INFO: ProcessCDR(1,14362497,1,1,2) [2025-01-30 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362497', 'tblTempUsageDetail_20' ) start [2025-01-30 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362497', 'tblTempUsageDetail_20' ) end [2025-01-30 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:40:23] Production.INFO: ==5764== Releasing lock... [2025-01-30 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:40:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-30 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:41:05 [end_date_ymd] => 2025-01-30 08:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:41:05' and `end` < '2025-01-30 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-30 08:41:18] Production.INFO: count ==535 [2025-01-30 08:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:41:05 - End Time 2025-01-30 08:41:05 [2025-01-30 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362504', 'tblTempUsageDetail_20' ) start [2025-01-30 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362504', 'tblTempUsageDetail_20' ) end [2025-01-30 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362504', 'tblTempVendorCDR_20' ) start [2025-01-30 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362504', 'tblTempVendorCDR_20' ) end [2025-01-30 08:41:19] Production.INFO: ProcessCDR(1,14362504,1,1,2) [2025-01-30 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362504', 'tblTempUsageDetail_20' ) start [2025-01-30 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362504', 'tblTempUsageDetail_20' ) end [2025-01-30 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:41:24] Production.INFO: ==5839== Releasing lock... [2025-01-30 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:41:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-30 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:42:06 [end_date_ymd] => 2025-01-30 08:42:06 [RateCDR] => 1 ) [2025-01-30 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:42:06' and `end` < '2025-01-30 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:42:18] Production.INFO: count ==540 [2025-01-30 08:42:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:42:06 - End Time 2025-01-30 08:42:06 [2025-01-30 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362509', 'tblTempUsageDetail_20' ) start [2025-01-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362509', 'tblTempUsageDetail_20' ) end [2025-01-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362509', 'tblTempVendorCDR_20' ) start [2025-01-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362509', 'tblTempVendorCDR_20' ) end [2025-01-30 08:42:19] Production.INFO: ProcessCDR(1,14362509,1,1,2) [2025-01-30 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362509', 'tblTempUsageDetail_20' ) start [2025-01-30 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362509', 'tblTempUsageDetail_20' ) end [2025-01-30 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:42:22] Production.INFO: ==5949== Releasing lock... [2025-01-30 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-30 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:43:05 [end_date_ymd] => 2025-01-30 08:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:43:05' and `end` < '2025-01-30 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-30 08:43:17] Production.INFO: count ==543 [2025-01-30 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:43:05 - End Time 2025-01-30 08:43:05 [2025-01-30 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362514', 'tblTempUsageDetail_20' ) start [2025-01-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362514', 'tblTempUsageDetail_20' ) end [2025-01-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362514', 'tblTempVendorCDR_20' ) start [2025-01-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362514', 'tblTempVendorCDR_20' ) end [2025-01-30 08:43:18] Production.INFO: ProcessCDR(1,14362514,1,1,2) [2025-01-30 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362514', 'tblTempUsageDetail_20' ) start [2025-01-30 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362514', 'tblTempUsageDetail_20' ) end [2025-01-30 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:43:21] Production.INFO: ==6019== Releasing lock... [2025-01-30 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:43:21] Production.INFO: 33 MB #Memory Used# [2025-01-30 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:44:05 [end_date_ymd] => 2025-01-30 08:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:44:05' and `end` < '2025-01-30 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-30 08:44:17] Production.INFO: count ==557 [2025-01-30 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:44:05 - End Time 2025-01-30 08:44:05 [2025-01-30 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362519', 'tblTempUsageDetail_20' ) start [2025-01-30 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362519', 'tblTempUsageDetail_20' ) end [2025-01-30 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362519', 'tblTempVendorCDR_20' ) start [2025-01-30 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362519', 'tblTempVendorCDR_20' ) end [2025-01-30 08:44:18] Production.INFO: ProcessCDR(1,14362519,1,1,2) [2025-01-30 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362519', 'tblTempUsageDetail_20' ) start [2025-01-30 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362519', 'tblTempUsageDetail_20' ) end [2025-01-30 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:44:21] Production.INFO: ==6089== Releasing lock... [2025-01-30 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:44:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-30 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:45:04 [end_date_ymd] => 2025-01-30 08:45:04 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:45:04' and `end` < '2025-01-30 08: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-30 08:45:17] Production.INFO: count ==609 [2025-01-30 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:45:04 - End Time 2025-01-30 08:45:04 [2025-01-30 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362524', 'tblTempUsageDetail_20' ) start [2025-01-30 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362524', 'tblTempUsageDetail_20' ) end [2025-01-30 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362524', 'tblTempVendorCDR_20' ) start [2025-01-30 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362524', 'tblTempVendorCDR_20' ) end [2025-01-30 08:45:17] Production.INFO: ProcessCDR(1,14362524,1,1,2) [2025-01-30 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362524', 'tblTempUsageDetail_20' ) start [2025-01-30 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362524', 'tblTempUsageDetail_20' ) end [2025-01-30 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:45:21] Production.INFO: ==6160== Releasing lock... [2025-01-30 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:45:21] Production.INFO: 33 MB #Memory Used# [2025-01-30 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:46:05 [end_date_ymd] => 2025-01-30 08:46:05 [RateCDR] => 1 ) [2025-01-30 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:46:05' and `end` < '2025-01-30 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:46:18] Production.INFO: count ==610 [2025-01-30 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:46:05 - End Time 2025-01-30 08:46:05 [2025-01-30 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362529', 'tblTempUsageDetail_20' ) start [2025-01-30 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362529', 'tblTempUsageDetail_20' ) end [2025-01-30 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362529', 'tblTempVendorCDR_20' ) start [2025-01-30 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362529', 'tblTempVendorCDR_20' ) end [2025-01-30 08:46:18] Production.INFO: ProcessCDR(1,14362529,1,1,2) [2025-01-30 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362529', 'tblTempUsageDetail_20' ) start [2025-01-30 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362529', 'tblTempUsageDetail_20' ) end [2025-01-30 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:46:23] Production.INFO: ==6230== Releasing lock... [2025-01-30 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:46:23] Production.INFO: 33 MB #Memory Used# [2025-01-30 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:47:06 [end_date_ymd] => 2025-01-30 08:47:06 [RateCDR] => 1 ) [2025-01-30 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:47:06' and `end` < '2025-01-30 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:47:19] Production.INFO: count ==625 [2025-01-30 08:47:20] Production.ERROR: pbx CDR StartTime 2025-01-30 05:47:06 - End Time 2025-01-30 08:47:06 [2025-01-30 08:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362534', 'tblTempUsageDetail_20' ) start [2025-01-30 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362534', 'tblTempUsageDetail_20' ) end [2025-01-30 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362534', 'tblTempVendorCDR_20' ) start [2025-01-30 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362534', 'tblTempVendorCDR_20' ) end [2025-01-30 08:47:20] Production.INFO: ProcessCDR(1,14362534,1,1,2) [2025-01-30 08:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362534', 'tblTempUsageDetail_20' ) start [2025-01-30 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362534', 'tblTempUsageDetail_20' ) end [2025-01-30 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:47:23] Production.INFO: ==6301== Releasing lock... [2025-01-30 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:48:05 [end_date_ymd] => 2025-01-30 08:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:48:05' and `end` < '2025-01-30 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-30 08:48:19] Production.INFO: count ==629 [2025-01-30 08:48:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:48:05 - End Time 2025-01-30 08:48:05 [2025-01-30 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362539', 'tblTempUsageDetail_20' ) start [2025-01-30 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362539', 'tblTempUsageDetail_20' ) end [2025-01-30 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362539', 'tblTempVendorCDR_20' ) start [2025-01-30 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362539', 'tblTempVendorCDR_20' ) end [2025-01-30 08:48:19] Production.INFO: ProcessCDR(1,14362539,1,1,2) [2025-01-30 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362539', 'tblTempUsageDetail_20' ) start [2025-01-30 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362539', 'tblTempUsageDetail_20' ) end [2025-01-30 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:48:22] Production.INFO: ==6375== Releasing lock... [2025-01-30 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:48:22] Production.INFO: 33 MB #Memory Used# [2025-01-30 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:49:05 [end_date_ymd] => 2025-01-30 08:49:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:49:05' and `end` < '2025-01-30 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-30 08:49:18] Production.INFO: count ==634 [2025-01-30 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:49:05 - End Time 2025-01-30 08:49:05 [2025-01-30 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362544', 'tblTempUsageDetail_20' ) start [2025-01-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362544', 'tblTempUsageDetail_20' ) end [2025-01-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362544', 'tblTempVendorCDR_20' ) start [2025-01-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362544', 'tblTempVendorCDR_20' ) end [2025-01-30 08:49:18] Production.INFO: ProcessCDR(1,14362544,1,1,2) [2025-01-30 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362544', 'tblTempUsageDetail_20' ) start [2025-01-30 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362544', 'tblTempUsageDetail_20' ) end [2025-01-30 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:49:22] Production.INFO: ==6447== Releasing lock... [2025-01-30 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:49:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:50:06 [end_date_ymd] => 2025-01-30 08:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 05:50:06' and `end` < '2025-01-30 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-30 08:50:19] Production.INFO: count ==649 [2025-01-30 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:50:06 - End Time 2025-01-30 08:50:06 [2025-01-30 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362550', 'tblTempUsageDetail_20' ) start [2025-01-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362550', 'tblTempUsageDetail_20' ) end [2025-01-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362550', 'tblTempVendorCDR_20' ) start [2025-01-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362550', 'tblTempVendorCDR_20' ) end [2025-01-30 08:50:19] Production.INFO: ProcessCDR(1,14362550,1,1,2) [2025-01-30 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362550', 'tblTempUsageDetail_20' ) start [2025-01-30 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362550', 'tblTempUsageDetail_20' ) end [2025-01-30 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:50:23] Production.INFO: ==6523== Releasing lock... [2025-01-30 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:50:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:51:05 [end_date_ymd] => 2025-01-30 08:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:51:05' and `end` < '2025-01-30 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-30 08:51:18] Production.INFO: count ==675 [2025-01-30 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:51:05 - End Time 2025-01-30 08:51:05 [2025-01-30 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362555', 'tblTempUsageDetail_20' ) start [2025-01-30 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362555', 'tblTempUsageDetail_20' ) end [2025-01-30 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362555', 'tblTempVendorCDR_20' ) start [2025-01-30 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362555', 'tblTempVendorCDR_20' ) end [2025-01-30 08:51:18] Production.INFO: ProcessCDR(1,14362555,1,1,2) [2025-01-30 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362555', 'tblTempUsageDetail_20' ) start [2025-01-30 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362555', 'tblTempUsageDetail_20' ) end [2025-01-30 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:51:21] Production.INFO: ==6596== Releasing lock... [2025-01-30 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:52:04 [end_date_ymd] => 2025-01-30 08:52:04 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:52:04' and `end` < '2025-01-30 08: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-30 08:52:17] Production.INFO: count ==681 [2025-01-30 08:52:17] Production.ERROR: pbx CDR StartTime 2025-01-30 05:52:04 - End Time 2025-01-30 08:52:04 [2025-01-30 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362560', 'tblTempUsageDetail_20' ) start [2025-01-30 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362560', 'tblTempUsageDetail_20' ) end [2025-01-30 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362560', 'tblTempVendorCDR_20' ) start [2025-01-30 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362560', 'tblTempVendorCDR_20' ) end [2025-01-30 08:52:17] Production.INFO: ProcessCDR(1,14362560,1,1,2) [2025-01-30 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362560', 'tblTempUsageDetail_20' ) start [2025-01-30 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362560', 'tblTempUsageDetail_20' ) end [2025-01-30 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:52:21] Production.INFO: ==6668== Releasing lock... [2025-01-30 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:52:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:53:05 [end_date_ymd] => 2025-01-30 08:53:05 [RateCDR] => 1 ) [2025-01-30 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 05:53:05' and `end` < '2025-01-30 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 08:53:18] Production.INFO: count ==686 [2025-01-30 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:53:05 - End Time 2025-01-30 08:53:05 [2025-01-30 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362565', 'tblTempUsageDetail_20' ) start [2025-01-30 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362565', 'tblTempUsageDetail_20' ) end [2025-01-30 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362565', 'tblTempVendorCDR_20' ) start [2025-01-30 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362565', 'tblTempVendorCDR_20' ) end [2025-01-30 08:53:18] Production.INFO: ProcessCDR(1,14362565,1,1,2) [2025-01-30 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362565', 'tblTempUsageDetail_20' ) start [2025-01-30 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362565', 'tblTempUsageDetail_20' ) end [2025-01-30 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:53:21] Production.INFO: ==6744== Releasing lock... [2025-01-30 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:54:05 [end_date_ymd] => 2025-01-30 08:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:54:05' and `end` < '2025-01-30 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-30 08:54:18] Production.INFO: count ==688 [2025-01-30 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:54:05 - End Time 2025-01-30 08:54:05 [2025-01-30 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362570', 'tblTempUsageDetail_20' ) start [2025-01-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362570', 'tblTempUsageDetail_20' ) end [2025-01-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362570', 'tblTempVendorCDR_20' ) start [2025-01-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362570', 'tblTempVendorCDR_20' ) end [2025-01-30 08:54:18] Production.INFO: ProcessCDR(1,14362570,1,1,2) [2025-01-30 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362570', 'tblTempUsageDetail_20' ) start [2025-01-30 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362570', 'tblTempUsageDetail_20' ) end [2025-01-30 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:54:23] Production.INFO: ==6824== Releasing lock... [2025-01-30 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:55:05 [end_date_ymd] => 2025-01-30 08:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:55:05' and `end` < '2025-01-30 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-30 08:55:18] Production.INFO: count ==689 [2025-01-30 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:55:05 - End Time 2025-01-30 08:55:05 [2025-01-30 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362575', 'tblTempUsageDetail_20' ) start [2025-01-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362575', 'tblTempUsageDetail_20' ) end [2025-01-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362575', 'tblTempVendorCDR_20' ) start [2025-01-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362575', 'tblTempVendorCDR_20' ) end [2025-01-30 08:55:18] Production.INFO: ProcessCDR(1,14362575,1,1,2) [2025-01-30 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362575', 'tblTempUsageDetail_20' ) start [2025-01-30 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362575', 'tblTempUsageDetail_20' ) end [2025-01-30 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:55:21] Production.INFO: ==6899== Releasing lock... [2025-01-30 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:55:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:56:06 [end_date_ymd] => 2025-01-30 08:56:06 [RateCDR] => 1 ) [2025-01-30 08: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-30 05:56:06' and `end` < '2025-01-30 08: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-30 08:56:18] Production.INFO: count ==709 [2025-01-30 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-30 05:56:06 - End Time 2025-01-30 08:56:06 [2025-01-30 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362580', 'tblTempUsageDetail_20' ) start [2025-01-30 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362580', 'tblTempUsageDetail_20' ) end [2025-01-30 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362580', 'tblTempVendorCDR_20' ) start [2025-01-30 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362580', 'tblTempVendorCDR_20' ) end [2025-01-30 08:56:19] Production.INFO: ProcessCDR(1,14362580,1,1,2) [2025-01-30 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362580', 'tblTempUsageDetail_20' ) start [2025-01-30 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362580', 'tblTempUsageDetail_20' ) end [2025-01-30 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:56:22] Production.INFO: ==6971== Releasing lock... [2025-01-30 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:57:05 [end_date_ymd] => 2025-01-30 08:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:57:05' and `end` < '2025-01-30 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-30 08:57:18] Production.INFO: count ==722 [2025-01-30 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:57:05 - End Time 2025-01-30 08:57:05 [2025-01-30 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362585', 'tblTempUsageDetail_20' ) start [2025-01-30 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362585', 'tblTempUsageDetail_20' ) end [2025-01-30 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362585', 'tblTempVendorCDR_20' ) start [2025-01-30 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362585', 'tblTempVendorCDR_20' ) end [2025-01-30 08:57:18] Production.INFO: ProcessCDR(1,14362585,1,1,2) [2025-01-30 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362585', 'tblTempUsageDetail_20' ) start [2025-01-30 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362585', 'tblTempUsageDetail_20' ) end [2025-01-30 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:57:23] Production.INFO: ==7089== Releasing lock... [2025-01-30 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:57:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:58:05 [end_date_ymd] => 2025-01-30 08:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:58:05' and `end` < '2025-01-30 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-30 08:58:18] Production.INFO: count ==722 [2025-01-30 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:58:05 - End Time 2025-01-30 08:58:05 [2025-01-30 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362590', 'tblTempUsageDetail_20' ) start [2025-01-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362590', 'tblTempUsageDetail_20' ) end [2025-01-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362590', 'tblTempVendorCDR_20' ) start [2025-01-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362590', 'tblTempVendorCDR_20' ) end [2025-01-30 08:58:18] Production.INFO: ProcessCDR(1,14362590,1,1,2) [2025-01-30 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362590', 'tblTempUsageDetail_20' ) start [2025-01-30 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362590', 'tblTempUsageDetail_20' ) end [2025-01-30 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:58:21] Production.INFO: ==7165== Releasing lock... [2025-01-30 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 05:59:05 [end_date_ymd] => 2025-01-30 08:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 05:59:05' and `end` < '2025-01-30 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-30 08:59:17] Production.INFO: count ==725 [2025-01-30 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-30 05:59:05 - End Time 2025-01-30 08:59:05 [2025-01-30 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362595', 'tblTempUsageDetail_20' ) start [2025-01-30 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362595', 'tblTempUsageDetail_20' ) end [2025-01-30 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362595', 'tblTempVendorCDR_20' ) start [2025-01-30 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362595', 'tblTempVendorCDR_20' ) end [2025-01-30 08:59:18] Production.INFO: ProcessCDR(1,14362595,1,1,2) [2025-01-30 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362595', 'tblTempUsageDetail_20' ) start [2025-01-30 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362595', 'tblTempUsageDetail_20' ) end [2025-01-30 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 08:59:22] Production.INFO: ==7240== Releasing lock... [2025-01-30 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 08:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:00:06 [end_date_ymd] => 2025-01-30 09:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 06:00:06' and `end` < '2025-01-30 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-30 09:00:19] Production.INFO: count ==729 [2025-01-30 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:00:06 - End Time 2025-01-30 09:00:06 [2025-01-30 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362600', 'tblTempUsageDetail_20' ) start [2025-01-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362600', 'tblTempUsageDetail_20' ) end [2025-01-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362600', 'tblTempVendorCDR_20' ) start [2025-01-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362600', 'tblTempVendorCDR_20' ) end [2025-01-30 09:00:19] Production.INFO: ProcessCDR(1,14362600,1,1,2) [2025-01-30 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362600', 'tblTempUsageDetail_20' ) start [2025-01-30 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362600', 'tblTempUsageDetail_20' ) end [2025-01-30 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:00:22] Production.INFO: ==7315== Releasing lock... [2025-01-30 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:01:05 [end_date_ymd] => 2025-01-30 09:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:01:05' and `end` < '2025-01-30 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-30 09:01:17] Production.INFO: count ==781 [2025-01-30 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:01:05 - End Time 2025-01-30 09:01:05 [2025-01-30 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362606', 'tblTempUsageDetail_20' ) start [2025-01-30 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362606', 'tblTempUsageDetail_20' ) end [2025-01-30 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362606', 'tblTempVendorCDR_20' ) start [2025-01-30 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362606', 'tblTempVendorCDR_20' ) end [2025-01-30 09:01:18] Production.INFO: ProcessCDR(1,14362606,1,1,2) [2025-01-30 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362606', 'tblTempUsageDetail_20' ) start [2025-01-30 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362606', 'tblTempUsageDetail_20' ) end [2025-01-30 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:01:23] Production.INFO: ==7403== Releasing lock... [2025-01-30 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:01:23] Production.INFO: 34 MB #Memory Used# [2025-01-30 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:02:05 [end_date_ymd] => 2025-01-30 09:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:02:05' and `end` < '2025-01-30 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-30 09:02:18] Production.INFO: count ==795 [2025-01-30 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:02:05 - End Time 2025-01-30 09:02:05 [2025-01-30 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362611', 'tblTempUsageDetail_20' ) start [2025-01-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362611', 'tblTempUsageDetail_20' ) end [2025-01-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362611', 'tblTempVendorCDR_20' ) start [2025-01-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362611', 'tblTempVendorCDR_20' ) end [2025-01-30 09:02:18] Production.INFO: ProcessCDR(1,14362611,1,1,2) [2025-01-30 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362611', 'tblTempUsageDetail_20' ) start [2025-01-30 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362611', 'tblTempUsageDetail_20' ) end [2025-01-30 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:02:22] Production.INFO: ==7477== Releasing lock... [2025-01-30 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:02:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:03:05 [end_date_ymd] => 2025-01-30 09:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:03:05' and `end` < '2025-01-30 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-30 09:03:18] Production.INFO: count ==798 [2025-01-30 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:03:05 - End Time 2025-01-30 09:03:05 [2025-01-30 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362616', 'tblTempUsageDetail_20' ) start [2025-01-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362616', 'tblTempUsageDetail_20' ) end [2025-01-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362616', 'tblTempVendorCDR_20' ) start [2025-01-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362616', 'tblTempVendorCDR_20' ) end [2025-01-30 09:03:18] Production.INFO: ProcessCDR(1,14362616,1,1,2) [2025-01-30 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362616', 'tblTempUsageDetail_20' ) start [2025-01-30 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362616', 'tblTempUsageDetail_20' ) end [2025-01-30 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:03:23] Production.INFO: ==7550== Releasing lock... [2025-01-30 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:03:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:04:06 [end_date_ymd] => 2025-01-30 09:04:06 [RateCDR] => 1 ) [2025-01-30 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-30 06:04:06' and `end` < '2025-01-30 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:04:19] Production.INFO: count ==818 [2025-01-30 09:04:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:04:06 - End Time 2025-01-30 09:04:06 [2025-01-30 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362621', 'tblTempUsageDetail_20' ) start [2025-01-30 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362621', 'tblTempUsageDetail_20' ) end [2025-01-30 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362621', 'tblTempVendorCDR_20' ) start [2025-01-30 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362621', 'tblTempVendorCDR_20' ) end [2025-01-30 09:04:19] Production.INFO: ProcessCDR(1,14362621,1,1,2) [2025-01-30 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362621', 'tblTempUsageDetail_20' ) start [2025-01-30 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362621', 'tblTempUsageDetail_20' ) end [2025-01-30 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:04:23] Production.INFO: ==7641== Releasing lock... [2025-01-30 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:04:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:05:05 [end_date_ymd] => 2025-01-30 09:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:05:05' and `end` < '2025-01-30 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-30 09:05:18] Production.INFO: count ==825 [2025-01-30 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:05:05 - End Time 2025-01-30 09:05:05 [2025-01-30 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362626', 'tblTempUsageDetail_20' ) start [2025-01-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362626', 'tblTempUsageDetail_20' ) end [2025-01-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362626', 'tblTempVendorCDR_20' ) start [2025-01-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362626', 'tblTempVendorCDR_20' ) end [2025-01-30 09:05:18] Production.INFO: ProcessCDR(1,14362626,1,1,2) [2025-01-30 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362626', 'tblTempUsageDetail_20' ) start [2025-01-30 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362626', 'tblTempUsageDetail_20' ) end [2025-01-30 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:05:23] Production.INFO: ==7746== Releasing lock... [2025-01-30 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:06:06 [end_date_ymd] => 2025-01-30 09:06:06 [RateCDR] => 1 ) [2025-01-30 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:06:06' and `end` < '2025-01-30 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:06:19] Production.INFO: count ==827 [2025-01-30 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:06:06 - End Time 2025-01-30 09:06:06 [2025-01-30 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362631', 'tblTempUsageDetail_20' ) start [2025-01-30 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362631', 'tblTempUsageDetail_20' ) end [2025-01-30 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362631', 'tblTempVendorCDR_20' ) start [2025-01-30 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362631', 'tblTempVendorCDR_20' ) end [2025-01-30 09:06:19] Production.INFO: ProcessCDR(1,14362631,1,1,2) [2025-01-30 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362631', 'tblTempUsageDetail_20' ) start [2025-01-30 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362631', 'tblTempUsageDetail_20' ) end [2025-01-30 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:06:24] Production.INFO: ==7820== Releasing lock... [2025-01-30 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:06:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:07:05 [end_date_ymd] => 2025-01-30 09:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:07:05' and `end` < '2025-01-30 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-30 09:07:18] Production.INFO: count ==844 [2025-01-30 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:07:05 - End Time 2025-01-30 09:07:05 [2025-01-30 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362636', 'tblTempUsageDetail_20' ) start [2025-01-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362636', 'tblTempUsageDetail_20' ) end [2025-01-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362636', 'tblTempVendorCDR_20' ) start [2025-01-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362636', 'tblTempVendorCDR_20' ) end [2025-01-30 09:07:18] Production.INFO: ProcessCDR(1,14362636,1,1,2) [2025-01-30 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362636', 'tblTempUsageDetail_20' ) start [2025-01-30 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362636', 'tblTempUsageDetail_20' ) end [2025-01-30 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:07:24] Production.INFO: ==7914== Releasing lock... [2025-01-30 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:07:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:08:06 [end_date_ymd] => 2025-01-30 09:08:06 [RateCDR] => 1 ) [2025-01-30 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:08:06' and `end` < '2025-01-30 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:08:18] Production.INFO: count ==851 [2025-01-30 09:08:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:08:06 - End Time 2025-01-30 09:08:06 [2025-01-30 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362641', 'tblTempUsageDetail_20' ) start [2025-01-30 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362641', 'tblTempUsageDetail_20' ) end [2025-01-30 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362641', 'tblTempVendorCDR_20' ) start [2025-01-30 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362641', 'tblTempVendorCDR_20' ) end [2025-01-30 09:08:19] Production.INFO: ProcessCDR(1,14362641,1,1,2) [2025-01-30 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362641', 'tblTempUsageDetail_20' ) start [2025-01-30 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362641', 'tblTempUsageDetail_20' ) end [2025-01-30 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:08:22] Production.INFO: ==8021== Releasing lock... [2025-01-30 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-30 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:09:05 [end_date_ymd] => 2025-01-30 09:09:05 [RateCDR] => 1 ) [2025-01-30 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:09:05' and `end` < '2025-01-30 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:09:18] Production.INFO: count ==854 [2025-01-30 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:09:05 - End Time 2025-01-30 09:09:05 [2025-01-30 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362646', 'tblTempUsageDetail_20' ) start [2025-01-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362646', 'tblTempUsageDetail_20' ) end [2025-01-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362646', 'tblTempVendorCDR_20' ) start [2025-01-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362646', 'tblTempVendorCDR_20' ) end [2025-01-30 09:09:18] Production.INFO: ProcessCDR(1,14362646,1,1,2) [2025-01-30 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362646', 'tblTempUsageDetail_20' ) start [2025-01-30 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362646', 'tblTempUsageDetail_20' ) end [2025-01-30 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:09:22] Production.INFO: ==8096== Releasing lock... [2025-01-30 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:10:06 [end_date_ymd] => 2025-01-30 09:10:06 [RateCDR] => 1 ) [2025-01-30 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:10:06' and `end` < '2025-01-30 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:10:19] Production.INFO: count ==875 [2025-01-30 09:10:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:10:06 - End Time 2025-01-30 09:10:06 [2025-01-30 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362652', 'tblTempUsageDetail_20' ) start [2025-01-30 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362652', 'tblTempUsageDetail_20' ) end [2025-01-30 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362652', 'tblTempVendorCDR_20' ) start [2025-01-30 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362652', 'tblTempVendorCDR_20' ) end [2025-01-30 09:10:20] Production.INFO: ProcessCDR(1,14362652,1,1,2) [2025-01-30 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362652', 'tblTempUsageDetail_20' ) start [2025-01-30 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362652', 'tblTempUsageDetail_20' ) end [2025-01-30 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:10:25] Production.INFO: ==8172== Releasing lock... [2025-01-30 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:10:25] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:11:05 [end_date_ymd] => 2025-01-30 09:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:11:05' and `end` < '2025-01-30 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-30 09:11:18] Production.INFO: count ==939 [2025-01-30 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:11:05 - End Time 2025-01-30 09:11:05 [2025-01-30 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362657', 'tblTempUsageDetail_20' ) start [2025-01-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362657', 'tblTempUsageDetail_20' ) end [2025-01-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362657', 'tblTempVendorCDR_20' ) start [2025-01-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362657', 'tblTempVendorCDR_20' ) end [2025-01-30 09:11:18] Production.INFO: ProcessCDR(1,14362657,1,1,2) [2025-01-30 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362657', 'tblTempUsageDetail_20' ) start [2025-01-30 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362657', 'tblTempUsageDetail_20' ) end [2025-01-30 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:11:24] Production.INFO: ==8273== Releasing lock... [2025-01-30 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:11:24] Production.INFO: 35 MB #Memory Used# [2025-01-30 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:12:06 [end_date_ymd] => 2025-01-30 09:12:06 [RateCDR] => 1 ) [2025-01-30 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-30 06:12:06' and `end` < '2025-01-30 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-30 09:12:19] Production.INFO: count ==948 [2025-01-30 09:12:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:12:06 - End Time 2025-01-30 09:12:06 [2025-01-30 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362662', 'tblTempUsageDetail_20' ) start [2025-01-30 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362662', 'tblTempUsageDetail_20' ) end [2025-01-30 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362662', 'tblTempVendorCDR_20' ) start [2025-01-30 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362662', 'tblTempVendorCDR_20' ) end [2025-01-30 09:12:19] Production.INFO: ProcessCDR(1,14362662,1,1,2) [2025-01-30 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362662', 'tblTempUsageDetail_20' ) start [2025-01-30 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362662', 'tblTempUsageDetail_20' ) end [2025-01-30 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:12:24] Production.INFO: ==8362== Releasing lock... [2025-01-30 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:12:24] Production.INFO: 36 MB #Memory Used# [2025-01-30 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:13:05 [end_date_ymd] => 2025-01-30 09:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:13:05' and `end` < '2025-01-30 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-30 09:13:18] Production.INFO: count ==959 [2025-01-30 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:13:05 - End Time 2025-01-30 09:13:05 [2025-01-30 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362667', 'tblTempUsageDetail_20' ) start [2025-01-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362667', 'tblTempUsageDetail_20' ) end [2025-01-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362667', 'tblTempVendorCDR_20' ) start [2025-01-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362667', 'tblTempVendorCDR_20' ) end [2025-01-30 09:13:18] Production.INFO: ProcessCDR(1,14362667,1,1,2) [2025-01-30 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362667', 'tblTempUsageDetail_20' ) start [2025-01-30 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362667', 'tblTempUsageDetail_20' ) end [2025-01-30 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:13:23] Production.INFO: ==8474== Releasing lock... [2025-01-30 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:13:23] Production.INFO: 36 MB #Memory Used# [2025-01-30 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:14:05 [end_date_ymd] => 2025-01-30 09:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:14:05' and `end` < '2025-01-30 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-30 09:14:19] Production.INFO: count ==966 [2025-01-30 09:14:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:14:05 - End Time 2025-01-30 09:14:05 [2025-01-30 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362672', 'tblTempUsageDetail_20' ) start [2025-01-30 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362672', 'tblTempUsageDetail_20' ) end [2025-01-30 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362672', 'tblTempVendorCDR_20' ) start [2025-01-30 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362672', 'tblTempVendorCDR_20' ) end [2025-01-30 09:14:19] Production.INFO: ProcessCDR(1,14362672,1,1,2) [2025-01-30 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362672', 'tblTempUsageDetail_20' ) start [2025-01-30 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362672', 'tblTempUsageDetail_20' ) end [2025-01-30 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:14:23] Production.INFO: ==8551== Releasing lock... [2025-01-30 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:14:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:15:05 [end_date_ymd] => 2025-01-30 09:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:15:05' and `end` < '2025-01-30 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:15:19] Production.INFO: count ==993 [2025-01-30 09:15:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:15:05 - End Time 2025-01-30 09:15:05 [2025-01-30 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362677', 'tblTempUsageDetail_20' ) start [2025-01-30 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362677', 'tblTempUsageDetail_20' ) end [2025-01-30 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362677', 'tblTempVendorCDR_20' ) start [2025-01-30 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362677', 'tblTempVendorCDR_20' ) end [2025-01-30 09:15:19] Production.INFO: ProcessCDR(1,14362677,1,1,2) [2025-01-30 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362677', 'tblTempUsageDetail_20' ) start [2025-01-30 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362677', 'tblTempUsageDetail_20' ) end [2025-01-30 09:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:15:25] Production.INFO: ==8626== Releasing lock... [2025-01-30 09:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:15:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:16:05 [end_date_ymd] => 2025-01-30 09:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:16:05' and `end` < '2025-01-30 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-30 09:16:18] Production.INFO: count ==1007 [2025-01-30 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:16:05 - End Time 2025-01-30 09:16:05 [2025-01-30 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362682', 'tblTempUsageDetail_20' ) start [2025-01-30 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362682', 'tblTempUsageDetail_20' ) end [2025-01-30 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362682', 'tblTempVendorCDR_20' ) start [2025-01-30 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362682', 'tblTempVendorCDR_20' ) end [2025-01-30 09:16:19] Production.INFO: ProcessCDR(1,14362682,1,1,2) [2025-01-30 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362682', 'tblTempUsageDetail_20' ) start [2025-01-30 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362682', 'tblTempUsageDetail_20' ) end [2025-01-30 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:16:24] Production.INFO: ==8699== Releasing lock... [2025-01-30 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:16:24] Production.INFO: 36 MB #Memory Used# [2025-01-30 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:17:06 [end_date_ymd] => 2025-01-30 09:17:06 [RateCDR] => 1 ) [2025-01-30 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:17:06' and `end` < '2025-01-30 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:17:19] Production.INFO: count ==1034 [2025-01-30 09:17:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:17:06 - End Time 2025-01-30 09:17:06 [2025-01-30 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362687', 'tblTempUsageDetail_20' ) start [2025-01-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362687', 'tblTempUsageDetail_20' ) end [2025-01-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362687', 'tblTempVendorCDR_20' ) start [2025-01-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362687', 'tblTempVendorCDR_20' ) end [2025-01-30 09:17:20] Production.INFO: ProcessCDR(1,14362687,1,1,2) [2025-01-30 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362687', 'tblTempUsageDetail_20' ) start [2025-01-30 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362687', 'tblTempUsageDetail_20' ) end [2025-01-30 09:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:17:25] Production.INFO: ==8773== Releasing lock... [2025-01-30 09:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:17:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:18:06 [end_date_ymd] => 2025-01-30 09:18:06 [RateCDR] => 1 ) [2025-01-30 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-30 06:18:06' and `end` < '2025-01-30 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-30 09:18:19] Production.INFO: count ==1057 [2025-01-30 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:18:06 - End Time 2025-01-30 09:18:06 [2025-01-30 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362692', 'tblTempUsageDetail_20' ) start [2025-01-30 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362692', 'tblTempUsageDetail_20' ) end [2025-01-30 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362692', 'tblTempVendorCDR_20' ) start [2025-01-30 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362692', 'tblTempVendorCDR_20' ) end [2025-01-30 09:18:19] Production.INFO: ProcessCDR(1,14362692,1,1,2) [2025-01-30 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362692', 'tblTempUsageDetail_20' ) start [2025-01-30 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362692', 'tblTempUsageDetail_20' ) end [2025-01-30 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:18:25] Production.INFO: ==8846== Releasing lock... [2025-01-30 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:18:25] Production.INFO: 37 MB #Memory Used# [2025-01-30 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:19:06 [end_date_ymd] => 2025-01-30 09:19:06 [RateCDR] => 1 ) [2025-01-30 09:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:19:06' and `end` < '2025-01-30 09:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:19:19] Production.INFO: count ==1077 [2025-01-30 09:19:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:19:06 - End Time 2025-01-30 09:19:06 [2025-01-30 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362697', 'tblTempUsageDetail_20' ) start [2025-01-30 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362697', 'tblTempUsageDetail_20' ) end [2025-01-30 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362697', 'tblTempVendorCDR_20' ) start [2025-01-30 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362697', 'tblTempVendorCDR_20' ) end [2025-01-30 09:19:20] Production.INFO: ProcessCDR(1,14362697,1,1,2) [2025-01-30 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362697', 'tblTempUsageDetail_20' ) start [2025-01-30 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362697', 'tblTempUsageDetail_20' ) end [2025-01-30 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:19:25] Production.INFO: ==8924== Releasing lock... [2025-01-30 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:19:25] Production.INFO: 37 MB #Memory Used# [2025-01-30 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:20:06 [end_date_ymd] => 2025-01-30 09:20:06 [RateCDR] => 1 ) [2025-01-30 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:20:06' and `end` < '2025-01-30 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:20:19] Production.INFO: count ==1132 [2025-01-30 09:20:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:20:06 - End Time 2025-01-30 09:20:06 [2025-01-30 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362703', 'tblTempUsageDetail_20' ) start [2025-01-30 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362703', 'tblTempUsageDetail_20' ) end [2025-01-30 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362703', 'tblTempVendorCDR_20' ) start [2025-01-30 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362703', 'tblTempVendorCDR_20' ) end [2025-01-30 09:20:20] Production.INFO: ProcessCDR(1,14362703,1,1,2) [2025-01-30 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362703', 'tblTempUsageDetail_20' ) start [2025-01-30 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362703', 'tblTempUsageDetail_20' ) end [2025-01-30 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:20:25] Production.INFO: ==9001== Releasing lock... [2025-01-30 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:20:25] Production.INFO: 37.25 MB #Memory Used# [2025-01-30 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:21:05 [end_date_ymd] => 2025-01-30 09:21:05 [RateCDR] => 1 ) [2025-01-30 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:21:05' and `end` < '2025-01-30 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:21:18] Production.INFO: count ==1205 [2025-01-30 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:21:05 - End Time 2025-01-30 09:21:05 [2025-01-30 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362708', 'tblTempUsageDetail_20' ) start [2025-01-30 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362708', 'tblTempUsageDetail_20' ) end [2025-01-30 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362708', 'tblTempVendorCDR_20' ) start [2025-01-30 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362708', 'tblTempVendorCDR_20' ) end [2025-01-30 09:21:19] Production.INFO: ProcessCDR(1,14362708,1,1,2) [2025-01-30 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362708', 'tblTempUsageDetail_20' ) start [2025-01-30 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362708', 'tblTempUsageDetail_20' ) end [2025-01-30 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:21:22] Production.INFO: ==9077== Releasing lock... [2025-01-30 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:22:05 [end_date_ymd] => 2025-01-30 09:22:05 [RateCDR] => 1 ) [2025-01-30 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:22:05' and `end` < '2025-01-30 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:22:19] Production.INFO: count ==1218 [2025-01-30 09:22:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:22:05 - End Time 2025-01-30 09:22:05 [2025-01-30 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362713', 'tblTempUsageDetail_20' ) start [2025-01-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362713', 'tblTempUsageDetail_20' ) end [2025-01-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362713', 'tblTempVendorCDR_20' ) start [2025-01-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362713', 'tblTempVendorCDR_20' ) end [2025-01-30 09:22:19] Production.INFO: ProcessCDR(1,14362713,1,1,2) [2025-01-30 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362713', 'tblTempUsageDetail_20' ) start [2025-01-30 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362713', 'tblTempUsageDetail_20' ) end [2025-01-30 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:22:24] Production.INFO: ==9151== Releasing lock... [2025-01-30 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:22:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-30 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:23:05 [end_date_ymd] => 2025-01-30 09:23:05 [RateCDR] => 1 ) [2025-01-30 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:23:05' and `end` < '2025-01-30 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:23:18] Production.INFO: count ==1269 [2025-01-30 09:23:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:23:05 - End Time 2025-01-30 09:23:05 [2025-01-30 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362718', 'tblTempUsageDetail_20' ) start [2025-01-30 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362718', 'tblTempUsageDetail_20' ) end [2025-01-30 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362718', 'tblTempVendorCDR_20' ) start [2025-01-30 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362718', 'tblTempVendorCDR_20' ) end [2025-01-30 09:23:19] Production.INFO: ProcessCDR(1,14362718,1,1,2) [2025-01-30 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362718', 'tblTempUsageDetail_20' ) start [2025-01-30 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362718', 'tblTempUsageDetail_20' ) end [2025-01-30 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:23:22] Production.INFO: ==9228== Releasing lock... [2025-01-30 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:24:05 [end_date_ymd] => 2025-01-30 09:24:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:24:05' and `end` < '2025-01-30 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-30 09:24:18] Production.INFO: count ==1271 [2025-01-30 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:24:05 - End Time 2025-01-30 09:24:05 [2025-01-30 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362723', 'tblTempUsageDetail_20' ) start [2025-01-30 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362723', 'tblTempUsageDetail_20' ) end [2025-01-30 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362723', 'tblTempVendorCDR_20' ) start [2025-01-30 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362723', 'tblTempVendorCDR_20' ) end [2025-01-30 09:24:18] Production.INFO: ProcessCDR(1,14362723,1,1,2) [2025-01-30 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362723', 'tblTempUsageDetail_20' ) start [2025-01-30 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362723', 'tblTempUsageDetail_20' ) end [2025-01-30 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:24:23] Production.INFO: ==9302== Releasing lock... [2025-01-30 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:24:23] Production.INFO: 38 MB #Memory Used# [2025-01-30 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:25:06 [end_date_ymd] => 2025-01-30 09:25:06 [RateCDR] => 1 ) [2025-01-30 09: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-30 06:25:06' and `end` < '2025-01-30 09: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-30 09:25:28] Production.INFO: count ==1302 [2025-01-30 09:25:28] Production.ERROR: pbx CDR StartTime 2025-01-30 06:25:06 - End Time 2025-01-30 09:25:06 [2025-01-30 09:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362728', 'tblTempUsageDetail_20' ) start [2025-01-30 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362728', 'tblTempUsageDetail_20' ) end [2025-01-30 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362728', 'tblTempVendorCDR_20' ) start [2025-01-30 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362728', 'tblTempVendorCDR_20' ) end [2025-01-30 09:25:28] Production.INFO: ProcessCDR(1,14362728,1,1,2) [2025-01-30 09:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362728', 'tblTempUsageDetail_20' ) start [2025-01-30 09:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362728', 'tblTempUsageDetail_20' ) end [2025-01-30 09:25:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:25:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:25:34] Production.INFO: ==9373== Releasing lock... [2025-01-30 09:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:25:34] Production.INFO: 38 MB #Memory Used# [2025-01-30 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:26:05 [end_date_ymd] => 2025-01-30 09:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:26:05' and `end` < '2025-01-30 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-30 09:26:23] Production.INFO: count ==1314 [2025-01-30 09:26:23] Production.ERROR: pbx CDR StartTime 2025-01-30 06:26:05 - End Time 2025-01-30 09:26:05 [2025-01-30 09:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362733', 'tblTempUsageDetail_20' ) start [2025-01-30 09:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362733', 'tblTempUsageDetail_20' ) end [2025-01-30 09:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362733', 'tblTempVendorCDR_20' ) start [2025-01-30 09:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362733', 'tblTempVendorCDR_20' ) end [2025-01-30 09:26:23] Production.INFO: ProcessCDR(1,14362733,1,1,2) [2025-01-30 09:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362733', 'tblTempUsageDetail_20' ) start [2025-01-30 09:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362733', 'tblTempUsageDetail_20' ) end [2025-01-30 09:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:26:28] Production.INFO: ==9447== Releasing lock... [2025-01-30 09:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:26:28] Production.INFO: 38.75 MB #Memory Used# [2025-01-30 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:27:06 [end_date_ymd] => 2025-01-30 09:27:06 [RateCDR] => 1 ) [2025-01-30 09: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-30 06:27:06' and `end` < '2025-01-30 09: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-30 09:27:24] Production.INFO: count ==1336 [2025-01-30 09:27:25] Production.ERROR: pbx CDR StartTime 2025-01-30 06:27:06 - End Time 2025-01-30 09:27:06 [2025-01-30 09:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362738', 'tblTempUsageDetail_20' ) start [2025-01-30 09:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362738', 'tblTempUsageDetail_20' ) end [2025-01-30 09:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362738', 'tblTempVendorCDR_20' ) start [2025-01-30 09:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362738', 'tblTempVendorCDR_20' ) end [2025-01-30 09:27:25] Production.INFO: ProcessCDR(1,14362738,1,1,2) [2025-01-30 09:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362738', 'tblTempUsageDetail_20' ) start [2025-01-30 09:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362738', 'tblTempUsageDetail_20' ) end [2025-01-30 09:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:27:30] Production.INFO: ==9523== Releasing lock... [2025-01-30 09:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:27:30] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:28:05 [end_date_ymd] => 2025-01-30 09:28:05 [RateCDR] => 1 ) [2025-01-30 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:28:05' and `end` < '2025-01-30 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:28:19] Production.INFO: count ==1360 [2025-01-30 09:28:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:28:05 - End Time 2025-01-30 09:28:05 [2025-01-30 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362743', 'tblTempUsageDetail_20' ) start [2025-01-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362743', 'tblTempUsageDetail_20' ) end [2025-01-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362743', 'tblTempVendorCDR_20' ) start [2025-01-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362743', 'tblTempVendorCDR_20' ) end [2025-01-30 09:28:19] Production.INFO: ProcessCDR(1,14362743,1,1,2) [2025-01-30 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362743', 'tblTempUsageDetail_20' ) start [2025-01-30 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362743', 'tblTempUsageDetail_20' ) end [2025-01-30 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:28:24] Production.INFO: ==9634== Releasing lock... [2025-01-30 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:28:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-30 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:29:05 [end_date_ymd] => 2025-01-30 09:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:29:05' and `end` < '2025-01-30 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-30 09:29:19] Production.INFO: count ==1383 [2025-01-30 09:29:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:29:05 - End Time 2025-01-30 09:29:05 [2025-01-30 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362748', 'tblTempUsageDetail_20' ) start [2025-01-30 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362748', 'tblTempUsageDetail_20' ) end [2025-01-30 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362748', 'tblTempVendorCDR_20' ) start [2025-01-30 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362748', 'tblTempVendorCDR_20' ) end [2025-01-30 09:29:19] Production.INFO: ProcessCDR(1,14362748,1,1,2) [2025-01-30 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362748', 'tblTempUsageDetail_20' ) start [2025-01-30 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362748', 'tblTempUsageDetail_20' ) end [2025-01-30 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:29:24] Production.INFO: ==9709== Releasing lock... [2025-01-30 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-30 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:30:05 [end_date_ymd] => 2025-01-30 09:30:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:30:05' and `end` < '2025-01-30 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-30 09:30:20] Production.INFO: count ==1404 [2025-01-30 09:30:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:30:05 - End Time 2025-01-30 09:30:05 [2025-01-30 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362754', 'tblTempUsageDetail_20' ) start [2025-01-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362754', 'tblTempUsageDetail_20' ) end [2025-01-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362754', 'tblTempVendorCDR_20' ) start [2025-01-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362754', 'tblTempVendorCDR_20' ) end [2025-01-30 09:30:20] Production.INFO: ProcessCDR(1,14362754,1,1,2) [2025-01-30 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362754', 'tblTempUsageDetail_20' ) start [2025-01-30 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362754', 'tblTempUsageDetail_20' ) end [2025-01-30 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:30:26] Production.INFO: ==9786== Releasing lock... [2025-01-30 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:30:26] Production.INFO: 38.5 MB #Memory Used# [2025-01-30 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:31:05 [end_date_ymd] => 2025-01-30 09:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:31:05' and `end` < '2025-01-30 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-30 09:31:23] Production.INFO: count ==1513 [2025-01-30 09:31:24] Production.ERROR: pbx CDR StartTime 2025-01-30 06:31:05 - End Time 2025-01-30 09:31:05 [2025-01-30 09:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362759', 'tblTempUsageDetail_20' ) start [2025-01-30 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362759', 'tblTempUsageDetail_20' ) end [2025-01-30 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362759', 'tblTempVendorCDR_20' ) start [2025-01-30 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362759', 'tblTempVendorCDR_20' ) end [2025-01-30 09:31:24] Production.INFO: ProcessCDR(1,14362759,1,1,2) [2025-01-30 09:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362759', 'tblTempUsageDetail_20' ) start [2025-01-30 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362759', 'tblTempUsageDetail_20' ) end [2025-01-30 09:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:31:29] Production.INFO: ==9863== Releasing lock... [2025-01-30 09:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:31:29] Production.INFO: 39.25 MB #Memory Used# [2025-01-30 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:32:06 [end_date_ymd] => 2025-01-30 09:32:06 [RateCDR] => 1 ) [2025-01-30 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:32:06' and `end` < '2025-01-30 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:32:19] Production.INFO: count ==1520 [2025-01-30 09:32:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:32:06 - End Time 2025-01-30 09:32:06 [2025-01-30 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362764', 'tblTempUsageDetail_20' ) start [2025-01-30 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362764', 'tblTempUsageDetail_20' ) end [2025-01-30 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362764', 'tblTempVendorCDR_20' ) start [2025-01-30 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362764', 'tblTempVendorCDR_20' ) end [2025-01-30 09:32:20] Production.INFO: ProcessCDR(1,14362764,1,1,2) [2025-01-30 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362764', 'tblTempUsageDetail_20' ) start [2025-01-30 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362764', 'tblTempUsageDetail_20' ) end [2025-01-30 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:32:24] Production.INFO: ==9934== Releasing lock... [2025-01-30 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:32:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:33:05 [end_date_ymd] => 2025-01-30 09:33:05 [RateCDR] => 1 ) [2025-01-30 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:33:05' and `end` < '2025-01-30 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:33:18] Production.INFO: count ==1561 [2025-01-30 09:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:33:05 - End Time 2025-01-30 09:33:05 [2025-01-30 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362769', 'tblTempUsageDetail_20' ) start [2025-01-30 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362769', 'tblTempUsageDetail_20' ) end [2025-01-30 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362769', 'tblTempVendorCDR_20' ) start [2025-01-30 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362769', 'tblTempVendorCDR_20' ) end [2025-01-30 09:33:19] Production.INFO: ProcessCDR(1,14362769,1,1,2) [2025-01-30 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362769', 'tblTempUsageDetail_20' ) start [2025-01-30 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362769', 'tblTempUsageDetail_20' ) end [2025-01-30 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:33:22] Production.INFO: ==10009== Releasing lock... [2025-01-30 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-30 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:34:05 [end_date_ymd] => 2025-01-30 09:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:34:05' and `end` < '2025-01-30 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-30 09:34:24] Production.INFO: count ==1580 [2025-01-30 09:34:25] Production.ERROR: pbx CDR StartTime 2025-01-30 06:34:05 - End Time 2025-01-30 09:34:05 [2025-01-30 09:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362774', 'tblTempUsageDetail_20' ) start [2025-01-30 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362774', 'tblTempUsageDetail_20' ) end [2025-01-30 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362774', 'tblTempVendorCDR_20' ) start [2025-01-30 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362774', 'tblTempVendorCDR_20' ) end [2025-01-30 09:34:25] Production.INFO: ProcessCDR(1,14362774,1,1,2) [2025-01-30 09:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362774', 'tblTempUsageDetail_20' ) start [2025-01-30 09:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362774', 'tblTempUsageDetail_20' ) end [2025-01-30 09:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:34:29] Production.INFO: ==10083== Releasing lock... [2025-01-30 09:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:34:29] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:35:05 [end_date_ymd] => 2025-01-30 09:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:35:05' and `end` < '2025-01-30 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-30 09:35:22] Production.INFO: count ==1582 [2025-01-30 09:35:22] Production.ERROR: pbx CDR StartTime 2025-01-30 06:35:05 - End Time 2025-01-30 09:35:05 [2025-01-30 09:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362779', 'tblTempUsageDetail_20' ) start [2025-01-30 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362779', 'tblTempUsageDetail_20' ) end [2025-01-30 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362779', 'tblTempVendorCDR_20' ) start [2025-01-30 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362779', 'tblTempVendorCDR_20' ) end [2025-01-30 09:35:22] Production.INFO: ProcessCDR(1,14362779,1,1,2) [2025-01-30 09:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362779', 'tblTempUsageDetail_20' ) start [2025-01-30 09:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362779', 'tblTempUsageDetail_20' ) end [2025-01-30 09:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:35:27] Production.INFO: ==10154== Releasing lock... [2025-01-30 09:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:35:27] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:36:05 [end_date_ymd] => 2025-01-30 09:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:36:05' and `end` < '2025-01-30 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-30 09:36:21] Production.INFO: count ==1605 [2025-01-30 09:36:22] Production.ERROR: pbx CDR StartTime 2025-01-30 06:36:05 - End Time 2025-01-30 09:36:05 [2025-01-30 09:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362784', 'tblTempUsageDetail_20' ) start [2025-01-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362784', 'tblTempUsageDetail_20' ) end [2025-01-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362784', 'tblTempVendorCDR_20' ) start [2025-01-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362784', 'tblTempVendorCDR_20' ) end [2025-01-30 09:36:22] Production.INFO: ProcessCDR(1,14362784,1,1,2) [2025-01-30 09:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362784', 'tblTempUsageDetail_20' ) start [2025-01-30 09:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362784', 'tblTempUsageDetail_20' ) end [2025-01-30 09:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:36:27] Production.INFO: ==10224== Releasing lock... [2025-01-30 09:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:36:27] Production.INFO: 40.25 MB #Memory Used# [2025-01-30 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:37:05 [end_date_ymd] => 2025-01-30 09:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:37:05' and `end` < '2025-01-30 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-30 09:37:21] Production.INFO: count ==1644 [2025-01-30 09:37:22] Production.ERROR: pbx CDR StartTime 2025-01-30 06:37:05 - End Time 2025-01-30 09:37:05 [2025-01-30 09:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362789', 'tblTempUsageDetail_20' ) start [2025-01-30 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362789', 'tblTempUsageDetail_20' ) end [2025-01-30 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362789', 'tblTempVendorCDR_20' ) start [2025-01-30 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362789', 'tblTempVendorCDR_20' ) end [2025-01-30 09:37:22] Production.INFO: ProcessCDR(1,14362789,1,1,2) [2025-01-30 09:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362789', 'tblTempUsageDetail_20' ) start [2025-01-30 09:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362789', 'tblTempUsageDetail_20' ) end [2025-01-30 09:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:37:27] Production.INFO: ==10300== Releasing lock... [2025-01-30 09:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:37:27] Production.INFO: 40.75 MB #Memory Used# [2025-01-30 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:38:06 [end_date_ymd] => 2025-01-30 09:38:06 [RateCDR] => 1 ) [2025-01-30 09: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-30 06:38:06' and `end` < '2025-01-30 09: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-30 09:38:21] Production.INFO: count ==1657 [2025-01-30 09:38:22] Production.ERROR: pbx CDR StartTime 2025-01-30 06:38:06 - End Time 2025-01-30 09:38:06 [2025-01-30 09:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362794', 'tblTempUsageDetail_20' ) start [2025-01-30 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362794', 'tblTempUsageDetail_20' ) end [2025-01-30 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362794', 'tblTempVendorCDR_20' ) start [2025-01-30 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362794', 'tblTempVendorCDR_20' ) end [2025-01-30 09:38:22] Production.INFO: ProcessCDR(1,14362794,1,1,2) [2025-01-30 09:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362794', 'tblTempUsageDetail_20' ) start [2025-01-30 09:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362794', 'tblTempUsageDetail_20' ) end [2025-01-30 09:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:38:27] Production.INFO: ==10371== Releasing lock... [2025-01-30 09:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:38:27] Production.INFO: 41 MB #Memory Used# [2025-01-30 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:39:05 [end_date_ymd] => 2025-01-30 09:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:39:05' and `end` < '2025-01-30 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-30 09:39:19] Production.INFO: count ==1674 [2025-01-30 09:39:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:39:05 - End Time 2025-01-30 09:39:05 [2025-01-30 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362799', 'tblTempUsageDetail_20' ) start [2025-01-30 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362799', 'tblTempUsageDetail_20' ) end [2025-01-30 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362799', 'tblTempVendorCDR_20' ) start [2025-01-30 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362799', 'tblTempVendorCDR_20' ) end [2025-01-30 09:39:20] Production.INFO: ProcessCDR(1,14362799,1,1,2) [2025-01-30 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362799', 'tblTempUsageDetail_20' ) start [2025-01-30 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362799', 'tblTempUsageDetail_20' ) end [2025-01-30 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:39:23] Production.INFO: ==10442== Releasing lock... [2025-01-30 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:39:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-30 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:40:06 [end_date_ymd] => 2025-01-30 09:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 06:40:06' and `end` < '2025-01-30 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-30 09:40:19] Production.INFO: count ==1697 [2025-01-30 09:40:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:40:06 - End Time 2025-01-30 09:40:06 [2025-01-30 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362805', 'tblTempUsageDetail_20' ) start [2025-01-30 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362805', 'tblTempUsageDetail_20' ) end [2025-01-30 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362805', 'tblTempVendorCDR_20' ) start [2025-01-30 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362805', 'tblTempVendorCDR_20' ) end [2025-01-30 09:40:20] Production.INFO: ProcessCDR(1,14362805,1,1,2) [2025-01-30 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362805', 'tblTempUsageDetail_20' ) start [2025-01-30 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362805', 'tblTempUsageDetail_20' ) end [2025-01-30 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:40:25] Production.INFO: ==10516== Releasing lock... [2025-01-30 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:40:25] Production.INFO: 41 MB #Memory Used# [2025-01-30 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:41:05 [end_date_ymd] => 2025-01-30 09:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:41:05' and `end` < '2025-01-30 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-30 09:41:18] Production.INFO: count ==1775 [2025-01-30 09:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:41:05 - End Time 2025-01-30 09:41:05 [2025-01-30 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362810', 'tblTempUsageDetail_20' ) start [2025-01-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362810', 'tblTempUsageDetail_20' ) end [2025-01-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362810', 'tblTempVendorCDR_20' ) start [2025-01-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362810', 'tblTempVendorCDR_20' ) end [2025-01-30 09:41:19] Production.INFO: ProcessCDR(1,14362810,1,1,2) [2025-01-30 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362810', 'tblTempUsageDetail_20' ) start [2025-01-30 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362810', 'tblTempUsageDetail_20' ) end [2025-01-30 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:41:24] Production.INFO: ==10588== Releasing lock... [2025-01-30 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:41:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-30 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:42:05 [end_date_ymd] => 2025-01-30 09:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:42:05' and `end` < '2025-01-30 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-30 09:42:18] Production.INFO: count ==1794 [2025-01-30 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:42:05 - End Time 2025-01-30 09:42:05 [2025-01-30 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362815', 'tblTempUsageDetail_20' ) start [2025-01-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362815', 'tblTempUsageDetail_20' ) end [2025-01-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362815', 'tblTempVendorCDR_20' ) start [2025-01-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362815', 'tblTempVendorCDR_20' ) end [2025-01-30 09:42:19] Production.INFO: ProcessCDR(1,14362815,1,1,2) [2025-01-30 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362815', 'tblTempUsageDetail_20' ) start [2025-01-30 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362815', 'tblTempUsageDetail_20' ) end [2025-01-30 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:42:24] Production.INFO: ==10658== Releasing lock... [2025-01-30 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:42:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:43:04 [end_date_ymd] => 2025-01-30 09:43:04 [RateCDR] => 1 ) [2025-01-30 09: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-30 06:43:04' and `end` < '2025-01-30 09: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-30 09:43:17] Production.INFO: count ==1797 [2025-01-30 09:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 06:43:04 - End Time 2025-01-30 09:43:04 [2025-01-30 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362820', 'tblTempUsageDetail_20' ) start [2025-01-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362820', 'tblTempUsageDetail_20' ) end [2025-01-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362820', 'tblTempVendorCDR_20' ) start [2025-01-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362820', 'tblTempVendorCDR_20' ) end [2025-01-30 09:43:18] Production.INFO: ProcessCDR(1,14362820,1,1,2) [2025-01-30 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362820', 'tblTempUsageDetail_20' ) start [2025-01-30 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362820', 'tblTempUsageDetail_20' ) end [2025-01-30 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:43:22] Production.INFO: ==10727== Releasing lock... [2025-01-30 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:43:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:44:05 [end_date_ymd] => 2025-01-30 09:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:44:05' and `end` < '2025-01-30 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-30 09:44:19] Production.INFO: count ==1810 [2025-01-30 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:44:05 - End Time 2025-01-30 09:44:05 [2025-01-30 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362825', 'tblTempUsageDetail_20' ) start [2025-01-30 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362825', 'tblTempUsageDetail_20' ) end [2025-01-30 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362825', 'tblTempVendorCDR_20' ) start [2025-01-30 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362825', 'tblTempVendorCDR_20' ) end [2025-01-30 09:44:19] Production.INFO: ProcessCDR(1,14362825,1,1,2) [2025-01-30 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362825', 'tblTempUsageDetail_20' ) start [2025-01-30 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362825', 'tblTempUsageDetail_20' ) end [2025-01-30 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:44:25] Production.INFO: ==10836== Releasing lock... [2025-01-30 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:44:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:45:05 [end_date_ymd] => 2025-01-30 09:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:45:05' and `end` < '2025-01-30 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-30 09:45:18] Production.INFO: count ==1841 [2025-01-30 09:45:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:45:05 - End Time 2025-01-30 09:45:05 [2025-01-30 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362830', 'tblTempUsageDetail_20' ) start [2025-01-30 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362830', 'tblTempUsageDetail_20' ) end [2025-01-30 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362830', 'tblTempVendorCDR_20' ) start [2025-01-30 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362830', 'tblTempVendorCDR_20' ) end [2025-01-30 09:45:19] Production.INFO: ProcessCDR(1,14362830,1,1,2) [2025-01-30 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362830', 'tblTempUsageDetail_20' ) start [2025-01-30 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362830', 'tblTempUsageDetail_20' ) end [2025-01-30 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:45:25] Production.INFO: ==10913== Releasing lock... [2025-01-30 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:45:25] Production.INFO: 41.75 MB #Memory Used# [2025-01-30 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:46:06 [end_date_ymd] => 2025-01-30 09:46:06 [RateCDR] => 1 ) [2025-01-30 09:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:46:06' and `end` < '2025-01-30 09:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:46:28] Production.INFO: count ==1858 [2025-01-30 09:46:29] Production.ERROR: pbx CDR StartTime 2025-01-30 06:46:06 - End Time 2025-01-30 09:46:06 [2025-01-30 09:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362835', 'tblTempUsageDetail_20' ) start [2025-01-30 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362835', 'tblTempUsageDetail_20' ) end [2025-01-30 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362835', 'tblTempVendorCDR_20' ) start [2025-01-30 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362835', 'tblTempVendorCDR_20' ) end [2025-01-30 09:46:29] Production.INFO: ProcessCDR(1,14362835,1,1,2) [2025-01-30 09:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362835', 'tblTempUsageDetail_20' ) start [2025-01-30 09:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362835', 'tblTempUsageDetail_20' ) end [2025-01-30 09:46:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:46:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:46:35] Production.INFO: ==10982== Releasing lock... [2025-01-30 09:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:46:35] Production.INFO: 42.25 MB #Memory Used# [2025-01-30 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:47:05 [end_date_ymd] => 2025-01-30 09:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:47:05' and `end` < '2025-01-30 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-30 09:47:21] Production.INFO: count ==1888 [2025-01-30 09:47:22] Production.ERROR: pbx CDR StartTime 2025-01-30 06:47:05 - End Time 2025-01-30 09:47:05 [2025-01-30 09:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362840', 'tblTempUsageDetail_20' ) start [2025-01-30 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362840', 'tblTempUsageDetail_20' ) end [2025-01-30 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362840', 'tblTempVendorCDR_20' ) start [2025-01-30 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362840', 'tblTempVendorCDR_20' ) end [2025-01-30 09:47:22] Production.INFO: ProcessCDR(1,14362840,1,1,2) [2025-01-30 09:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362840', 'tblTempUsageDetail_20' ) start [2025-01-30 09:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362840', 'tblTempUsageDetail_20' ) end [2025-01-30 09:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:47:28] Production.INFO: ==11058== Releasing lock... [2025-01-30 09:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:47:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-30 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:48:05 [end_date_ymd] => 2025-01-30 09:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:48:05' and `end` < '2025-01-30 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-30 09:48:18] Production.INFO: count ==1916 [2025-01-30 09:48:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:48:05 - End Time 2025-01-30 09:48:05 [2025-01-30 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362845', 'tblTempUsageDetail_20' ) start [2025-01-30 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362845', 'tblTempUsageDetail_20' ) end [2025-01-30 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362845', 'tblTempVendorCDR_20' ) start [2025-01-30 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362845', 'tblTempVendorCDR_20' ) end [2025-01-30 09:48:19] Production.INFO: ProcessCDR(1,14362845,1,1,2) [2025-01-30 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362845', 'tblTempUsageDetail_20' ) start [2025-01-30 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362845', 'tblTempUsageDetail_20' ) end [2025-01-30 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:48:24] Production.INFO: ==11129== Releasing lock... [2025-01-30 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:48:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:49:05 [end_date_ymd] => 2025-01-30 09:49:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:49:05' and `end` < '2025-01-30 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-30 09:49:21] Production.INFO: count ==1926 [2025-01-30 09:49:22] Production.ERROR: pbx CDR StartTime 2025-01-30 06:49:05 - End Time 2025-01-30 09:49:05 [2025-01-30 09:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362850', 'tblTempUsageDetail_20' ) start [2025-01-30 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362850', 'tblTempUsageDetail_20' ) end [2025-01-30 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362850', 'tblTempVendorCDR_20' ) start [2025-01-30 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362850', 'tblTempVendorCDR_20' ) end [2025-01-30 09:49:22] Production.INFO: ProcessCDR(1,14362850,1,1,2) [2025-01-30 09:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362850', 'tblTempUsageDetail_20' ) start [2025-01-30 09:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362850', 'tblTempUsageDetail_20' ) end [2025-01-30 09:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:49:27] Production.INFO: ==11202== Releasing lock... [2025-01-30 09:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:49:27] Production.INFO: 42.5 MB #Memory Used# [2025-01-30 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:50:06 [end_date_ymd] => 2025-01-30 09:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 06:50:06' and `end` < '2025-01-30 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-30 09:50:32] Production.INFO: count ==1972 [2025-01-30 09:50:33] Production.ERROR: pbx CDR StartTime 2025-01-30 06:50:06 - End Time 2025-01-30 09:50:06 [2025-01-30 09:50:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362856', 'tblTempUsageDetail_20' ) start [2025-01-30 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362856', 'tblTempUsageDetail_20' ) end [2025-01-30 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362856', 'tblTempVendorCDR_20' ) start [2025-01-30 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362856', 'tblTempVendorCDR_20' ) end [2025-01-30 09:50:33] Production.INFO: ProcessCDR(1,14362856,1,1,2) [2025-01-30 09:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362856', 'tblTempUsageDetail_20' ) start [2025-01-30 09:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362856', 'tblTempUsageDetail_20' ) end [2025-01-30 09:50:38] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:50:38] Production.INFO: ==11278== Releasing lock... [2025-01-30 09:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:50:38] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:51:05 [end_date_ymd] => 2025-01-30 09:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:51:05' and `end` < '2025-01-30 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-30 09:51:22] Production.INFO: count ==2055 [2025-01-30 09:51:23] Production.ERROR: pbx CDR StartTime 2025-01-30 06:51:05 - End Time 2025-01-30 09:51:05 [2025-01-30 09:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362861', 'tblTempUsageDetail_20' ) start [2025-01-30 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362861', 'tblTempUsageDetail_20' ) end [2025-01-30 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362861', 'tblTempVendorCDR_20' ) start [2025-01-30 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362861', 'tblTempVendorCDR_20' ) end [2025-01-30 09:51:23] Production.INFO: ProcessCDR(1,14362861,1,1,2) [2025-01-30 09:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362861', 'tblTempUsageDetail_20' ) start [2025-01-30 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362861', 'tblTempUsageDetail_20' ) end [2025-01-30 09:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:51:28] Production.INFO: ==11351== Releasing lock... [2025-01-30 09:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:51:28] Production.INFO: 44.25 MB #Memory Used# [2025-01-30 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:52:05 [end_date_ymd] => 2025-01-30 09:52:05 [RateCDR] => 1 ) [2025-01-30 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:52:05' and `end` < '2025-01-30 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:52:19] Production.INFO: count ==2098 [2025-01-30 09:52:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:52:05 - End Time 2025-01-30 09:52:05 [2025-01-30 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362866', 'tblTempUsageDetail_20' ) start [2025-01-30 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362866', 'tblTempUsageDetail_20' ) end [2025-01-30 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362866', 'tblTempVendorCDR_20' ) start [2025-01-30 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362866', 'tblTempVendorCDR_20' ) end [2025-01-30 09:52:20] Production.INFO: ProcessCDR(1,14362866,1,1,2) [2025-01-30 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362866', 'tblTempUsageDetail_20' ) start [2025-01-30 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362866', 'tblTempUsageDetail_20' ) end [2025-01-30 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:52:25] Production.INFO: ==11434== Releasing lock... [2025-01-30 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:52:25] Production.INFO: 44 MB #Memory Used# [2025-01-30 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:53:05 [end_date_ymd] => 2025-01-30 09:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:53:05' and `end` < '2025-01-30 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-30 09:53:24] Production.INFO: count ==2144 [2025-01-30 09:53:25] Production.ERROR: pbx CDR StartTime 2025-01-30 06:53:05 - End Time 2025-01-30 09:53:05 [2025-01-30 09:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362871', 'tblTempUsageDetail_20' ) start [2025-01-30 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362871', 'tblTempUsageDetail_20' ) end [2025-01-30 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362871', 'tblTempVendorCDR_20' ) start [2025-01-30 09:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362871', 'tblTempVendorCDR_20' ) end [2025-01-30 09:53:25] Production.INFO: ProcessCDR(1,14362871,1,1,2) [2025-01-30 09:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362871', 'tblTempUsageDetail_20' ) start [2025-01-30 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362871', 'tblTempUsageDetail_20' ) end [2025-01-30 09:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:53:30] Production.INFO: ==11510== Releasing lock... [2025-01-30 09:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:53:30] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:54:05 [end_date_ymd] => 2025-01-30 09:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:54:05' and `end` < '2025-01-30 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-30 09:54:19] Production.INFO: count ==2203 [2025-01-30 09:54:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:54:05 - End Time 2025-01-30 09:54:05 [2025-01-30 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362876', 'tblTempUsageDetail_20' ) start [2025-01-30 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362876', 'tblTempUsageDetail_20' ) end [2025-01-30 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362876', 'tblTempVendorCDR_20' ) start [2025-01-30 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362876', 'tblTempVendorCDR_20' ) end [2025-01-30 09:54:20] Production.INFO: ProcessCDR(1,14362876,1,1,2) [2025-01-30 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362876', 'tblTempUsageDetail_20' ) start [2025-01-30 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362876', 'tblTempUsageDetail_20' ) end [2025-01-30 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:54:25] Production.INFO: ==11586== Releasing lock... [2025-01-30 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:54:25] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:55:06 [end_date_ymd] => 2025-01-30 09:55:06 [RateCDR] => 1 ) [2025-01-30 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 06:55:06' and `end` < '2025-01-30 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 09:55:22] Production.INFO: count ==2207 [2025-01-30 09:55:23] Production.ERROR: pbx CDR StartTime 2025-01-30 06:55:06 - End Time 2025-01-30 09:55:06 [2025-01-30 09:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362881', 'tblTempUsageDetail_20' ) start [2025-01-30 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362881', 'tblTempUsageDetail_20' ) end [2025-01-30 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362881', 'tblTempVendorCDR_20' ) start [2025-01-30 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362881', 'tblTempVendorCDR_20' ) end [2025-01-30 09:55:23] Production.INFO: ProcessCDR(1,14362881,1,1,2) [2025-01-30 09:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362881', 'tblTempUsageDetail_20' ) start [2025-01-30 09:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362881', 'tblTempUsageDetail_20' ) end [2025-01-30 09:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:55:28] Production.INFO: ==11658== Releasing lock... [2025-01-30 09:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:55:28] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:56:05 [end_date_ymd] => 2025-01-30 09:56:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:56:05' and `end` < '2025-01-30 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-30 09:56:19] Production.INFO: count ==2233 [2025-01-30 09:56:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:56:05 - End Time 2025-01-30 09:56:05 [2025-01-30 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362886', 'tblTempUsageDetail_20' ) start [2025-01-30 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362886', 'tblTempUsageDetail_20' ) end [2025-01-30 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362886', 'tblTempVendorCDR_20' ) start [2025-01-30 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362886', 'tblTempVendorCDR_20' ) end [2025-01-30 09:56:19] Production.INFO: ProcessCDR(1,14362886,1,1,2) [2025-01-30 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362886', 'tblTempUsageDetail_20' ) start [2025-01-30 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362886', 'tblTempUsageDetail_20' ) end [2025-01-30 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:56:24] Production.INFO: ==11734== Releasing lock... [2025-01-30 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:56:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:57:05 [end_date_ymd] => 2025-01-30 09:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:57:05' and `end` < '2025-01-30 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-30 09:57:19] Production.INFO: count ==2254 [2025-01-30 09:57:20] Production.ERROR: pbx CDR StartTime 2025-01-30 06:57:05 - End Time 2025-01-30 09:57:05 [2025-01-30 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362891', 'tblTempUsageDetail_20' ) start [2025-01-30 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362891', 'tblTempUsageDetail_20' ) end [2025-01-30 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362891', 'tblTempVendorCDR_20' ) start [2025-01-30 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362891', 'tblTempVendorCDR_20' ) end [2025-01-30 09:57:20] Production.INFO: ProcessCDR(1,14362891,1,1,2) [2025-01-30 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362891', 'tblTempUsageDetail_20' ) start [2025-01-30 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362891', 'tblTempUsageDetail_20' ) end [2025-01-30 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:57:25] Production.INFO: ==11809== Releasing lock... [2025-01-30 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:57:25] Production.INFO: 45 MB #Memory Used# [2025-01-30 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:58:05 [end_date_ymd] => 2025-01-30 09:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:58:05' and `end` < '2025-01-30 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-30 09:58:20] Production.INFO: count ==2284 [2025-01-30 09:58:21] Production.ERROR: pbx CDR StartTime 2025-01-30 06:58:05 - End Time 2025-01-30 09:58:05 [2025-01-30 09:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362896', 'tblTempUsageDetail_20' ) start [2025-01-30 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362896', 'tblTempUsageDetail_20' ) end [2025-01-30 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362896', 'tblTempVendorCDR_20' ) start [2025-01-30 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362896', 'tblTempVendorCDR_20' ) end [2025-01-30 09:58:21] Production.INFO: ProcessCDR(1,14362896,1,1,2) [2025-01-30 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362896', 'tblTempUsageDetail_20' ) start [2025-01-30 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362896', 'tblTempUsageDetail_20' ) end [2025-01-30 09:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:58:26] Production.INFO: ==11882== Releasing lock... [2025-01-30 09:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:58:26] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 06:59:05 [end_date_ymd] => 2025-01-30 09:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 06:59:05' and `end` < '2025-01-30 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-30 09:59:18] Production.INFO: count ==2299 [2025-01-30 09:59:19] Production.ERROR: pbx CDR StartTime 2025-01-30 06:59:05 - End Time 2025-01-30 09:59:05 [2025-01-30 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362901', 'tblTempUsageDetail_20' ) start [2025-01-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362901', 'tblTempUsageDetail_20' ) end [2025-01-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362901', 'tblTempVendorCDR_20' ) start [2025-01-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362901', 'tblTempVendorCDR_20' ) end [2025-01-30 09:59:19] Production.INFO: ProcessCDR(1,14362901,1,1,2) [2025-01-30 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362901', 'tblTempUsageDetail_20' ) start [2025-01-30 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362901', 'tblTempUsageDetail_20' ) end [2025-01-30 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 09:59:24] Production.INFO: ==11993== Releasing lock... [2025-01-30 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 09:59:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:00:06 [end_date_ymd] => 2025-01-30 10:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 07:00:06' and `end` < '2025-01-30 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-30 10:00:21] Production.INFO: count ==2337 [2025-01-30 10:00:22] Production.ERROR: pbx CDR StartTime 2025-01-30 07:00:06 - End Time 2025-01-30 10:00:06 [2025-01-30 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362907', 'tblTempUsageDetail_20' ) start [2025-01-30 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362907', 'tblTempUsageDetail_20' ) end [2025-01-30 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362907', 'tblTempVendorCDR_20' ) start [2025-01-30 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362907', 'tblTempVendorCDR_20' ) end [2025-01-30 10:00:22] Production.INFO: ProcessCDR(1,14362907,1,1,2) [2025-01-30 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362907', 'tblTempUsageDetail_20' ) start [2025-01-30 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362907', 'tblTempUsageDetail_20' ) end [2025-01-30 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:00:27] Production.INFO: ==12071== Releasing lock... [2025-01-30 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:00:27] Production.INFO: 45.75 MB #Memory Used# [2025-01-30 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:01:05 [end_date_ymd] => 2025-01-30 10:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:01:05' and `end` < '2025-01-30 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-30 10:01:25] Production.INFO: count ==2436 [2025-01-30 10:01:26] Production.ERROR: pbx CDR StartTime 2025-01-30 07:01:05 - End Time 2025-01-30 10:01:05 [2025-01-30 10:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362912', 'tblTempUsageDetail_20' ) start [2025-01-30 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362912', 'tblTempUsageDetail_20' ) end [2025-01-30 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362912', 'tblTempVendorCDR_20' ) start [2025-01-30 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362912', 'tblTempVendorCDR_20' ) end [2025-01-30 10:01:26] Production.INFO: ProcessCDR(1,14362912,1,1,2) [2025-01-30 10:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362912', 'tblTempUsageDetail_20' ) start [2025-01-30 10:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362912', 'tblTempUsageDetail_20' ) end [2025-01-30 10:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:01:31] Production.INFO: ==12162== Releasing lock... [2025-01-30 10:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:01:31] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:02:05 [end_date_ymd] => 2025-01-30 10:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:02:05' and `end` < '2025-01-30 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-30 10:02:20] Production.INFO: count ==2441 [2025-01-30 10:02:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:02:05 - End Time 2025-01-30 10:02:05 [2025-01-30 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362917', 'tblTempUsageDetail_20' ) start [2025-01-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362917', 'tblTempUsageDetail_20' ) end [2025-01-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362917', 'tblTempVendorCDR_20' ) start [2025-01-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362917', 'tblTempVendorCDR_20' ) end [2025-01-30 10:02:21] Production.INFO: ProcessCDR(1,14362917,1,1,2) [2025-01-30 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362917', 'tblTempUsageDetail_20' ) start [2025-01-30 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362917', 'tblTempUsageDetail_20' ) end [2025-01-30 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:02:26] Production.INFO: ==12235== Releasing lock... [2025-01-30 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:02:26] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:03:05 [end_date_ymd] => 2025-01-30 10:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:03:05' and `end` < '2025-01-30 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-30 10:03:19] Production.INFO: count ==2444 [2025-01-30 10:03:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:03:05 - End Time 2025-01-30 10:03:05 [2025-01-30 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362922', 'tblTempUsageDetail_20' ) start [2025-01-30 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362922', 'tblTempUsageDetail_20' ) end [2025-01-30 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362922', 'tblTempVendorCDR_20' ) start [2025-01-30 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362922', 'tblTempVendorCDR_20' ) end [2025-01-30 10:03:20] Production.INFO: ProcessCDR(1,14362922,1,1,2) [2025-01-30 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362922', 'tblTempUsageDetail_20' ) start [2025-01-30 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362922', 'tblTempUsageDetail_20' ) end [2025-01-30 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:03:25] Production.INFO: ==12309== Releasing lock... [2025-01-30 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:03:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:04:06 [end_date_ymd] => 2025-01-30 10:04:06 [RateCDR] => 1 ) [2025-01-30 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:04:06' and `end` < '2025-01-30 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:04:22] Production.INFO: count ==2459 [2025-01-30 10:04:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:04:06 - End Time 2025-01-30 10:04:06 [2025-01-30 10:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362927', 'tblTempUsageDetail_20' ) start [2025-01-30 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362927', 'tblTempUsageDetail_20' ) end [2025-01-30 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362927', 'tblTempVendorCDR_20' ) start [2025-01-30 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362927', 'tblTempVendorCDR_20' ) end [2025-01-30 10:04:23] Production.INFO: ProcessCDR(1,14362927,1,1,2) [2025-01-30 10:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362927', 'tblTempUsageDetail_20' ) start [2025-01-30 10:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362927', 'tblTempUsageDetail_20' ) end [2025-01-30 10:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:04:29] Production.INFO: ==12384== Releasing lock... [2025-01-30 10:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:04:29] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:05:05 [end_date_ymd] => 2025-01-30 10:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:05:05' and `end` < '2025-01-30 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-30 10:05:19] Production.INFO: count ==2470 [2025-01-30 10:05:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:05:05 - End Time 2025-01-30 10:05:05 [2025-01-30 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362932', 'tblTempUsageDetail_20' ) start [2025-01-30 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362932', 'tblTempUsageDetail_20' ) end [2025-01-30 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362932', 'tblTempVendorCDR_20' ) start [2025-01-30 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362932', 'tblTempVendorCDR_20' ) end [2025-01-30 10:05:20] Production.INFO: ProcessCDR(1,14362932,1,1,2) [2025-01-30 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362932', 'tblTempUsageDetail_20' ) start [2025-01-30 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362932', 'tblTempUsageDetail_20' ) end [2025-01-30 10:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:05:26] Production.INFO: ==12457== Releasing lock... [2025-01-30 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:05:26] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:06:06 [end_date_ymd] => 2025-01-30 10:06:06 [RateCDR] => 1 ) [2025-01-30 10: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-30 07:06:06' and `end` < '2025-01-30 10: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-30 10:06:20] Production.INFO: count ==2502 [2025-01-30 10:06:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:06:06 - End Time 2025-01-30 10:06:06 [2025-01-30 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362937', 'tblTempUsageDetail_20' ) start [2025-01-30 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362937', 'tblTempUsageDetail_20' ) end [2025-01-30 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362937', 'tblTempVendorCDR_20' ) start [2025-01-30 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362937', 'tblTempVendorCDR_20' ) end [2025-01-30 10:06:21] Production.INFO: ProcessCDR(1,14362937,1,1,2) [2025-01-30 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362937', 'tblTempUsageDetail_20' ) start [2025-01-30 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362937', 'tblTempUsageDetail_20' ) end [2025-01-30 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:06:26] Production.INFO: ==12533== Releasing lock... [2025-01-30 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:06:26] Production.INFO: 46.75 MB #Memory Used# [2025-01-30 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:07:05 [end_date_ymd] => 2025-01-30 10:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:07:05' and `end` < '2025-01-30 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-30 10:07:24] Production.INFO: count ==2516 [2025-01-30 10:07:25] Production.ERROR: pbx CDR StartTime 2025-01-30 07:07:05 - End Time 2025-01-30 10:07:05 [2025-01-30 10:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362942', 'tblTempUsageDetail_20' ) start [2025-01-30 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362942', 'tblTempUsageDetail_20' ) end [2025-01-30 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362942', 'tblTempVendorCDR_20' ) start [2025-01-30 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362942', 'tblTempVendorCDR_20' ) end [2025-01-30 10:07:25] Production.INFO: ProcessCDR(1,14362942,1,1,2) [2025-01-30 10:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362942', 'tblTempUsageDetail_20' ) start [2025-01-30 10:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362942', 'tblTempUsageDetail_20' ) end [2025-01-30 10:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:07:30] Production.INFO: ==12609== Releasing lock... [2025-01-30 10:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:07:30] Production.INFO: 47 MB #Memory Used# [2025-01-30 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:08:06 [end_date_ymd] => 2025-01-30 10:08:06 [RateCDR] => 1 ) [2025-01-30 10: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-30 07:08:06' and `end` < '2025-01-30 10: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-30 10:08:23] Production.INFO: count ==2534 [2025-01-30 10:08:24] Production.ERROR: pbx CDR StartTime 2025-01-30 07:08:06 - End Time 2025-01-30 10:08:06 [2025-01-30 10:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362947', 'tblTempUsageDetail_20' ) start [2025-01-30 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362947', 'tblTempUsageDetail_20' ) end [2025-01-30 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362947', 'tblTempVendorCDR_20' ) start [2025-01-30 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362947', 'tblTempVendorCDR_20' ) end [2025-01-30 10:08:25] Production.INFO: ProcessCDR(1,14362947,1,1,2) [2025-01-30 10:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362947', 'tblTempUsageDetail_20' ) start [2025-01-30 10:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362947', 'tblTempUsageDetail_20' ) end [2025-01-30 10:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:08:29] Production.INFO: ==12686== Releasing lock... [2025-01-30 10:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:08:29] Production.INFO: 47 MB #Memory Used# [2025-01-30 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:09:06 [end_date_ymd] => 2025-01-30 10:09:06 [RateCDR] => 1 ) [2025-01-30 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:09:06' and `end` < '2025-01-30 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:09:21] Production.INFO: count ==2562 [2025-01-30 10:09:22] Production.ERROR: pbx CDR StartTime 2025-01-30 07:09:06 - End Time 2025-01-30 10:09:06 [2025-01-30 10:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362952', 'tblTempUsageDetail_20' ) start [2025-01-30 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362952', 'tblTempUsageDetail_20' ) end [2025-01-30 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362952', 'tblTempVendorCDR_20' ) start [2025-01-30 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362952', 'tblTempVendorCDR_20' ) end [2025-01-30 10:09:22] Production.INFO: ProcessCDR(1,14362952,1,1,2) [2025-01-30 10:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362952', 'tblTempUsageDetail_20' ) start [2025-01-30 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362952', 'tblTempUsageDetail_20' ) end [2025-01-30 10:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:09:27] Production.INFO: ==12759== Releasing lock... [2025-01-30 10:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:09:27] Production.INFO: 47.25 MB #Memory Used# [2025-01-30 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:10:06 [end_date_ymd] => 2025-01-30 10:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 07:10:06' and `end` < '2025-01-30 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-30 10:10:26] Production.INFO: count ==2569 [2025-01-30 10:10:27] Production.ERROR: pbx CDR StartTime 2025-01-30 07:10:06 - End Time 2025-01-30 10:10:06 [2025-01-30 10:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362958', 'tblTempUsageDetail_20' ) start [2025-01-30 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362958', 'tblTempUsageDetail_20' ) end [2025-01-30 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362958', 'tblTempVendorCDR_20' ) start [2025-01-30 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362958', 'tblTempVendorCDR_20' ) end [2025-01-30 10:10:27] Production.INFO: ProcessCDR(1,14362958,1,1,2) [2025-01-30 10:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362958', 'tblTempUsageDetail_20' ) start [2025-01-30 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362958', 'tblTempUsageDetail_20' ) end [2025-01-30 10:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:10:32] Production.INFO: ==12835== Releasing lock... [2025-01-30 10:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:10:32] Production.INFO: 47.25 MB #Memory Used# [2025-01-30 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:11:05 [end_date_ymd] => 2025-01-30 10:11:05 [RateCDR] => 1 ) [2025-01-30 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:11:05' and `end` < '2025-01-30 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:11:20] Production.INFO: count ==2654 [2025-01-30 10:11:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:11:05 - End Time 2025-01-30 10:11:05 [2025-01-30 10:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362963', 'tblTempUsageDetail_20' ) start [2025-01-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362963', 'tblTempUsageDetail_20' ) end [2025-01-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362963', 'tblTempVendorCDR_20' ) start [2025-01-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362963', 'tblTempVendorCDR_20' ) end [2025-01-30 10:11:21] Production.INFO: ProcessCDR(1,14362963,1,1,2) [2025-01-30 10:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362963', 'tblTempUsageDetail_20' ) start [2025-01-30 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362963', 'tblTempUsageDetail_20' ) end [2025-01-30 10:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:11:26] Production.INFO: ==12912== Releasing lock... [2025-01-30 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:11:26] Production.INFO: 47.75 MB #Memory Used# [2025-01-30 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:12:06 [end_date_ymd] => 2025-01-30 10:12:06 [RateCDR] => 1 ) [2025-01-30 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:12:06' and `end` < '2025-01-30 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:12:25] Production.INFO: count ==2663 [2025-01-30 10:12:26] Production.ERROR: pbx CDR StartTime 2025-01-30 07:12:06 - End Time 2025-01-30 10:12:06 [2025-01-30 10:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362968', 'tblTempUsageDetail_20' ) start [2025-01-30 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362968', 'tblTempUsageDetail_20' ) end [2025-01-30 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362968', 'tblTempVendorCDR_20' ) start [2025-01-30 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362968', 'tblTempVendorCDR_20' ) end [2025-01-30 10:12:26] Production.INFO: ProcessCDR(1,14362968,1,1,2) [2025-01-30 10:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362968', 'tblTempUsageDetail_20' ) start [2025-01-30 10:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362968', 'tblTempUsageDetail_20' ) end [2025-01-30 10:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:12:31] Production.INFO: ==12988== Releasing lock... [2025-01-30 10:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:12:31] Production.INFO: 48 MB #Memory Used# [2025-01-30 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:13:04 [end_date_ymd] => 2025-01-30 10:13:04 [RateCDR] => 1 ) [2025-01-30 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-30 07:13:04' and `end` < '2025-01-30 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-30 10:13:18] Production.INFO: count ==2678 [2025-01-30 10:13:19] Production.ERROR: pbx CDR StartTime 2025-01-30 07:13:04 - End Time 2025-01-30 10:13:04 [2025-01-30 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362973', 'tblTempUsageDetail_20' ) start [2025-01-30 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362973', 'tblTempUsageDetail_20' ) end [2025-01-30 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362973', 'tblTempVendorCDR_20' ) start [2025-01-30 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362973', 'tblTempVendorCDR_20' ) end [2025-01-30 10:13:19] Production.INFO: ProcessCDR(1,14362973,1,1,2) [2025-01-30 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362973', 'tblTempUsageDetail_20' ) start [2025-01-30 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362973', 'tblTempUsageDetail_20' ) end [2025-01-30 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:13:23] Production.INFO: ==13068== Releasing lock... [2025-01-30 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:13:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:14:05 [end_date_ymd] => 2025-01-30 10:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:14:05' and `end` < '2025-01-30 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-30 10:14:19] Production.INFO: count ==2705 [2025-01-30 10:14:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:14:05 - End Time 2025-01-30 10:14:05 [2025-01-30 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362978', 'tblTempUsageDetail_20' ) start [2025-01-30 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362978', 'tblTempUsageDetail_20' ) end [2025-01-30 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362978', 'tblTempVendorCDR_20' ) start [2025-01-30 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362978', 'tblTempVendorCDR_20' ) end [2025-01-30 10:14:20] Production.INFO: ProcessCDR(1,14362978,1,1,2) [2025-01-30 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362978', 'tblTempUsageDetail_20' ) start [2025-01-30 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362978', 'tblTempUsageDetail_20' ) end [2025-01-30 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:14:25] Production.INFO: ==13145== Releasing lock... [2025-01-30 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:14:25] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:15:05 [end_date_ymd] => 2025-01-30 10:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:15:05' and `end` < '2025-01-30 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-30 10:15:18] Production.INFO: count ==2727 [2025-01-30 10:15:19] Production.ERROR: pbx CDR StartTime 2025-01-30 07:15:05 - End Time 2025-01-30 10:15:05 [2025-01-30 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362983', 'tblTempUsageDetail_20' ) start [2025-01-30 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362983', 'tblTempUsageDetail_20' ) end [2025-01-30 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362983', 'tblTempVendorCDR_20' ) start [2025-01-30 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362983', 'tblTempVendorCDR_20' ) end [2025-01-30 10:15:19] Production.INFO: ProcessCDR(1,14362983,1,1,2) [2025-01-30 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362983', 'tblTempUsageDetail_20' ) start [2025-01-30 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362983', 'tblTempUsageDetail_20' ) end [2025-01-30 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:15:23] Production.INFO: ==13259== Releasing lock... [2025-01-30 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:15:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-30 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:16:05 [end_date_ymd] => 2025-01-30 10:16:05 [RateCDR] => 1 ) [2025-01-30 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:16:05' and `end` < '2025-01-30 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:16:19] Production.INFO: count ==2739 [2025-01-30 10:16:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:16:05 - End Time 2025-01-30 10:16:05 [2025-01-30 10:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362988', 'tblTempUsageDetail_20' ) start [2025-01-30 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362988', 'tblTempUsageDetail_20' ) end [2025-01-30 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362988', 'tblTempVendorCDR_20' ) start [2025-01-30 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362988', 'tblTempVendorCDR_20' ) end [2025-01-30 10:16:21] Production.INFO: ProcessCDR(1,14362988,1,1,2) [2025-01-30 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362988', 'tblTempUsageDetail_20' ) start [2025-01-30 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362988', 'tblTempUsageDetail_20' ) end [2025-01-30 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:16:25] Production.INFO: ==13334== Releasing lock... [2025-01-30 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:16:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-30 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:17:05 [end_date_ymd] => 2025-01-30 10:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:17:05' and `end` < '2025-01-30 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-30 10:17:19] Production.INFO: count ==2757 [2025-01-30 10:17:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:17:05 - End Time 2025-01-30 10:17:05 [2025-01-30 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362993', 'tblTempUsageDetail_20' ) start [2025-01-30 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362993', 'tblTempUsageDetail_20' ) end [2025-01-30 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362993', 'tblTempVendorCDR_20' ) start [2025-01-30 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362993', 'tblTempVendorCDR_20' ) end [2025-01-30 10:17:20] Production.INFO: ProcessCDR(1,14362993,1,1,2) [2025-01-30 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362993', 'tblTempUsageDetail_20' ) start [2025-01-30 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362993', 'tblTempUsageDetail_20' ) end [2025-01-30 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:17:25] Production.INFO: ==13408== Releasing lock... [2025-01-30 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:17:25] Production.INFO: 48.75 MB #Memory Used# [2025-01-30 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:18:05 [end_date_ymd] => 2025-01-30 10:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:18:05' and `end` < '2025-01-30 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-30 10:18:19] Production.INFO: count ==2773 [2025-01-30 10:18:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:18:05 - End Time 2025-01-30 10:18:05 [2025-01-30 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362998', 'tblTempUsageDetail_20' ) start [2025-01-30 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14362998', 'tblTempUsageDetail_20' ) end [2025-01-30 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362998', 'tblTempVendorCDR_20' ) start [2025-01-30 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14362998', 'tblTempVendorCDR_20' ) end [2025-01-30 10:18:20] Production.INFO: ProcessCDR(1,14362998,1,1,2) [2025-01-30 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14362998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14362998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14362998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14362998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362998', 'tblTempUsageDetail_20' ) start [2025-01-30 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14362998', 'tblTempUsageDetail_20' ) end [2025-01-30 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:18:25] Production.INFO: ==13483== Releasing lock... [2025-01-30 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:18:25] Production.INFO: 48.75 MB #Memory Used# [2025-01-30 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:19:06 [end_date_ymd] => 2025-01-30 10:19:06 [RateCDR] => 1 ) [2025-01-30 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:19:06' and `end` < '2025-01-30 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:19:19] Production.INFO: count ==2783 [2025-01-30 10:19:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:19:06 - End Time 2025-01-30 10:19:06 [2025-01-30 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363003', 'tblTempUsageDetail_20' ) start [2025-01-30 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363003', 'tblTempUsageDetail_20' ) end [2025-01-30 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363003', 'tblTempVendorCDR_20' ) start [2025-01-30 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363003', 'tblTempVendorCDR_20' ) end [2025-01-30 10:19:21] Production.INFO: ProcessCDR(1,14363003,1,1,2) [2025-01-30 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363003', 'tblTempUsageDetail_20' ) start [2025-01-30 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363003', 'tblTempUsageDetail_20' ) end [2025-01-30 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:19:26] Production.INFO: ==13563== Releasing lock... [2025-01-30 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:19:26] Production.INFO: 49 MB #Memory Used# [2025-01-30 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:20:05 [end_date_ymd] => 2025-01-30 10:20:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:20:05' and `end` < '2025-01-30 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-30 10:20:21] Production.INFO: count ==2802 [2025-01-30 10:20:22] Production.ERROR: pbx CDR StartTime 2025-01-30 07:20:05 - End Time 2025-01-30 10:20:05 [2025-01-30 10:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363008', 'tblTempUsageDetail_20' ) start [2025-01-30 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363008', 'tblTempUsageDetail_20' ) end [2025-01-30 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363008', 'tblTempVendorCDR_20' ) start [2025-01-30 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363008', 'tblTempVendorCDR_20' ) end [2025-01-30 10:20:22] Production.INFO: ProcessCDR(1,14363008,1,1,2) [2025-01-30 10:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363008', 'tblTempUsageDetail_20' ) start [2025-01-30 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363008', 'tblTempUsageDetail_20' ) end [2025-01-30 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:20:27] Production.INFO: ==13637== Releasing lock... [2025-01-30 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:20:27] Production.INFO: 49.25 MB #Memory Used# [2025-01-30 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:21:05 [end_date_ymd] => 2025-01-30 10:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:21:05' and `end` < '2025-01-30 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-30 10:21:19] Production.INFO: count ==2858 [2025-01-30 10:21:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:21:05 - End Time 2025-01-30 10:21:05 [2025-01-30 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363014', 'tblTempUsageDetail_20' ) start [2025-01-30 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363014', 'tblTempUsageDetail_20' ) end [2025-01-30 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363014', 'tblTempVendorCDR_20' ) start [2025-01-30 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363014', 'tblTempVendorCDR_20' ) end [2025-01-30 10:21:20] Production.INFO: ProcessCDR(1,14363014,1,1,2) [2025-01-30 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363014', 'tblTempUsageDetail_20' ) start [2025-01-30 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363014', 'tblTempUsageDetail_20' ) end [2025-01-30 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:21:23] Production.INFO: ==13714== Releasing lock... [2025-01-30 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:21:23] Production.INFO: 50 MB #Memory Used# [2025-01-30 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:22:05 [end_date_ymd] => 2025-01-30 10:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:22:05' and `end` < '2025-01-30 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-30 10:22:24] Production.INFO: count ==2902 [2025-01-30 10:22:26] Production.ERROR: pbx CDR StartTime 2025-01-30 07:22:05 - End Time 2025-01-30 10:22:05 [2025-01-30 10:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363019', 'tblTempUsageDetail_20' ) start [2025-01-30 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363019', 'tblTempUsageDetail_20' ) end [2025-01-30 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363019', 'tblTempVendorCDR_20' ) start [2025-01-30 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363019', 'tblTempVendorCDR_20' ) end [2025-01-30 10:22:26] Production.INFO: ProcessCDR(1,14363019,1,1,2) [2025-01-30 10:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363019', 'tblTempUsageDetail_20' ) start [2025-01-30 10:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363019', 'tblTempUsageDetail_20' ) end [2025-01-30 10:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:22:30] Production.INFO: ==13791== Releasing lock... [2025-01-30 10:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:22:30] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:23:05 [end_date_ymd] => 2025-01-30 10:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:23:05' and `end` < '2025-01-30 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-30 10:23:24] Production.INFO: count ==2916 [2025-01-30 10:23:25] Production.ERROR: pbx CDR StartTime 2025-01-30 07:23:05 - End Time 2025-01-30 10:23:05 [2025-01-30 10:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363024', 'tblTempUsageDetail_20' ) start [2025-01-30 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363024', 'tblTempUsageDetail_20' ) end [2025-01-30 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363024', 'tblTempVendorCDR_20' ) start [2025-01-30 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363024', 'tblTempVendorCDR_20' ) end [2025-01-30 10:23:25] Production.INFO: ProcessCDR(1,14363024,1,1,2) [2025-01-30 10:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363024', 'tblTempUsageDetail_20' ) start [2025-01-30 10:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363024', 'tblTempUsageDetail_20' ) end [2025-01-30 10:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:23:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:23:30] Production.INFO: ==13875== Releasing lock... [2025-01-30 10:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:23:30] Production.INFO: 50 MB #Memory Used# [2025-01-30 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:24:05 [end_date_ymd] => 2025-01-30 10:24:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:24:05' and `end` < '2025-01-30 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-30 10:24:19] Production.INFO: count ==2931 [2025-01-30 10:24:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:24:05 - End Time 2025-01-30 10:24:05 [2025-01-30 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363029', 'tblTempUsageDetail_20' ) start [2025-01-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363029', 'tblTempUsageDetail_20' ) end [2025-01-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363029', 'tblTempVendorCDR_20' ) start [2025-01-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363029', 'tblTempVendorCDR_20' ) end [2025-01-30 10:24:20] Production.INFO: ProcessCDR(1,14363029,1,1,2) [2025-01-30 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363029', 'tblTempUsageDetail_20' ) start [2025-01-30 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363029', 'tblTempUsageDetail_20' ) end [2025-01-30 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:24:25] Production.INFO: ==13948== Releasing lock... [2025-01-30 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:24:25] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:25:05 [end_date_ymd] => 2025-01-30 10:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:25:05' and `end` < '2025-01-30 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-30 10:25:19] Production.INFO: count ==2936 [2025-01-30 10:25:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:25:05 - End Time 2025-01-30 10:25:05 [2025-01-30 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363034', 'tblTempUsageDetail_20' ) start [2025-01-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363034', 'tblTempUsageDetail_20' ) end [2025-01-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363034', 'tblTempVendorCDR_20' ) start [2025-01-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363034', 'tblTempVendorCDR_20' ) end [2025-01-30 10:25:20] Production.INFO: ProcessCDR(1,14363034,1,1,2) [2025-01-30 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363034', 'tblTempUsageDetail_20' ) start [2025-01-30 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363034', 'tblTempUsageDetail_20' ) end [2025-01-30 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:25:23] Production.INFO: ==14030== Releasing lock... [2025-01-30 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:25:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:26:05 [end_date_ymd] => 2025-01-30 10:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:26:05' and `end` < '2025-01-30 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-30 10:26:18] Production.INFO: count ==2946 [2025-01-30 10:26:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:26:05 - End Time 2025-01-30 10:26:05 [2025-01-30 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363039', 'tblTempUsageDetail_20' ) start [2025-01-30 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363039', 'tblTempUsageDetail_20' ) end [2025-01-30 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363039', 'tblTempVendorCDR_20' ) start [2025-01-30 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363039', 'tblTempVendorCDR_20' ) end [2025-01-30 10:26:20] Production.INFO: ProcessCDR(1,14363039,1,1,2) [2025-01-30 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363039', 'tblTempUsageDetail_20' ) start [2025-01-30 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363039', 'tblTempUsageDetail_20' ) end [2025-01-30 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:26:25] Production.INFO: ==14113== Releasing lock... [2025-01-30 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:26:25] Production.INFO: 50.25 MB #Memory Used# [2025-01-30 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:27:05 [end_date_ymd] => 2025-01-30 10:27:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:27:05' and `end` < '2025-01-30 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-30 10:27:18] Production.INFO: count ==2960 [2025-01-30 10:27:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:27:05 - End Time 2025-01-30 10:27:05 [2025-01-30 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363044', 'tblTempUsageDetail_20' ) start [2025-01-30 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363044', 'tblTempUsageDetail_20' ) end [2025-01-30 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363044', 'tblTempVendorCDR_20' ) start [2025-01-30 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363044', 'tblTempVendorCDR_20' ) end [2025-01-30 10:27:20] Production.INFO: ProcessCDR(1,14363044,1,1,2) [2025-01-30 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363044', 'tblTempUsageDetail_20' ) start [2025-01-30 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363044', 'tblTempUsageDetail_20' ) end [2025-01-30 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:27:24] Production.INFO: ==14186== Releasing lock... [2025-01-30 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:27:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-30 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:28:06 [end_date_ymd] => 2025-01-30 10:28:06 [RateCDR] => 1 ) [2025-01-30 10:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:28:06' and `end` < '2025-01-30 10:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:28:20] Production.INFO: count ==2981 [2025-01-30 10:28:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:28:06 - End Time 2025-01-30 10:28:06 [2025-01-30 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363049', 'tblTempUsageDetail_20' ) start [2025-01-30 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363049', 'tblTempUsageDetail_20' ) end [2025-01-30 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363049', 'tblTempVendorCDR_20' ) start [2025-01-30 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363049', 'tblTempVendorCDR_20' ) end [2025-01-30 10:28:21] Production.INFO: ProcessCDR(1,14363049,1,1,2) [2025-01-30 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363049', 'tblTempUsageDetail_20' ) start [2025-01-30 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363049', 'tblTempUsageDetail_20' ) end [2025-01-30 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:28:25] Production.INFO: ==14270== Releasing lock... [2025-01-30 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:28:25] Production.INFO: 51 MB #Memory Used# [2025-01-30 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:29:05 [end_date_ymd] => 2025-01-30 10:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:29:05' and `end` < '2025-01-30 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-30 10:29:19] Production.INFO: count ==2984 [2025-01-30 10:29:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:29:05 - End Time 2025-01-30 10:29:05 [2025-01-30 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363054', 'tblTempUsageDetail_20' ) start [2025-01-30 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363054', 'tblTempUsageDetail_20' ) end [2025-01-30 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363054', 'tblTempVendorCDR_20' ) start [2025-01-30 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363054', 'tblTempVendorCDR_20' ) end [2025-01-30 10:29:20] Production.INFO: ProcessCDR(1,14363054,1,1,2) [2025-01-30 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363054', 'tblTempUsageDetail_20' ) start [2025-01-30 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363054', 'tblTempUsageDetail_20' ) end [2025-01-30 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:29:25] Production.INFO: ==14348== Releasing lock... [2025-01-30 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:29:25] Production.INFO: 50.25 MB #Memory Used# [2025-01-30 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:30:06 [end_date_ymd] => 2025-01-30 10:30:06 [RateCDR] => 1 ) [2025-01-30 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-30 07:30:06' and `end` < '2025-01-30 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-30 10:30:22] Production.INFO: count ==3010 [2025-01-30 10:30:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:30:06 - End Time 2025-01-30 10:30:06 [2025-01-30 10:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363060', 'tblTempUsageDetail_20' ) start [2025-01-30 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363060', 'tblTempUsageDetail_20' ) end [2025-01-30 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363060', 'tblTempVendorCDR_20' ) start [2025-01-30 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363060', 'tblTempVendorCDR_20' ) end [2025-01-30 10:30:23] Production.INFO: ProcessCDR(1,14363060,1,1,2) [2025-01-30 10:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363060', 'tblTempUsageDetail_20' ) start [2025-01-30 10:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363060', 'tblTempUsageDetail_20' ) end [2025-01-30 10:30:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:30:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:30:28] Production.INFO: ==14469== Releasing lock... [2025-01-30 10:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:30:28] Production.INFO: 51.25 MB #Memory Used# [2025-01-30 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:31:05 [end_date_ymd] => 2025-01-30 10:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:31:05' and `end` < '2025-01-30 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-30 10:31:19] Production.INFO: count ==3106 [2025-01-30 10:31:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:31:05 - End Time 2025-01-30 10:31:05 [2025-01-30 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363065', 'tblTempUsageDetail_20' ) start [2025-01-30 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363065', 'tblTempUsageDetail_20' ) end [2025-01-30 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363065', 'tblTempVendorCDR_20' ) start [2025-01-30 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363065', 'tblTempVendorCDR_20' ) end [2025-01-30 10:31:20] Production.INFO: ProcessCDR(1,14363065,1,1,2) [2025-01-30 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363065', 'tblTempUsageDetail_20' ) start [2025-01-30 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363065', 'tblTempUsageDetail_20' ) end [2025-01-30 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:31:25] Production.INFO: ==14558== Releasing lock... [2025-01-30 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:31:25] Production.INFO: 51.5 MB #Memory Used# [2025-01-30 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:32:05 [end_date_ymd] => 2025-01-30 10:32:05 [RateCDR] => 1 ) [2025-01-30 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:32:05' and `end` < '2025-01-30 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:32:21] Production.INFO: count ==3122 [2025-01-30 10:32:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:32:05 - End Time 2025-01-30 10:32:05 [2025-01-30 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363070', 'tblTempUsageDetail_20' ) start [2025-01-30 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363070', 'tblTempUsageDetail_20' ) end [2025-01-30 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363070', 'tblTempVendorCDR_20' ) start [2025-01-30 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363070', 'tblTempVendorCDR_20' ) end [2025-01-30 10:32:23] Production.INFO: ProcessCDR(1,14363070,1,1,2) [2025-01-30 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363070', 'tblTempUsageDetail_20' ) start [2025-01-30 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363070', 'tblTempUsageDetail_20' ) end [2025-01-30 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:32:27] Production.INFO: ==14632== Releasing lock... [2025-01-30 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:32:27] Production.INFO: 51.25 MB #Memory Used# [2025-01-30 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:33:05 [end_date_ymd] => 2025-01-30 10:33:05 [RateCDR] => 1 ) [2025-01-30 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:33:05' and `end` < '2025-01-30 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:33:20] Production.INFO: count ==3141 [2025-01-30 10:33:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:33:05 - End Time 2025-01-30 10:33:05 [2025-01-30 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363075', 'tblTempUsageDetail_20' ) start [2025-01-30 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363075', 'tblTempUsageDetail_20' ) end [2025-01-30 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363075', 'tblTempVendorCDR_20' ) start [2025-01-30 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363075', 'tblTempVendorCDR_20' ) end [2025-01-30 10:33:21] Production.INFO: ProcessCDR(1,14363075,1,1,2) [2025-01-30 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363075', 'tblTempUsageDetail_20' ) start [2025-01-30 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363075', 'tblTempUsageDetail_20' ) end [2025-01-30 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:33:26] Production.INFO: ==14712== Releasing lock... [2025-01-30 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:33:26] Production.INFO: 51.5 MB #Memory Used# [2025-01-30 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:34:05 [end_date_ymd] => 2025-01-30 10:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:34:05' and `end` < '2025-01-30 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-30 10:34:19] Production.INFO: count ==3160 [2025-01-30 10:34:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:34:05 - End Time 2025-01-30 10:34:05 [2025-01-30 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363080', 'tblTempUsageDetail_20' ) start [2025-01-30 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363080', 'tblTempUsageDetail_20' ) end [2025-01-30 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363080', 'tblTempVendorCDR_20' ) start [2025-01-30 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363080', 'tblTempVendorCDR_20' ) end [2025-01-30 10:34:20] Production.INFO: ProcessCDR(1,14363080,1,1,2) [2025-01-30 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363080', 'tblTempUsageDetail_20' ) start [2025-01-30 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363080', 'tblTempUsageDetail_20' ) end [2025-01-30 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:34:25] Production.INFO: ==14794== Releasing lock... [2025-01-30 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:34:25] Production.INFO: 51.75 MB #Memory Used# [2025-01-30 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:35:05 [end_date_ymd] => 2025-01-30 10:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:35:05' and `end` < '2025-01-30 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-30 10:35:19] Production.INFO: count ==3175 [2025-01-30 10:35:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:35:05 - End Time 2025-01-30 10:35:05 [2025-01-30 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363085', 'tblTempUsageDetail_20' ) start [2025-01-30 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363085', 'tblTempUsageDetail_20' ) end [2025-01-30 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363085', 'tblTempVendorCDR_20' ) start [2025-01-30 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363085', 'tblTempVendorCDR_20' ) end [2025-01-30 10:35:21] Production.INFO: ProcessCDR(1,14363085,1,1,2) [2025-01-30 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363085', 'tblTempUsageDetail_20' ) start [2025-01-30 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363085', 'tblTempUsageDetail_20' ) end [2025-01-30 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:35:26] Production.INFO: ==14873== Releasing lock... [2025-01-30 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:35:26] Production.INFO: 52 MB #Memory Used# [2025-01-30 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:36:05 [end_date_ymd] => 2025-01-30 10:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:36:05' and `end` < '2025-01-30 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-30 10:36:19] Production.INFO: count ==3180 [2025-01-30 10:36:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:36:05 - End Time 2025-01-30 10:36:05 [2025-01-30 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363090', 'tblTempUsageDetail_20' ) start [2025-01-30 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363090', 'tblTempUsageDetail_20' ) end [2025-01-30 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363090', 'tblTempVendorCDR_20' ) start [2025-01-30 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363090', 'tblTempVendorCDR_20' ) end [2025-01-30 10:36:20] Production.INFO: ProcessCDR(1,14363090,1,1,2) [2025-01-30 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363090', 'tblTempUsageDetail_20' ) start [2025-01-30 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363090', 'tblTempUsageDetail_20' ) end [2025-01-30 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:36:25] Production.INFO: ==14952== Releasing lock... [2025-01-30 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:36:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-30 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:37:05 [end_date_ymd] => 2025-01-30 10:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:37:05' and `end` < '2025-01-30 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-30 10:37:19] Production.INFO: count ==3183 [2025-01-30 10:37:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:37:05 - End Time 2025-01-30 10:37:05 [2025-01-30 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363095', 'tblTempUsageDetail_20' ) start [2025-01-30 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363095', 'tblTempUsageDetail_20' ) end [2025-01-30 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363095', 'tblTempVendorCDR_20' ) start [2025-01-30 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363095', 'tblTempVendorCDR_20' ) end [2025-01-30 10:37:20] Production.INFO: ProcessCDR(1,14363095,1,1,2) [2025-01-30 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363095', 'tblTempUsageDetail_20' ) start [2025-01-30 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363095', 'tblTempUsageDetail_20' ) end [2025-01-30 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:37:25] Production.INFO: ==15031== Releasing lock... [2025-01-30 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:37:25] Production.INFO: 52 MB #Memory Used# [2025-01-30 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:38:05 [end_date_ymd] => 2025-01-30 10:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:38:05' and `end` < '2025-01-30 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-30 10:38:26] Production.INFO: count ==3198 [2025-01-30 10:38:27] Production.ERROR: pbx CDR StartTime 2025-01-30 07:38:05 - End Time 2025-01-30 10:38:05 [2025-01-30 10:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363100', 'tblTempUsageDetail_20' ) start [2025-01-30 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363100', 'tblTempUsageDetail_20' ) end [2025-01-30 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363100', 'tblTempVendorCDR_20' ) start [2025-01-30 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363100', 'tblTempVendorCDR_20' ) end [2025-01-30 10:38:28] Production.INFO: ProcessCDR(1,14363100,1,1,2) [2025-01-30 10:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363100', 'tblTempUsageDetail_20' ) start [2025-01-30 10:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363100', 'tblTempUsageDetail_20' ) end [2025-01-30 10:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:38:32] Production.INFO: ==15113== Releasing lock... [2025-01-30 10:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:38:32] Production.INFO: 52.25 MB #Memory Used# [2025-01-30 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:39:04 [end_date_ymd] => 2025-01-30 10:39:04 [RateCDR] => 1 ) [2025-01-30 10: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-30 07:39:04' and `end` < '2025-01-30 10: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-30 10:39:21] Production.INFO: count ==3220 [2025-01-30 10:39:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:39:04 - End Time 2025-01-30 10:39:04 [2025-01-30 10:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363105', 'tblTempUsageDetail_20' ) start [2025-01-30 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363105', 'tblTempUsageDetail_20' ) end [2025-01-30 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363105', 'tblTempVendorCDR_20' ) start [2025-01-30 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363105', 'tblTempVendorCDR_20' ) end [2025-01-30 10:39:23] Production.INFO: ProcessCDR(1,14363105,1,1,2) [2025-01-30 10:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363105', 'tblTempUsageDetail_20' ) start [2025-01-30 10:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363105', 'tblTempUsageDetail_20' ) end [2025-01-30 10:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:39:28] Production.INFO: ==15191== Releasing lock... [2025-01-30 10:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:39:28] Production.INFO: 52.25 MB #Memory Used# [2025-01-30 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:40:06 [end_date_ymd] => 2025-01-30 10:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 07:40:06' and `end` < '2025-01-30 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-30 10:40:24] Production.INFO: count ==3222 [2025-01-30 10:40:25] Production.ERROR: pbx CDR StartTime 2025-01-30 07:40:06 - End Time 2025-01-30 10:40:06 [2025-01-30 10:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363111', 'tblTempUsageDetail_20' ) start [2025-01-30 10:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363111', 'tblTempUsageDetail_20' ) end [2025-01-30 10:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363111', 'tblTempVendorCDR_20' ) start [2025-01-30 10:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363111', 'tblTempVendorCDR_20' ) end [2025-01-30 10:40:25] Production.INFO: ProcessCDR(1,14363111,1,1,2) [2025-01-30 10:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363111', 'tblTempUsageDetail_20' ) start [2025-01-30 10:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363111', 'tblTempUsageDetail_20' ) end [2025-01-30 10:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:40:30] Production.INFO: ==15275== Releasing lock... [2025-01-30 10:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:40:30] Production.INFO: 52.25 MB #Memory Used# [2025-01-30 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:41:05 [end_date_ymd] => 2025-01-30 10:41:05 [RateCDR] => 1 ) [2025-01-30 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:41:05' and `end` < '2025-01-30 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:41:23] Production.INFO: count ==3305 [2025-01-30 10:41:25] Production.ERROR: pbx CDR StartTime 2025-01-30 07:41:05 - End Time 2025-01-30 10:41:05 [2025-01-30 10:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363116', 'tblTempUsageDetail_20' ) start [2025-01-30 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363116', 'tblTempUsageDetail_20' ) end [2025-01-30 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363116', 'tblTempVendorCDR_20' ) start [2025-01-30 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363116', 'tblTempVendorCDR_20' ) end [2025-01-30 10:41:25] Production.INFO: ProcessCDR(1,14363116,1,1,2) [2025-01-30 10:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363116', 'tblTempUsageDetail_20' ) start [2025-01-30 10:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363116', 'tblTempUsageDetail_20' ) end [2025-01-30 10:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:41:30] Production.INFO: ==15355== Releasing lock... [2025-01-30 10:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:41:30] Production.INFO: 52.5 MB #Memory Used# [2025-01-30 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:42:05 [end_date_ymd] => 2025-01-30 10:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:42:05' and `end` < '2025-01-30 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-30 10:42:21] Production.INFO: count ==3317 [2025-01-30 10:42:22] Production.ERROR: pbx CDR StartTime 2025-01-30 07:42:05 - End Time 2025-01-30 10:42:05 [2025-01-30 10:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363121', 'tblTempUsageDetail_20' ) start [2025-01-30 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363121', 'tblTempUsageDetail_20' ) end [2025-01-30 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363121', 'tblTempVendorCDR_20' ) start [2025-01-30 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363121', 'tblTempVendorCDR_20' ) end [2025-01-30 10:42:22] Production.INFO: ProcessCDR(1,14363121,1,1,2) [2025-01-30 10:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363121', 'tblTempUsageDetail_20' ) start [2025-01-30 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363121', 'tblTempUsageDetail_20' ) end [2025-01-30 10:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:42:27] Production.INFO: ==15432== Releasing lock... [2025-01-30 10:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:42:27] Production.INFO: 53 MB #Memory Used# [2025-01-30 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:43:05 [end_date_ymd] => 2025-01-30 10:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:43:05' and `end` < '2025-01-30 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-30 10:43:26] Production.INFO: count ==3330 [2025-01-30 10:43:28] Production.ERROR: pbx CDR StartTime 2025-01-30 07:43:05 - End Time 2025-01-30 10:43:05 [2025-01-30 10:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363126', 'tblTempUsageDetail_20' ) start [2025-01-30 10:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363126', 'tblTempUsageDetail_20' ) end [2025-01-30 10:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363126', 'tblTempVendorCDR_20' ) start [2025-01-30 10:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363126', 'tblTempVendorCDR_20' ) end [2025-01-30 10:43:28] Production.INFO: ProcessCDR(1,14363126,1,1,2) [2025-01-30 10:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363126', 'tblTempUsageDetail_20' ) start [2025-01-30 10:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363126', 'tblTempUsageDetail_20' ) end [2025-01-30 10:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:43:33] Production.INFO: ==15512== Releasing lock... [2025-01-30 10:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:43:33] Production.INFO: 53 MB #Memory Used# [2025-01-30 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:44:05 [end_date_ymd] => 2025-01-30 10:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:44:05' and `end` < '2025-01-30 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-30 10:44:24] Production.INFO: count ==3350 [2025-01-30 10:44:26] Production.ERROR: pbx CDR StartTime 2025-01-30 07:44:05 - End Time 2025-01-30 10:44:05 [2025-01-30 10:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363131', 'tblTempUsageDetail_20' ) start [2025-01-30 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363131', 'tblTempUsageDetail_20' ) end [2025-01-30 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363131', 'tblTempVendorCDR_20' ) start [2025-01-30 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363131', 'tblTempVendorCDR_20' ) end [2025-01-30 10:44:26] Production.INFO: ProcessCDR(1,14363131,1,1,2) [2025-01-30 10:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363131', 'tblTempUsageDetail_20' ) start [2025-01-30 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363131', 'tblTempUsageDetail_20' ) end [2025-01-30 10:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:44:31] Production.INFO: ==15587== Releasing lock... [2025-01-30 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:44:31] Production.INFO: 53 MB #Memory Used# [2025-01-30 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:45:06 [end_date_ymd] => 2025-01-30 10:45:06 [RateCDR] => 1 ) [2025-01-30 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:45:06' and `end` < '2025-01-30 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:45:26] Production.INFO: count ==3367 [2025-01-30 10:45:27] Production.ERROR: pbx CDR StartTime 2025-01-30 07:45:06 - End Time 2025-01-30 10:45:06 [2025-01-30 10:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363136', 'tblTempUsageDetail_20' ) start [2025-01-30 10:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363136', 'tblTempUsageDetail_20' ) end [2025-01-30 10:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363136', 'tblTempVendorCDR_20' ) start [2025-01-30 10:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363136', 'tblTempVendorCDR_20' ) end [2025-01-30 10:45:28] Production.INFO: ProcessCDR(1,14363136,1,1,2) [2025-01-30 10:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363136', 'tblTempUsageDetail_20' ) start [2025-01-30 10:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363136', 'tblTempUsageDetail_20' ) end [2025-01-30 10:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:45:32] Production.INFO: ==15706== Releasing lock... [2025-01-30 10:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:45:32] Production.INFO: 53.25 MB #Memory Used# [2025-01-30 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:46:05 [end_date_ymd] => 2025-01-30 10:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:46:05' and `end` < '2025-01-30 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-30 10:46:22] Production.INFO: count ==3378 [2025-01-30 10:46:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:46:05 - End Time 2025-01-30 10:46:05 [2025-01-30 10:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363141', 'tblTempUsageDetail_20' ) start [2025-01-30 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363141', 'tblTempUsageDetail_20' ) end [2025-01-30 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363141', 'tblTempVendorCDR_20' ) start [2025-01-30 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363141', 'tblTempVendorCDR_20' ) end [2025-01-30 10:46:23] Production.INFO: ProcessCDR(1,14363141,1,1,2) [2025-01-30 10:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363141', 'tblTempUsageDetail_20' ) start [2025-01-30 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363141', 'tblTempUsageDetail_20' ) end [2025-01-30 10:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:46:28] Production.INFO: ==15783== Releasing lock... [2025-01-30 10:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:46:28] Production.INFO: 53.25 MB #Memory Used# [2025-01-30 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:47:06 [end_date_ymd] => 2025-01-30 10:47:06 [RateCDR] => 1 ) [2025-01-30 10: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-30 07:47:06' and `end` < '2025-01-30 10: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-30 10:47:25] Production.INFO: count ==3390 [2025-01-30 10:47:27] Production.ERROR: pbx CDR StartTime 2025-01-30 07:47:06 - End Time 2025-01-30 10:47:06 [2025-01-30 10:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363146', 'tblTempUsageDetail_20' ) start [2025-01-30 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363146', 'tblTempUsageDetail_20' ) end [2025-01-30 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363146', 'tblTempVendorCDR_20' ) start [2025-01-30 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363146', 'tblTempVendorCDR_20' ) end [2025-01-30 10:47:27] Production.INFO: ProcessCDR(1,14363146,1,1,2) [2025-01-30 10:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363146', 'tblTempUsageDetail_20' ) start [2025-01-30 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363146', 'tblTempUsageDetail_20' ) end [2025-01-30 10:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:47:32] Production.INFO: ==15861== Releasing lock... [2025-01-30 10:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:47:32] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:48:05 [end_date_ymd] => 2025-01-30 10:48:05 [RateCDR] => 1 ) [2025-01-30 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:48:05' and `end` < '2025-01-30 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:48:18] Production.INFO: count ==3402 [2025-01-30 10:48:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:48:05 - End Time 2025-01-30 10:48:05 [2025-01-30 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363151', 'tblTempUsageDetail_20' ) start [2025-01-30 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363151', 'tblTempUsageDetail_20' ) end [2025-01-30 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363151', 'tblTempVendorCDR_20' ) start [2025-01-30 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363151', 'tblTempVendorCDR_20' ) end [2025-01-30 10:48:20] Production.INFO: ProcessCDR(1,14363151,1,1,2) [2025-01-30 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363151', 'tblTempUsageDetail_20' ) start [2025-01-30 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363151', 'tblTempUsageDetail_20' ) end [2025-01-30 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:48:24] Production.INFO: ==15937== Releasing lock... [2025-01-30 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:48:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:49:05 [end_date_ymd] => 2025-01-30 10:49:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:49:05' and `end` < '2025-01-30 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-30 10:49:18] Production.INFO: count ==3424 [2025-01-30 10:49:20] Production.ERROR: pbx CDR StartTime 2025-01-30 07:49:05 - End Time 2025-01-30 10:49:05 [2025-01-30 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363156', 'tblTempUsageDetail_20' ) start [2025-01-30 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363156', 'tblTempUsageDetail_20' ) end [2025-01-30 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363156', 'tblTempVendorCDR_20' ) start [2025-01-30 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363156', 'tblTempVendorCDR_20' ) end [2025-01-30 10:49:20] Production.INFO: ProcessCDR(1,14363156,1,1,2) [2025-01-30 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363156', 'tblTempUsageDetail_20' ) start [2025-01-30 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363156', 'tblTempUsageDetail_20' ) end [2025-01-30 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:49:25] Production.INFO: ==16019== Releasing lock... [2025-01-30 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:49:25] Production.INFO: 54 MB #Memory Used# [2025-01-30 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:50:06 [end_date_ymd] => 2025-01-30 10:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 07:50:06' and `end` < '2025-01-30 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-30 10:50:19] Production.INFO: count ==3444 [2025-01-30 10:50:21] Production.ERROR: pbx CDR StartTime 2025-01-30 07:50:06 - End Time 2025-01-30 10:50:06 [2025-01-30 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363161', 'tblTempUsageDetail_20' ) start [2025-01-30 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363161', 'tblTempUsageDetail_20' ) end [2025-01-30 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363161', 'tblTempVendorCDR_20' ) start [2025-01-30 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363161', 'tblTempVendorCDR_20' ) end [2025-01-30 10:50:21] Production.INFO: ProcessCDR(1,14363161,1,1,2) [2025-01-30 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363161', 'tblTempUsageDetail_20' ) start [2025-01-30 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363161', 'tblTempUsageDetail_20' ) end [2025-01-30 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:50:27] Production.INFO: ==16103== Releasing lock... [2025-01-30 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:50:27] Production.INFO: 54 MB #Memory Used# [2025-01-30 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:51:05 [end_date_ymd] => 2025-01-30 10:51:05 [RateCDR] => 1 ) [2025-01-30 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:51:05' and `end` < '2025-01-30 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:51:21] Production.INFO: count ==3540 [2025-01-30 10:51:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:51:05 - End Time 2025-01-30 10:51:05 [2025-01-30 10:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363167', 'tblTempUsageDetail_20' ) start [2025-01-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363167', 'tblTempUsageDetail_20' ) end [2025-01-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363167', 'tblTempVendorCDR_20' ) start [2025-01-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363167', 'tblTempVendorCDR_20' ) end [2025-01-30 10:51:23] Production.INFO: ProcessCDR(1,14363167,1,1,2) [2025-01-30 10:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363167', 'tblTempUsageDetail_20' ) start [2025-01-30 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363167', 'tblTempUsageDetail_20' ) end [2025-01-30 10:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:51:28] Production.INFO: ==16179== Releasing lock... [2025-01-30 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:51:28] Production.INFO: 54.75 MB #Memory Used# [2025-01-30 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:52:05 [end_date_ymd] => 2025-01-30 10:52:05 [RateCDR] => 1 ) [2025-01-30 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:52:05' and `end` < '2025-01-30 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:52:22] Production.INFO: count ==3548 [2025-01-30 10:52:24] Production.ERROR: pbx CDR StartTime 2025-01-30 07:52:05 - End Time 2025-01-30 10:52:05 [2025-01-30 10:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363172', 'tblTempUsageDetail_20' ) start [2025-01-30 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363172', 'tblTempUsageDetail_20' ) end [2025-01-30 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363172', 'tblTempVendorCDR_20' ) start [2025-01-30 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363172', 'tblTempVendorCDR_20' ) end [2025-01-30 10:52:24] Production.INFO: ProcessCDR(1,14363172,1,1,2) [2025-01-30 10:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363172', 'tblTempUsageDetail_20' ) start [2025-01-30 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363172', 'tblTempUsageDetail_20' ) end [2025-01-30 10:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:52:29] Production.INFO: ==16264== Releasing lock... [2025-01-30 10:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:52:29] Production.INFO: 55 MB #Memory Used# [2025-01-30 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:53:05 [end_date_ymd] => 2025-01-30 10:53:05 [RateCDR] => 1 ) [2025-01-30 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:53:05' and `end` < '2025-01-30 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:53:25] Production.INFO: count ==3563 [2025-01-30 10:53:27] Production.ERROR: pbx CDR StartTime 2025-01-30 07:53:05 - End Time 2025-01-30 10:53:05 [2025-01-30 10:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363177', 'tblTempUsageDetail_20' ) start [2025-01-30 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363177', 'tblTempUsageDetail_20' ) end [2025-01-30 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363177', 'tblTempVendorCDR_20' ) start [2025-01-30 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363177', 'tblTempVendorCDR_20' ) end [2025-01-30 10:53:27] Production.INFO: ProcessCDR(1,14363177,1,1,2) [2025-01-30 10:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363177', 'tblTempUsageDetail_20' ) start [2025-01-30 10:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363177', 'tblTempUsageDetail_20' ) end [2025-01-30 10:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:53:32] Production.INFO: ==16347== Releasing lock... [2025-01-30 10:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:53:32] Production.INFO: 54.75 MB #Memory Used# [2025-01-30 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:54:05 [end_date_ymd] => 2025-01-30 10:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:54:05' and `end` < '2025-01-30 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-30 10:54:22] Production.INFO: count ==3586 [2025-01-30 10:54:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:54:05 - End Time 2025-01-30 10:54:05 [2025-01-30 10:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363182', 'tblTempUsageDetail_20' ) start [2025-01-30 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363182', 'tblTempUsageDetail_20' ) end [2025-01-30 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363182', 'tblTempVendorCDR_20' ) start [2025-01-30 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363182', 'tblTempVendorCDR_20' ) end [2025-01-30 10:54:23] Production.INFO: ProcessCDR(1,14363182,1,1,2) [2025-01-30 10:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363182', 'tblTempUsageDetail_20' ) start [2025-01-30 10:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363182', 'tblTempUsageDetail_20' ) end [2025-01-30 10:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:54:28] Production.INFO: ==16421== Releasing lock... [2025-01-30 10:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:54:28] Production.INFO: 55 MB #Memory Used# [2025-01-30 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:55:05 [end_date_ymd] => 2025-01-30 10:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:55:05' and `end` < '2025-01-30 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-30 10:55:24] Production.INFO: count ==3639 [2025-01-30 10:55:26] Production.ERROR: pbx CDR StartTime 2025-01-30 07:55:05 - End Time 2025-01-30 10:55:05 [2025-01-30 10:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363187', 'tblTempUsageDetail_20' ) start [2025-01-30 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363187', 'tblTempUsageDetail_20' ) end [2025-01-30 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363187', 'tblTempVendorCDR_20' ) start [2025-01-30 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363187', 'tblTempVendorCDR_20' ) end [2025-01-30 10:55:26] Production.INFO: ProcessCDR(1,14363187,1,1,2) [2025-01-30 10:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363187', 'tblTempUsageDetail_20' ) start [2025-01-30 10:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363187', 'tblTempUsageDetail_20' ) end [2025-01-30 10:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:55:31] Production.INFO: ==16503== Releasing lock... [2025-01-30 10:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:55:31] Production.INFO: 55.25 MB #Memory Used# [2025-01-30 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:56:06 [end_date_ymd] => 2025-01-30 10:56:06 [RateCDR] => 1 ) [2025-01-30 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-30 07:56:06' and `end` < '2025-01-30 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-30 10:56:28] Production.INFO: count ==3672 [2025-01-30 10:56:29] Production.ERROR: pbx CDR StartTime 2025-01-30 07:56:06 - End Time 2025-01-30 10:56:06 [2025-01-30 10:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363192', 'tblTempUsageDetail_20' ) start [2025-01-30 10:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363192', 'tblTempUsageDetail_20' ) end [2025-01-30 10:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363192', 'tblTempVendorCDR_20' ) start [2025-01-30 10:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363192', 'tblTempVendorCDR_20' ) end [2025-01-30 10:56:30] Production.INFO: ProcessCDR(1,14363192,1,1,2) [2025-01-30 10:56:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363192', 'tblTempUsageDetail_20' ) start [2025-01-30 10:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363192', 'tblTempUsageDetail_20' ) end [2025-01-30 10:56:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:56:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:56:34] Production.INFO: ==16583== Releasing lock... [2025-01-30 10:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:56:34] Production.INFO: 55.5 MB #Memory Used# [2025-01-30 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:57:06 [end_date_ymd] => 2025-01-30 10:57:06 [RateCDR] => 1 ) [2025-01-30 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:57:06' and `end` < '2025-01-30 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:57:26] Production.INFO: count ==3692 [2025-01-30 10:57:28] Production.ERROR: pbx CDR StartTime 2025-01-30 07:57:06 - End Time 2025-01-30 10:57:06 [2025-01-30 10:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363197', 'tblTempUsageDetail_20' ) start [2025-01-30 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363197', 'tblTempUsageDetail_20' ) end [2025-01-30 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363197', 'tblTempVendorCDR_20' ) start [2025-01-30 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363197', 'tblTempVendorCDR_20' ) end [2025-01-30 10:57:28] Production.INFO: ProcessCDR(1,14363197,1,1,2) [2025-01-30 10:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363197', 'tblTempUsageDetail_20' ) start [2025-01-30 10:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363197', 'tblTempUsageDetail_20' ) end [2025-01-30 10:57:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:57:33] Production.INFO: ==16660== Releasing lock... [2025-01-30 10:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:57:33] Production.INFO: 56 MB #Memory Used# [2025-01-30 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:58:06 [end_date_ymd] => 2025-01-30 10:58:06 [RateCDR] => 1 ) [2025-01-30 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 07:58:06' and `end` < '2025-01-30 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 10:58:24] Production.INFO: count ==3700 [2025-01-30 10:58:26] Production.ERROR: pbx CDR StartTime 2025-01-30 07:58:06 - End Time 2025-01-30 10:58:06 [2025-01-30 10:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363202', 'tblTempUsageDetail_20' ) start [2025-01-30 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363202', 'tblTempUsageDetail_20' ) end [2025-01-30 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363202', 'tblTempVendorCDR_20' ) start [2025-01-30 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363202', 'tblTempVendorCDR_20' ) end [2025-01-30 10:58:26] Production.INFO: ProcessCDR(1,14363202,1,1,2) [2025-01-30 10:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363202', 'tblTempUsageDetail_20' ) start [2025-01-30 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363202', 'tblTempUsageDetail_20' ) end [2025-01-30 10:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:58:31] Production.INFO: ==16738== Releasing lock... [2025-01-30 10:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:58:31] Production.INFO: 55.5 MB #Memory Used# [2025-01-30 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 07:59:05 [end_date_ymd] => 2025-01-30 10:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 07:59:05' and `end` < '2025-01-30 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-30 10:59:21] Production.INFO: count ==3707 [2025-01-30 10:59:23] Production.ERROR: pbx CDR StartTime 2025-01-30 07:59:05 - End Time 2025-01-30 10:59:05 [2025-01-30 10:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363207', 'tblTempUsageDetail_20' ) start [2025-01-30 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363207', 'tblTempUsageDetail_20' ) end [2025-01-30 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363207', 'tblTempVendorCDR_20' ) start [2025-01-30 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363207', 'tblTempVendorCDR_20' ) end [2025-01-30 10:59:23] Production.INFO: ProcessCDR(1,14363207,1,1,2) [2025-01-30 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363207', 'tblTempUsageDetail_20' ) start [2025-01-30 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363207', 'tblTempUsageDetail_20' ) end [2025-01-30 10:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 10:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 10:59:27] Production.INFO: ==16811== Releasing lock... [2025-01-30 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 10:59:27] Production.INFO: 56 MB #Memory Used# [2025-01-30 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:00:06 [end_date_ymd] => 2025-01-30 11:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 08:00:06' and `end` < '2025-01-30 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-30 11:00:28] Production.INFO: count ==3732 [2025-01-30 11:00:30] Production.ERROR: pbx CDR StartTime 2025-01-30 08:00:06 - End Time 2025-01-30 11:00:06 [2025-01-30 11:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363213', 'tblTempUsageDetail_20' ) start [2025-01-30 11:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363213', 'tblTempUsageDetail_20' ) end [2025-01-30 11:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363213', 'tblTempVendorCDR_20' ) start [2025-01-30 11:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363213', 'tblTempVendorCDR_20' ) end [2025-01-30 11:00:30] Production.INFO: ProcessCDR(1,14363213,1,1,2) [2025-01-30 11:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363213', 'tblTempUsageDetail_20' ) start [2025-01-30 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363213', 'tblTempUsageDetail_20' ) end [2025-01-30 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:00:35] Production.INFO: ==16890== Releasing lock... [2025-01-30 11:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:00:35] Production.INFO: 55.75 MB #Memory Used# [2025-01-30 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:01:05 [end_date_ymd] => 2025-01-30 11:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:01:05' and `end` < '2025-01-30 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-30 11:01:29] Production.INFO: count ==3838 [2025-01-30 11:01:31] Production.ERROR: pbx CDR StartTime 2025-01-30 08:01:05 - End Time 2025-01-30 11:01:05 [2025-01-30 11:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363218', 'tblTempUsageDetail_20' ) start [2025-01-30 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363218', 'tblTempUsageDetail_20' ) end [2025-01-30 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363218', 'tblTempVendorCDR_20' ) start [2025-01-30 11:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363218', 'tblTempVendorCDR_20' ) end [2025-01-30 11:01:31] Production.INFO: ProcessCDR(1,14363218,1,1,2) [2025-01-30 11:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363218', 'tblTempUsageDetail_20' ) start [2025-01-30 11:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363218', 'tblTempUsageDetail_20' ) end [2025-01-30 11:01:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:01:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:01:35] Production.INFO: ==17020== Releasing lock... [2025-01-30 11:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:01:35] Production.INFO: 56.75 MB #Memory Used# [2025-01-30 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:02:06 [end_date_ymd] => 2025-01-30 11:02:06 [RateCDR] => 1 ) [2025-01-30 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:02:06' and `end` < '2025-01-30 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:02:23] Production.INFO: count ==3849 [2025-01-30 11:02:25] Production.ERROR: pbx CDR StartTime 2025-01-30 08:02:06 - End Time 2025-01-30 11:02:06 [2025-01-30 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363223', 'tblTempUsageDetail_20' ) start [2025-01-30 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363223', 'tblTempUsageDetail_20' ) end [2025-01-30 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363223', 'tblTempVendorCDR_20' ) start [2025-01-30 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363223', 'tblTempVendorCDR_20' ) end [2025-01-30 11:02:25] Production.INFO: ProcessCDR(1,14363223,1,1,2) [2025-01-30 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363223', 'tblTempUsageDetail_20' ) start [2025-01-30 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363223', 'tblTempUsageDetail_20' ) end [2025-01-30 11:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:02:30] Production.INFO: ==17173== Releasing lock... [2025-01-30 11:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:02:30] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:03:05 [end_date_ymd] => 2025-01-30 11:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:03:05' and `end` < '2025-01-30 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-30 11:03:20] Production.INFO: count ==3859 [2025-01-30 11:03:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:03:05 - End Time 2025-01-30 11:03:05 [2025-01-30 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363228', 'tblTempUsageDetail_20' ) start [2025-01-30 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363228', 'tblTempUsageDetail_20' ) end [2025-01-30 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363228', 'tblTempVendorCDR_20' ) start [2025-01-30 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363228', 'tblTempVendorCDR_20' ) end [2025-01-30 11:03:21] Production.INFO: ProcessCDR(1,14363228,1,1,2) [2025-01-30 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363228', 'tblTempUsageDetail_20' ) start [2025-01-30 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363228', 'tblTempUsageDetail_20' ) end [2025-01-30 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:03:26] Production.INFO: ==17246== Releasing lock... [2025-01-30 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:03:26] Production.INFO: 57 MB #Memory Used# [2025-01-30 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:04:06 [end_date_ymd] => 2025-01-30 11:04:06 [RateCDR] => 1 ) [2025-01-30 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:04:06' and `end` < '2025-01-30 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:04:20] Production.INFO: count ==3863 [2025-01-30 11:04:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:04:06 - End Time 2025-01-30 11:04:06 [2025-01-30 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363233', 'tblTempUsageDetail_20' ) start [2025-01-30 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363233', 'tblTempUsageDetail_20' ) end [2025-01-30 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363233', 'tblTempVendorCDR_20' ) start [2025-01-30 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363233', 'tblTempVendorCDR_20' ) end [2025-01-30 11:04:22] Production.INFO: ProcessCDR(1,14363233,1,1,2) [2025-01-30 11:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363233', 'tblTempUsageDetail_20' ) start [2025-01-30 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363233', 'tblTempUsageDetail_20' ) end [2025-01-30 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:04:26] Production.INFO: ==17325== Releasing lock... [2025-01-30 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:04:26] Production.INFO: 57 MB #Memory Used# [2025-01-30 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:05:05 [end_date_ymd] => 2025-01-30 11:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:05:05' and `end` < '2025-01-30 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-30 11:05:24] Production.INFO: count ==3877 [2025-01-30 11:05:25] Production.ERROR: pbx CDR StartTime 2025-01-30 08:05:05 - End Time 2025-01-30 11:05:05 [2025-01-30 11:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363238', 'tblTempUsageDetail_20' ) start [2025-01-30 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363238', 'tblTempUsageDetail_20' ) end [2025-01-30 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363238', 'tblTempVendorCDR_20' ) start [2025-01-30 11:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363238', 'tblTempVendorCDR_20' ) end [2025-01-30 11:05:25] Production.INFO: ProcessCDR(1,14363238,1,1,2) [2025-01-30 11:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363238', 'tblTempUsageDetail_20' ) start [2025-01-30 11:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363238', 'tblTempUsageDetail_20' ) end [2025-01-30 11:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:05:30] Production.INFO: ==17476== Releasing lock... [2025-01-30 11:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:05:30] Production.INFO: 57 MB #Memory Used# [2025-01-30 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:06:05 [end_date_ymd] => 2025-01-30 11:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:06:05' and `end` < '2025-01-30 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-30 11:06:33] Production.INFO: count ==3874 [2025-01-30 11:06:34] Production.ERROR: pbx CDR StartTime 2025-01-30 08:06:05 - End Time 2025-01-30 11:06:05 [2025-01-30 11:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363243', 'tblTempUsageDetail_20' ) start [2025-01-30 11:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363243', 'tblTempUsageDetail_20' ) end [2025-01-30 11:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363243', 'tblTempVendorCDR_20' ) start [2025-01-30 11:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363243', 'tblTempVendorCDR_20' ) end [2025-01-30 11:06:34] Production.INFO: ProcessCDR(1,14363243,1,1,2) [2025-01-30 11:06:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:06:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:06:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363243', 'tblTempUsageDetail_20' ) start [2025-01-30 11:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363243', 'tblTempUsageDetail_20' ) end [2025-01-30 11:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:06:39] Production.INFO: ==17549== Releasing lock... [2025-01-30 11:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:06:39] Production.INFO: 57 MB #Memory Used# [2025-01-30 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:07:05 [end_date_ymd] => 2025-01-30 11:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:07:05' and `end` < '2025-01-30 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-30 11:07:21] Production.INFO: count ==3874 [2025-01-30 11:07:22] Production.ERROR: pbx CDR StartTime 2025-01-30 08:07:05 - End Time 2025-01-30 11:07:05 [2025-01-30 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363248', 'tblTempUsageDetail_20' ) start [2025-01-30 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363248', 'tblTempUsageDetail_20' ) end [2025-01-30 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363248', 'tblTempVendorCDR_20' ) start [2025-01-30 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363248', 'tblTempVendorCDR_20' ) end [2025-01-30 11:07:22] Production.INFO: ProcessCDR(1,14363248,1,1,2) [2025-01-30 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363248', 'tblTempUsageDetail_20' ) start [2025-01-30 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363248', 'tblTempUsageDetail_20' ) end [2025-01-30 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:07:27] Production.INFO: ==17627== Releasing lock... [2025-01-30 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:07:27] Production.INFO: 57 MB #Memory Used# [2025-01-30 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:08:06 [end_date_ymd] => 2025-01-30 11:08:06 [RateCDR] => 1 ) [2025-01-30 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:08:06' and `end` < '2025-01-30 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:08:19] Production.INFO: count ==3902 [2025-01-30 11:08:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:08:06 - End Time 2025-01-30 11:08:06 [2025-01-30 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363253', 'tblTempUsageDetail_20' ) start [2025-01-30 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363253', 'tblTempUsageDetail_20' ) end [2025-01-30 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363253', 'tblTempVendorCDR_20' ) start [2025-01-30 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363253', 'tblTempVendorCDR_20' ) end [2025-01-30 11:08:21] Production.INFO: ProcessCDR(1,14363253,1,1,2) [2025-01-30 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363253', 'tblTempUsageDetail_20' ) start [2025-01-30 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363253', 'tblTempUsageDetail_20' ) end [2025-01-30 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:08:26] Production.INFO: ==17751== Releasing lock... [2025-01-30 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:08:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:09:05 [end_date_ymd] => 2025-01-30 11:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:09:05' and `end` < '2025-01-30 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-30 11:09:18] Production.INFO: count ==3937 [2025-01-30 11:09:20] Production.ERROR: pbx CDR StartTime 2025-01-30 08:09:05 - End Time 2025-01-30 11:09:05 [2025-01-30 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363258', 'tblTempUsageDetail_20' ) start [2025-01-30 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363258', 'tblTempUsageDetail_20' ) end [2025-01-30 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363258', 'tblTempVendorCDR_20' ) start [2025-01-30 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363258', 'tblTempVendorCDR_20' ) end [2025-01-30 11:09:20] Production.INFO: ProcessCDR(1,14363258,1,1,2) [2025-01-30 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363258', 'tblTempUsageDetail_20' ) start [2025-01-30 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363258', 'tblTempUsageDetail_20' ) end [2025-01-30 11:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:09:25] Production.INFO: ==17859== Releasing lock... [2025-01-30 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:09:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:10:06 [end_date_ymd] => 2025-01-30 11:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 08:10:06' and `end` < '2025-01-30 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-30 11:10:26] Production.INFO: count ==3950 [2025-01-30 11:10:28] Production.ERROR: pbx CDR StartTime 2025-01-30 08:10:06 - End Time 2025-01-30 11:10:06 [2025-01-30 11:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363264', 'tblTempUsageDetail_20' ) start [2025-01-30 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363264', 'tblTempUsageDetail_20' ) end [2025-01-30 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363264', 'tblTempVendorCDR_20' ) start [2025-01-30 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363264', 'tblTempVendorCDR_20' ) end [2025-01-30 11:10:28] Production.INFO: ProcessCDR(1,14363264,1,1,2) [2025-01-30 11:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363264', 'tblTempUsageDetail_20' ) start [2025-01-30 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363264', 'tblTempUsageDetail_20' ) end [2025-01-30 11:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:10:33] Production.INFO: ==17938== Releasing lock... [2025-01-30 11:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:10:33] Production.INFO: 57.5 MB #Memory Used# [2025-01-30 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:11:05 [end_date_ymd] => 2025-01-30 11:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:11:05' and `end` < '2025-01-30 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-30 11:11:21] Production.INFO: count ==4005 [2025-01-30 11:11:23] Production.ERROR: pbx CDR StartTime 2025-01-30 08:11:05 - End Time 2025-01-30 11:11:05 [2025-01-30 11:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363269', 'tblTempUsageDetail_20' ) start [2025-01-30 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363269', 'tblTempUsageDetail_20' ) end [2025-01-30 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363269', 'tblTempVendorCDR_20' ) start [2025-01-30 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363269', 'tblTempVendorCDR_20' ) end [2025-01-30 11:11:23] Production.INFO: ProcessCDR(1,14363269,1,1,2) [2025-01-30 11:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363269', 'tblTempUsageDetail_20' ) start [2025-01-30 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363269', 'tblTempUsageDetail_20' ) end [2025-01-30 11:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:11:28] Production.INFO: ==18011== Releasing lock... [2025-01-30 11:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:11:28] Production.INFO: 58 MB #Memory Used# [2025-01-30 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:12:05 [end_date_ymd] => 2025-01-30 11:12:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:12:05' and `end` < '2025-01-30 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-30 11:12:19] Production.INFO: count ==4020 [2025-01-30 11:12:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:12:05 - End Time 2025-01-30 11:12:05 [2025-01-30 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363274', 'tblTempUsageDetail_20' ) start [2025-01-30 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363274', 'tblTempUsageDetail_20' ) end [2025-01-30 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363274', 'tblTempVendorCDR_20' ) start [2025-01-30 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363274', 'tblTempVendorCDR_20' ) end [2025-01-30 11:12:21] Production.INFO: ProcessCDR(1,14363274,1,1,2) [2025-01-30 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363274', 'tblTempUsageDetail_20' ) start [2025-01-30 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363274', 'tblTempUsageDetail_20' ) end [2025-01-30 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:12:26] Production.INFO: ==18160== Releasing lock... [2025-01-30 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:12:26] Production.INFO: 58 MB #Memory Used# [2025-01-30 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:13:05 [end_date_ymd] => 2025-01-30 11:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:13:05' and `end` < '2025-01-30 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-30 11:13:18] Production.INFO: count ==4029 [2025-01-30 11:13:20] Production.ERROR: pbx CDR StartTime 2025-01-30 08:13:05 - End Time 2025-01-30 11:13:05 [2025-01-30 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363279', 'tblTempUsageDetail_20' ) start [2025-01-30 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363279', 'tblTempUsageDetail_20' ) end [2025-01-30 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363279', 'tblTempVendorCDR_20' ) start [2025-01-30 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363279', 'tblTempVendorCDR_20' ) end [2025-01-30 11:13:21] Production.INFO: ProcessCDR(1,14363279,1,1,2) [2025-01-30 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363279', 'tblTempUsageDetail_20' ) start [2025-01-30 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363279', 'tblTempUsageDetail_20' ) end [2025-01-30 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:13:26] Production.INFO: ==18232== Releasing lock... [2025-01-30 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:13:26] Production.INFO: 58 MB #Memory Used# [2025-01-30 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:14:06 [end_date_ymd] => 2025-01-30 11:14:06 [RateCDR] => 1 ) [2025-01-30 11: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-30 08:14:06' and `end` < '2025-01-30 11: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-30 11:14:23] Production.INFO: count ==4040 [2025-01-30 11:14:25] Production.ERROR: pbx CDR StartTime 2025-01-30 08:14:06 - End Time 2025-01-30 11:14:06 [2025-01-30 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363284', 'tblTempUsageDetail_20' ) start [2025-01-30 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363284', 'tblTempUsageDetail_20' ) end [2025-01-30 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363284', 'tblTempVendorCDR_20' ) start [2025-01-30 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363284', 'tblTempVendorCDR_20' ) end [2025-01-30 11:14:25] Production.INFO: ProcessCDR(1,14363284,1,1,2) [2025-01-30 11:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363284', 'tblTempUsageDetail_20' ) start [2025-01-30 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363284', 'tblTempUsageDetail_20' ) end [2025-01-30 11:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:14:30] Production.INFO: ==18303== Releasing lock... [2025-01-30 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:14:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-30 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:15:05 [end_date_ymd] => 2025-01-30 11:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:15:05' and `end` < '2025-01-30 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-30 11:15:19] Production.INFO: count ==4029 [2025-01-30 11:15:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:15:05 - End Time 2025-01-30 11:15:05 [2025-01-30 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363289', 'tblTempUsageDetail_20' ) start [2025-01-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363289', 'tblTempUsageDetail_20' ) end [2025-01-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363289', 'tblTempVendorCDR_20' ) start [2025-01-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363289', 'tblTempVendorCDR_20' ) end [2025-01-30 11:15:21] Production.INFO: ProcessCDR(1,14363289,1,1,2) [2025-01-30 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363289', 'tblTempUsageDetail_20' ) start [2025-01-30 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363289', 'tblTempUsageDetail_20' ) end [2025-01-30 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:15:25] Production.INFO: ==18454== Releasing lock... [2025-01-30 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:15:25] Production.INFO: 58 MB #Memory Used# [2025-01-30 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:16:06 [end_date_ymd] => 2025-01-30 11:16:06 [RateCDR] => 1 ) [2025-01-30 11: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-30 08:16:06' and `end` < '2025-01-30 11: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-30 11:16:19] Production.INFO: count ==4056 [2025-01-30 11:16:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:16:06 - End Time 2025-01-30 11:16:06 [2025-01-30 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363294', 'tblTempUsageDetail_20' ) start [2025-01-30 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363294', 'tblTempUsageDetail_20' ) end [2025-01-30 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363294', 'tblTempVendorCDR_20' ) start [2025-01-30 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363294', 'tblTempVendorCDR_20' ) end [2025-01-30 11:16:21] Production.INFO: ProcessCDR(1,14363294,1,1,2) [2025-01-30 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363294', 'tblTempUsageDetail_20' ) start [2025-01-30 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363294', 'tblTempUsageDetail_20' ) end [2025-01-30 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:16:27] Production.INFO: ==18563== Releasing lock... [2025-01-30 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:16:27] Production.INFO: 58.25 MB #Memory Used# [2025-01-30 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:17:05 [end_date_ymd] => 2025-01-30 11:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:17:05' and `end` < '2025-01-30 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-30 11:17:21] Production.INFO: count ==4065 [2025-01-30 11:17:23] Production.ERROR: pbx CDR StartTime 2025-01-30 08:17:05 - End Time 2025-01-30 11:17:05 [2025-01-30 11:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363299', 'tblTempUsageDetail_20' ) start [2025-01-30 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363299', 'tblTempUsageDetail_20' ) end [2025-01-30 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363299', 'tblTempVendorCDR_20' ) start [2025-01-30 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363299', 'tblTempVendorCDR_20' ) end [2025-01-30 11:17:23] Production.INFO: ProcessCDR(1,14363299,1,1,2) [2025-01-30 11:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363299', 'tblTempUsageDetail_20' ) start [2025-01-30 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363299', 'tblTempUsageDetail_20' ) end [2025-01-30 11:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:17:28] Production.INFO: ==18633== Releasing lock... [2025-01-30 11:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:17:28] Production.INFO: 58.25 MB #Memory Used# [2025-01-30 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:18:06 [end_date_ymd] => 2025-01-30 11:18:06 [RateCDR] => 1 ) [2025-01-30 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-30 08:18:06' and `end` < '2025-01-30 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-30 11:18:22] Production.INFO: count ==4074 [2025-01-30 11:18:24] Production.ERROR: pbx CDR StartTime 2025-01-30 08:18:06 - End Time 2025-01-30 11:18:06 [2025-01-30 11:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363304', 'tblTempUsageDetail_20' ) start [2025-01-30 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363304', 'tblTempUsageDetail_20' ) end [2025-01-30 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363304', 'tblTempVendorCDR_20' ) start [2025-01-30 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363304', 'tblTempVendorCDR_20' ) end [2025-01-30 11:18:24] Production.INFO: ProcessCDR(1,14363304,1,1,2) [2025-01-30 11:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363304', 'tblTempUsageDetail_20' ) start [2025-01-30 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363304', 'tblTempUsageDetail_20' ) end [2025-01-30 11:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:18:29] Production.INFO: ==18705== Releasing lock... [2025-01-30 11:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:18:29] Production.INFO: 58.5 MB #Memory Used# [2025-01-30 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:19:05 [end_date_ymd] => 2025-01-30 11:19:05 [RateCDR] => 1 ) [2025-01-30 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:19:05' and `end` < '2025-01-30 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:19:21] Production.INFO: count ==4072 [2025-01-30 11:19:23] Production.ERROR: pbx CDR StartTime 2025-01-30 08:19:05 - End Time 2025-01-30 11:19:05 [2025-01-30 11:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363309', 'tblTempUsageDetail_20' ) start [2025-01-30 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363309', 'tblTempUsageDetail_20' ) end [2025-01-30 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363309', 'tblTempVendorCDR_20' ) start [2025-01-30 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363309', 'tblTempVendorCDR_20' ) end [2025-01-30 11:19:23] Production.INFO: ProcessCDR(1,14363309,1,1,2) [2025-01-30 11:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363309', 'tblTempUsageDetail_20' ) start [2025-01-30 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363309', 'tblTempUsageDetail_20' ) end [2025-01-30 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:19:28] Production.INFO: ==18778== Releasing lock... [2025-01-30 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:19:28] Production.INFO: 58.5 MB #Memory Used# [2025-01-30 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:20:06 [end_date_ymd] => 2025-01-30 11:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 08:20:06' and `end` < '2025-01-30 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-30 11:20:20] Production.INFO: count ==4079 [2025-01-30 11:20:22] Production.ERROR: pbx CDR StartTime 2025-01-30 08:20:06 - End Time 2025-01-30 11:20:06 [2025-01-30 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363314', 'tblTempUsageDetail_20' ) start [2025-01-30 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363314', 'tblTempUsageDetail_20' ) end [2025-01-30 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363314', 'tblTempVendorCDR_20' ) start [2025-01-30 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363314', 'tblTempVendorCDR_20' ) end [2025-01-30 11:20:22] Production.INFO: ProcessCDR(1,14363314,1,1,2) [2025-01-30 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363314', 'tblTempUsageDetail_20' ) start [2025-01-30 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363314', 'tblTempUsageDetail_20' ) end [2025-01-30 11:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:20:25] Production.INFO: ==18852== Releasing lock... [2025-01-30 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:20:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-30 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:21:05 [end_date_ymd] => 2025-01-30 11:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:21:05' and `end` < '2025-01-30 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-30 11:21:19] Production.INFO: count ==4111 [2025-01-30 11:21:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:21:05 - End Time 2025-01-30 11:21:05 [2025-01-30 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363320', 'tblTempUsageDetail_20' ) start [2025-01-30 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363320', 'tblTempUsageDetail_20' ) end [2025-01-30 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363320', 'tblTempVendorCDR_20' ) start [2025-01-30 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363320', 'tblTempVendorCDR_20' ) end [2025-01-30 11:21:21] Production.INFO: ProcessCDR(1,14363320,1,1,2) [2025-01-30 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363320', 'tblTempUsageDetail_20' ) start [2025-01-30 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363320', 'tblTempUsageDetail_20' ) end [2025-01-30 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:21:26] Production.INFO: ==18925== Releasing lock... [2025-01-30 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:21:26] Production.INFO: 58.75 MB #Memory Used# [2025-01-30 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:22:06 [end_date_ymd] => 2025-01-30 11:22:06 [RateCDR] => 1 ) [2025-01-30 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-30 08:22:06' and `end` < '2025-01-30 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-30 11:22:19] Production.INFO: count ==4122 [2025-01-30 11:22:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:22:06 - End Time 2025-01-30 11:22:06 [2025-01-30 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363325', 'tblTempUsageDetail_20' ) start [2025-01-30 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363325', 'tblTempUsageDetail_20' ) end [2025-01-30 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363325', 'tblTempVendorCDR_20' ) start [2025-01-30 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363325', 'tblTempVendorCDR_20' ) end [2025-01-30 11:22:21] Production.INFO: ProcessCDR(1,14363325,1,1,2) [2025-01-30 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363325', 'tblTempUsageDetail_20' ) start [2025-01-30 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363325', 'tblTempUsageDetail_20' ) end [2025-01-30 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:22:26] Production.INFO: ==18996== Releasing lock... [2025-01-30 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:22:26] Production.INFO: 58.75 MB #Memory Used# [2025-01-30 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:23:05 [end_date_ymd] => 2025-01-30 11:23:05 [RateCDR] => 1 ) [2025-01-30 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:23:05' and `end` < '2025-01-30 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:23:20] Production.INFO: count ==4127 [2025-01-30 11:23:22] Production.ERROR: pbx CDR StartTime 2025-01-30 08:23:05 - End Time 2025-01-30 11:23:05 [2025-01-30 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363330', 'tblTempUsageDetail_20' ) start [2025-01-30 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363330', 'tblTempUsageDetail_20' ) end [2025-01-30 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363330', 'tblTempVendorCDR_20' ) start [2025-01-30 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363330', 'tblTempVendorCDR_20' ) end [2025-01-30 11:23:22] Production.INFO: ProcessCDR(1,14363330,1,1,2) [2025-01-30 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363330', 'tblTempUsageDetail_20' ) start [2025-01-30 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363330', 'tblTempUsageDetail_20' ) end [2025-01-30 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:23:27] Production.INFO: ==19070== Releasing lock... [2025-01-30 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:23:27] Production.INFO: 58.75 MB #Memory Used# [2025-01-30 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:24:05 [end_date_ymd] => 2025-01-30 11:24:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:24:05' and `end` < '2025-01-30 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-30 11:24:24] Production.INFO: count ==4135 [2025-01-30 11:24:26] Production.ERROR: pbx CDR StartTime 2025-01-30 08:24:05 - End Time 2025-01-30 11:24:05 [2025-01-30 11:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363335', 'tblTempUsageDetail_20' ) start [2025-01-30 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363335', 'tblTempUsageDetail_20' ) end [2025-01-30 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363335', 'tblTempVendorCDR_20' ) start [2025-01-30 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363335', 'tblTempVendorCDR_20' ) end [2025-01-30 11:24:26] Production.INFO: ProcessCDR(1,14363335,1,1,2) [2025-01-30 11:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363335', 'tblTempUsageDetail_20' ) start [2025-01-30 11:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363335', 'tblTempUsageDetail_20' ) end [2025-01-30 11:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:24:31] Production.INFO: ==19148== Releasing lock... [2025-01-30 11:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:24:31] Production.INFO: 59 MB #Memory Used# [2025-01-30 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:25:06 [end_date_ymd] => 2025-01-30 11:25:06 [RateCDR] => 1 ) [2025-01-30 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:25:06' and `end` < '2025-01-30 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:25:24] Production.INFO: count ==4140 [2025-01-30 11:25:26] Production.ERROR: pbx CDR StartTime 2025-01-30 08:25:06 - End Time 2025-01-30 11:25:06 [2025-01-30 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363340', 'tblTempUsageDetail_20' ) start [2025-01-30 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363340', 'tblTempUsageDetail_20' ) end [2025-01-30 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363340', 'tblTempVendorCDR_20' ) start [2025-01-30 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363340', 'tblTempVendorCDR_20' ) end [2025-01-30 11:25:26] Production.INFO: ProcessCDR(1,14363340,1,1,2) [2025-01-30 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363340', 'tblTempUsageDetail_20' ) start [2025-01-30 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363340', 'tblTempUsageDetail_20' ) end [2025-01-30 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:25:31] Production.INFO: ==19218== Releasing lock... [2025-01-30 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:25:31] Production.INFO: 59 MB #Memory Used# [2025-01-30 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:26:05 [end_date_ymd] => 2025-01-30 11:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:26:05' and `end` < '2025-01-30 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-30 11:26:27] Production.INFO: count ==4145 [2025-01-30 11:26:29] Production.ERROR: pbx CDR StartTime 2025-01-30 08:26:05 - End Time 2025-01-30 11:26:05 [2025-01-30 11:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363345', 'tblTempUsageDetail_20' ) start [2025-01-30 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363345', 'tblTempUsageDetail_20' ) end [2025-01-30 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363345', 'tblTempVendorCDR_20' ) start [2025-01-30 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363345', 'tblTempVendorCDR_20' ) end [2025-01-30 11:26:29] Production.INFO: ProcessCDR(1,14363345,1,1,2) [2025-01-30 11:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363345', 'tblTempUsageDetail_20' ) start [2025-01-30 11:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363345', 'tblTempUsageDetail_20' ) end [2025-01-30 11:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:26:34] Production.INFO: ==19290== Releasing lock... [2025-01-30 11:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:26:34] Production.INFO: 59 MB #Memory Used# [2025-01-30 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:27:06 [end_date_ymd] => 2025-01-30 11:27:06 [RateCDR] => 1 ) [2025-01-30 11: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-30 08:27:06' and `end` < '2025-01-30 11: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-30 11:27:25] Production.INFO: count ==4181 [2025-01-30 11:27:27] Production.ERROR: pbx CDR StartTime 2025-01-30 08:27:06 - End Time 2025-01-30 11:27:06 [2025-01-30 11:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363350', 'tblTempUsageDetail_20' ) start [2025-01-30 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363350', 'tblTempUsageDetail_20' ) end [2025-01-30 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363350', 'tblTempVendorCDR_20' ) start [2025-01-30 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363350', 'tblTempVendorCDR_20' ) end [2025-01-30 11:27:27] Production.INFO: ProcessCDR(1,14363350,1,1,2) [2025-01-30 11:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363350', 'tblTempUsageDetail_20' ) start [2025-01-30 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363350', 'tblTempUsageDetail_20' ) end [2025-01-30 11:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:27:32] Production.INFO: ==19360== Releasing lock... [2025-01-30 11:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:27:32] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:28:05 [end_date_ymd] => 2025-01-30 11:28:05 [RateCDR] => 1 ) [2025-01-30 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:28:05' and `end` < '2025-01-30 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-30 11:28:26] Production.INFO: count ==4181 [2025-01-30 11:28:28] Production.ERROR: pbx CDR StartTime 2025-01-30 08:28:05 - End Time 2025-01-30 11:28:05 [2025-01-30 11:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363355', 'tblTempUsageDetail_20' ) start [2025-01-30 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363355', 'tblTempUsageDetail_20' ) end [2025-01-30 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363355', 'tblTempVendorCDR_20' ) start [2025-01-30 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363355', 'tblTempVendorCDR_20' ) end [2025-01-30 11:28:28] Production.INFO: ProcessCDR(1,14363355,1,1,2) [2025-01-30 11:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363355', 'tblTempUsageDetail_20' ) start [2025-01-30 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363355', 'tblTempUsageDetail_20' ) end [2025-01-30 11:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:28:33] Production.INFO: ==19432== Releasing lock... [2025-01-30 11:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:28:33] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:29:05 [end_date_ymd] => 2025-01-30 11:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:29:05' and `end` < '2025-01-30 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-30 11:29:23] Production.INFO: count ==4196 [2025-01-30 11:29:25] Production.ERROR: pbx CDR StartTime 2025-01-30 08:29:05 - End Time 2025-01-30 11:29:05 [2025-01-30 11:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363360', 'tblTempUsageDetail_20' ) start [2025-01-30 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363360', 'tblTempUsageDetail_20' ) end [2025-01-30 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363360', 'tblTempVendorCDR_20' ) start [2025-01-30 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363360', 'tblTempVendorCDR_20' ) end [2025-01-30 11:29:25] Production.INFO: ProcessCDR(1,14363360,1,1,2) [2025-01-30 11:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363360', 'tblTempUsageDetail_20' ) start [2025-01-30 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363360', 'tblTempUsageDetail_20' ) end [2025-01-30 11:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:29:30] Production.INFO: ==19510== Releasing lock... [2025-01-30 11:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:29:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:30:06 [end_date_ymd] => 2025-01-30 11:30:06 [RateCDR] => 1 ) [2025-01-30 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-30 08:30:06' and `end` < '2025-01-30 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-30 11:30:29] Production.INFO: count ==4218 [2025-01-30 11:30:31] Production.ERROR: pbx CDR StartTime 2025-01-30 08:30:06 - End Time 2025-01-30 11:30:06 [2025-01-30 11:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363365', 'tblTempUsageDetail_20' ) start [2025-01-30 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363365', 'tblTempUsageDetail_20' ) end [2025-01-30 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363365', 'tblTempVendorCDR_20' ) start [2025-01-30 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363365', 'tblTempVendorCDR_20' ) end [2025-01-30 11:30:31] Production.INFO: ProcessCDR(1,14363365,1,1,2) [2025-01-30 11:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363365', 'tblTempUsageDetail_20' ) start [2025-01-30 11:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363365', 'tblTempUsageDetail_20' ) end [2025-01-30 11:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:30:37] Production.INFO: ==19583== Releasing lock... [2025-01-30 11:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:30:37] Production.INFO: 59.5 MB #Memory Used# [2025-01-30 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:31:05 [end_date_ymd] => 2025-01-30 11:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:31:05' and `end` < '2025-01-30 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-30 11:31:25] Production.INFO: count ==4267 [2025-01-30 11:31:27] Production.ERROR: pbx CDR StartTime 2025-01-30 08:31:05 - End Time 2025-01-30 11:31:05 [2025-01-30 11:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363371', 'tblTempUsageDetail_20' ) start [2025-01-30 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363371', 'tblTempUsageDetail_20' ) end [2025-01-30 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363371', 'tblTempVendorCDR_20' ) start [2025-01-30 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363371', 'tblTempVendorCDR_20' ) end [2025-01-30 11:31:27] Production.INFO: ProcessCDR(1,14363371,1,1,2) [2025-01-30 11:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363371', 'tblTempUsageDetail_20' ) start [2025-01-30 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363371', 'tblTempUsageDetail_20' ) end [2025-01-30 11:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:31:32] Production.INFO: ==19657== Releasing lock... [2025-01-30 11:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:31:32] Production.INFO: 60 MB #Memory Used# [2025-01-30 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:32:05 [end_date_ymd] => 2025-01-30 11:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:32:05' and `end` < '2025-01-30 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-30 11:32:21] Production.INFO: count ==4285 [2025-01-30 11:32:23] Production.ERROR: pbx CDR StartTime 2025-01-30 08:32:05 - End Time 2025-01-30 11:32:05 [2025-01-30 11:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363376', 'tblTempUsageDetail_20' ) start [2025-01-30 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363376', 'tblTempUsageDetail_20' ) end [2025-01-30 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363376', 'tblTempVendorCDR_20' ) start [2025-01-30 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363376', 'tblTempVendorCDR_20' ) end [2025-01-30 11:32:23] Production.INFO: ProcessCDR(1,14363376,1,1,2) [2025-01-30 11:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363376', 'tblTempUsageDetail_20' ) start [2025-01-30 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363376', 'tblTempUsageDetail_20' ) end [2025-01-30 11:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:32:28] Production.INFO: ==19765== Releasing lock... [2025-01-30 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:32:28] Production.INFO: 60 MB #Memory Used# [2025-01-30 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:33:05 [end_date_ymd] => 2025-01-30 11:33:05 [RateCDR] => 1 ) [2025-01-30 11: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-30 08:33:05' and `end` < '2025-01-30 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-30 11:33:25] Production.INFO: count ==4284 [2025-01-30 11:33:27] Production.ERROR: pbx CDR StartTime 2025-01-30 08:33:05 - End Time 2025-01-30 11:33:05 [2025-01-30 11:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363381', 'tblTempUsageDetail_20' ) start [2025-01-30 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363381', 'tblTempUsageDetail_20' ) end [2025-01-30 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363381', 'tblTempVendorCDR_20' ) start [2025-01-30 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363381', 'tblTempVendorCDR_20' ) end [2025-01-30 11:33:27] Production.INFO: ProcessCDR(1,14363381,1,1,2) [2025-01-30 11:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363381', 'tblTempUsageDetail_20' ) start [2025-01-30 11:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363381', 'tblTempUsageDetail_20' ) end [2025-01-30 11:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:33:32] Production.INFO: ==19837== Releasing lock... [2025-01-30 11:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:33:32] Production.INFO: 60 MB #Memory Used# [2025-01-30 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:34:05 [end_date_ymd] => 2025-01-30 11:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:34:05' and `end` < '2025-01-30 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-30 11:34:22] Production.INFO: count ==4291 [2025-01-30 11:34:23] Production.ERROR: pbx CDR StartTime 2025-01-30 08:34:05 - End Time 2025-01-30 11:34:05 [2025-01-30 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363386', 'tblTempUsageDetail_20' ) start [2025-01-30 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363386', 'tblTempUsageDetail_20' ) end [2025-01-30 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363386', 'tblTempVendorCDR_20' ) start [2025-01-30 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363386', 'tblTempVendorCDR_20' ) end [2025-01-30 11:34:23] Production.INFO: ProcessCDR(1,14363386,1,1,2) [2025-01-30 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363386', 'tblTempUsageDetail_20' ) start [2025-01-30 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363386', 'tblTempUsageDetail_20' ) end [2025-01-30 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:34:29] Production.INFO: ==19912== Releasing lock... [2025-01-30 11:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:34:29] Production.INFO: 60 MB #Memory Used# [2025-01-30 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:35:06 [end_date_ymd] => 2025-01-30 11:35:06 [RateCDR] => 1 ) [2025-01-30 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:35:06' and `end` < '2025-01-30 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:35:19] Production.INFO: count ==4304 [2025-01-30 11:35:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:35:06 - End Time 2025-01-30 11:35:06 [2025-01-30 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363391', 'tblTempUsageDetail_20' ) start [2025-01-30 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363391', 'tblTempUsageDetail_20' ) end [2025-01-30 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363391', 'tblTempVendorCDR_20' ) start [2025-01-30 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363391', 'tblTempVendorCDR_20' ) end [2025-01-30 11:35:21] Production.INFO: ProcessCDR(1,14363391,1,1,2) [2025-01-30 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363391', 'tblTempUsageDetail_20' ) start [2025-01-30 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363391', 'tblTempUsageDetail_20' ) end [2025-01-30 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:35:27] Production.INFO: ==19986== Releasing lock... [2025-01-30 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:35:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-30 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:36:05 [end_date_ymd] => 2025-01-30 11:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:36:05' and `end` < '2025-01-30 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-30 11:36:18] Production.INFO: count ==4302 [2025-01-30 11:36:20] Production.ERROR: pbx CDR StartTime 2025-01-30 08:36:05 - End Time 2025-01-30 11:36:05 [2025-01-30 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363396', 'tblTempUsageDetail_20' ) start [2025-01-30 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363396', 'tblTempUsageDetail_20' ) end [2025-01-30 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363396', 'tblTempVendorCDR_20' ) start [2025-01-30 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363396', 'tblTempVendorCDR_20' ) end [2025-01-30 11:36:20] Production.INFO: ProcessCDR(1,14363396,1,1,2) [2025-01-30 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363396', 'tblTempUsageDetail_20' ) start [2025-01-30 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363396', 'tblTempUsageDetail_20' ) end [2025-01-30 11:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:36:24] Production.INFO: ==20057== Releasing lock... [2025-01-30 11:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:36:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-30 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:37:06 [end_date_ymd] => 2025-01-30 11:37:06 [RateCDR] => 1 ) [2025-01-30 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:37:06' and `end` < '2025-01-30 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:37:24] Production.INFO: count ==4301 [2025-01-30 11:37:26] Production.ERROR: pbx CDR StartTime 2025-01-30 08:37:06 - End Time 2025-01-30 11:37:06 [2025-01-30 11:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363401', 'tblTempUsageDetail_20' ) start [2025-01-30 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363401', 'tblTempUsageDetail_20' ) end [2025-01-30 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363401', 'tblTempVendorCDR_20' ) start [2025-01-30 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363401', 'tblTempVendorCDR_20' ) end [2025-01-30 11:37:26] Production.INFO: ProcessCDR(1,14363401,1,1,2) [2025-01-30 11:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363401', 'tblTempUsageDetail_20' ) start [2025-01-30 11:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363401', 'tblTempUsageDetail_20' ) end [2025-01-30 11:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:37:31] Production.INFO: ==20130== Releasing lock... [2025-01-30 11:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:37:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-30 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:38:05 [end_date_ymd] => 2025-01-30 11:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:38:05' and `end` < '2025-01-30 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-30 11:38:25] Production.INFO: count ==4319 [2025-01-30 11:38:27] Production.ERROR: pbx CDR StartTime 2025-01-30 08:38:05 - End Time 2025-01-30 11:38:05 [2025-01-30 11:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363406', 'tblTempUsageDetail_20' ) start [2025-01-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363406', 'tblTempUsageDetail_20' ) end [2025-01-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363406', 'tblTempVendorCDR_20' ) start [2025-01-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363406', 'tblTempVendorCDR_20' ) end [2025-01-30 11:38:27] Production.INFO: ProcessCDR(1,14363406,1,1,2) [2025-01-30 11:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363406', 'tblTempUsageDetail_20' ) start [2025-01-30 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363406', 'tblTempUsageDetail_20' ) end [2025-01-30 11:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:38:32] Production.INFO: ==20214== Releasing lock... [2025-01-30 11:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:38:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-30 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:39:05 [end_date_ymd] => 2025-01-30 11:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:39:05' and `end` < '2025-01-30 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-30 11:39:22] Production.INFO: count ==4366 [2025-01-30 11:39:24] Production.ERROR: pbx CDR StartTime 2025-01-30 08:39:05 - End Time 2025-01-30 11:39:05 [2025-01-30 11:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363411', 'tblTempUsageDetail_20' ) start [2025-01-30 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363411', 'tblTempUsageDetail_20' ) end [2025-01-30 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363411', 'tblTempVendorCDR_20' ) start [2025-01-30 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363411', 'tblTempVendorCDR_20' ) end [2025-01-30 11:39:24] Production.INFO: ProcessCDR(1,14363411,1,1,2) [2025-01-30 11:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363411', 'tblTempUsageDetail_20' ) start [2025-01-30 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363411', 'tblTempUsageDetail_20' ) end [2025-01-30 11:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:39:29] Production.INFO: ==20289== Releasing lock... [2025-01-30 11:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:39:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-30 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:40:07 [end_date_ymd] => 2025-01-30 11:40:07 [RateCDR] => 1 ) [2025-01-30 11: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-30 08:40:07' and `end` < '2025-01-30 11: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-30 11:40:20] Production.INFO: count ==4366 [2025-01-30 11:40:22] Production.ERROR: pbx CDR StartTime 2025-01-30 08:40:07 - End Time 2025-01-30 11:40:07 [2025-01-30 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363417', 'tblTempUsageDetail_20' ) start [2025-01-30 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363417', 'tblTempUsageDetail_20' ) end [2025-01-30 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363417', 'tblTempVendorCDR_20' ) start [2025-01-30 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363417', 'tblTempVendorCDR_20' ) end [2025-01-30 11:40:22] Production.INFO: ProcessCDR(1,14363417,1,1,2) [2025-01-30 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363417', 'tblTempUsageDetail_20' ) start [2025-01-30 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363417', 'tblTempUsageDetail_20' ) end [2025-01-30 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:40:27] Production.INFO: ==20364== Releasing lock... [2025-01-30 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:40:27] Production.INFO: 60.75 MB #Memory Used# [2025-01-30 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:41:05 [end_date_ymd] => 2025-01-30 11:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:41:05' and `end` < '2025-01-30 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-30 11:41:19] Production.INFO: count ==4397 [2025-01-30 11:41:21] Production.ERROR: pbx CDR StartTime 2025-01-30 08:41:05 - End Time 2025-01-30 11:41:05 [2025-01-30 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363422', 'tblTempUsageDetail_20' ) start [2025-01-30 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363422', 'tblTempUsageDetail_20' ) end [2025-01-30 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363422', 'tblTempVendorCDR_20' ) start [2025-01-30 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363422', 'tblTempVendorCDR_20' ) end [2025-01-30 11:41:21] Production.INFO: ProcessCDR(1,14363422,1,1,2) [2025-01-30 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363422', 'tblTempUsageDetail_20' ) start [2025-01-30 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363422', 'tblTempUsageDetail_20' ) end [2025-01-30 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:41:26] Production.INFO: ==20439== Releasing lock... [2025-01-30 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:41:26] Production.INFO: 60.75 MB #Memory Used# [2025-01-30 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:42:06 [end_date_ymd] => 2025-01-30 11:42:06 [RateCDR] => 1 ) [2025-01-30 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:42:06' and `end` < '2025-01-30 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:42:25] Production.INFO: count ==4409 [2025-01-30 11:42:27] Production.ERROR: pbx CDR StartTime 2025-01-30 08:42:06 - End Time 2025-01-30 11:42:06 [2025-01-30 11:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363427', 'tblTempUsageDetail_20' ) start [2025-01-30 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363427', 'tblTempUsageDetail_20' ) end [2025-01-30 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363427', 'tblTempVendorCDR_20' ) start [2025-01-30 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363427', 'tblTempVendorCDR_20' ) end [2025-01-30 11:42:28] Production.INFO: ProcessCDR(1,14363427,1,1,2) [2025-01-30 11:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363427', 'tblTempUsageDetail_20' ) start [2025-01-30 11:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363427', 'tblTempUsageDetail_20' ) end [2025-01-30 11:42:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:42:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:42:33] Production.INFO: ==20516== Releasing lock... [2025-01-30 11:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:42:33] Production.INFO: 61 MB #Memory Used# [2025-01-30 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:43:05 [end_date_ymd] => 2025-01-30 11:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:43:05' and `end` < '2025-01-30 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-30 11:43:23] Production.INFO: count ==4422 [2025-01-30 11:43:25] Production.ERROR: pbx CDR StartTime 2025-01-30 08:43:05 - End Time 2025-01-30 11:43:05 [2025-01-30 11:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363432', 'tblTempUsageDetail_20' ) start [2025-01-30 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363432', 'tblTempUsageDetail_20' ) end [2025-01-30 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363432', 'tblTempVendorCDR_20' ) start [2025-01-30 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363432', 'tblTempVendorCDR_20' ) end [2025-01-30 11:43:25] Production.INFO: ProcessCDR(1,14363432,1,1,2) [2025-01-30 11:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363432', 'tblTempUsageDetail_20' ) start [2025-01-30 11:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363432', 'tblTempUsageDetail_20' ) end [2025-01-30 11:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:43:30] Production.INFO: ==20590== Releasing lock... [2025-01-30 11:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:43:30] Production.INFO: 61 MB #Memory Used# [2025-01-30 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:44:05 [end_date_ymd] => 2025-01-30 11:44:05 [RateCDR] => 1 ) [2025-01-30 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:44:05' and `end` < '2025-01-30 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:44:25] Production.INFO: count ==4447 [2025-01-30 11:44:27] Production.ERROR: pbx CDR StartTime 2025-01-30 08:44:05 - End Time 2025-01-30 11:44:05 [2025-01-30 11:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363437', 'tblTempUsageDetail_20' ) start [2025-01-30 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363437', 'tblTempUsageDetail_20' ) end [2025-01-30 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363437', 'tblTempVendorCDR_20' ) start [2025-01-30 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363437', 'tblTempVendorCDR_20' ) end [2025-01-30 11:44:27] Production.INFO: ProcessCDR(1,14363437,1,1,2) [2025-01-30 11:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363437', 'tblTempUsageDetail_20' ) start [2025-01-30 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363437', 'tblTempUsageDetail_20' ) end [2025-01-30 11:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:44:32] Production.INFO: ==20666== Releasing lock... [2025-01-30 11:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:44:32] Production.INFO: 61.25 MB #Memory Used# [2025-01-30 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:45:05 [end_date_ymd] => 2025-01-30 11:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:45:05' and `end` < '2025-01-30 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-30 11:45:24] Production.INFO: count ==4475 [2025-01-30 11:45:26] Production.ERROR: pbx CDR StartTime 2025-01-30 08:45:05 - End Time 2025-01-30 11:45:05 [2025-01-30 11:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363442', 'tblTempUsageDetail_20' ) start [2025-01-30 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363442', 'tblTempUsageDetail_20' ) end [2025-01-30 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363442', 'tblTempVendorCDR_20' ) start [2025-01-30 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363442', 'tblTempVendorCDR_20' ) end [2025-01-30 11:45:26] Production.INFO: ProcessCDR(1,14363442,1,1,2) [2025-01-30 11:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363442', 'tblTempUsageDetail_20' ) start [2025-01-30 11:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363442', 'tblTempUsageDetail_20' ) end [2025-01-30 11:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:45:31] Production.INFO: ==20744== Releasing lock... [2025-01-30 11:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:45:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-30 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:46:06 [end_date_ymd] => 2025-01-30 11:46:06 [RateCDR] => 1 ) [2025-01-30 11: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-30 08:46:06' and `end` < '2025-01-30 11: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-30 11:46:26] Production.INFO: count ==4504 [2025-01-30 11:46:28] Production.ERROR: pbx CDR StartTime 2025-01-30 08:46:06 - End Time 2025-01-30 11:46:06 [2025-01-30 11:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363447', 'tblTempUsageDetail_20' ) start [2025-01-30 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363447', 'tblTempUsageDetail_20' ) end [2025-01-30 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363447', 'tblTempVendorCDR_20' ) start [2025-01-30 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363447', 'tblTempVendorCDR_20' ) end [2025-01-30 11:46:28] Production.INFO: ProcessCDR(1,14363447,1,1,2) [2025-01-30 11:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363447', 'tblTempUsageDetail_20' ) start [2025-01-30 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363447', 'tblTempUsageDetail_20' ) end [2025-01-30 11:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:46:33] Production.INFO: ==20821== Releasing lock... [2025-01-30 11:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:46:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-30 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:47:05 [end_date_ymd] => 2025-01-30 11:47:05 [RateCDR] => 1 ) [2025-01-30 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:47:05' and `end` < '2025-01-30 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:47:21] Production.INFO: count ==4573 [2025-01-30 11:47:24] Production.ERROR: pbx CDR StartTime 2025-01-30 08:47:05 - End Time 2025-01-30 11:47:05 [2025-01-30 11:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363452', 'tblTempUsageDetail_20' ) start [2025-01-30 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363452', 'tblTempUsageDetail_20' ) end [2025-01-30 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363452', 'tblTempVendorCDR_20' ) start [2025-01-30 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363452', 'tblTempVendorCDR_20' ) end [2025-01-30 11:47:24] Production.INFO: ProcessCDR(1,14363452,1,1,2) [2025-01-30 11:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363452', 'tblTempUsageDetail_20' ) start [2025-01-30 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363452', 'tblTempUsageDetail_20' ) end [2025-01-30 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:47:29] Production.INFO: ==20935== Releasing lock... [2025-01-30 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:47:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-30 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:48:06 [end_date_ymd] => 2025-01-30 11:48:06 [RateCDR] => 1 ) [2025-01-30 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-30 08:48:06' and `end` < '2025-01-30 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-30 11:48:21] Production.INFO: count ==4577 [2025-01-30 11:48:23] Production.ERROR: pbx CDR StartTime 2025-01-30 08:48:06 - End Time 2025-01-30 11:48:06 [2025-01-30 11:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363457', 'tblTempUsageDetail_20' ) start [2025-01-30 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363457', 'tblTempUsageDetail_20' ) end [2025-01-30 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363457', 'tblTempVendorCDR_20' ) start [2025-01-30 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363457', 'tblTempVendorCDR_20' ) end [2025-01-30 11:48:24] Production.INFO: ProcessCDR(1,14363457,1,1,2) [2025-01-30 11:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363457', 'tblTempUsageDetail_20' ) start [2025-01-30 11:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363457', 'tblTempUsageDetail_20' ) end [2025-01-30 11:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:48:29] Production.INFO: ==21008== Releasing lock... [2025-01-30 11:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:48:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-30 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:49:05 [end_date_ymd] => 2025-01-30 11:49:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:49:05' and `end` < '2025-01-30 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-30 11:49:24] Production.INFO: count ==4584 [2025-01-30 11:49:26] Production.ERROR: pbx CDR StartTime 2025-01-30 08:49:05 - End Time 2025-01-30 11:49:05 [2025-01-30 11:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363462', 'tblTempUsageDetail_20' ) start [2025-01-30 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363462', 'tblTempUsageDetail_20' ) end [2025-01-30 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363462', 'tblTempVendorCDR_20' ) start [2025-01-30 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363462', 'tblTempVendorCDR_20' ) end [2025-01-30 11:49:26] Production.INFO: ProcessCDR(1,14363462,1,1,2) [2025-01-30 11:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363462', 'tblTempUsageDetail_20' ) start [2025-01-30 11:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363462', 'tblTempUsageDetail_20' ) end [2025-01-30 11:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:49:31] Production.INFO: ==21088== Releasing lock... [2025-01-30 11:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:49:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-30 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:50:06 [end_date_ymd] => 2025-01-30 11:50:06 [RateCDR] => 1 ) [2025-01-30 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:50:06' and `end` < '2025-01-30 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:50:27] Production.INFO: count ==4579 [2025-01-30 11:50:30] Production.ERROR: pbx CDR StartTime 2025-01-30 08:50:06 - End Time 2025-01-30 11:50:06 [2025-01-30 11:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363468', 'tblTempUsageDetail_20' ) start [2025-01-30 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363468', 'tblTempUsageDetail_20' ) end [2025-01-30 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363468', 'tblTempVendorCDR_20' ) start [2025-01-30 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363468', 'tblTempVendorCDR_20' ) end [2025-01-30 11:50:30] Production.INFO: ProcessCDR(1,14363468,1,1,2) [2025-01-30 11:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363468', 'tblTempUsageDetail_20' ) start [2025-01-30 11:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363468', 'tblTempUsageDetail_20' ) end [2025-01-30 11:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:50:35] Production.INFO: ==21166== Releasing lock... [2025-01-30 11:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:50:35] Production.INFO: 62.25 MB #Memory Used# [2025-01-30 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:51:05 [end_date_ymd] => 2025-01-30 11:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:51:05' and `end` < '2025-01-30 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-30 11:51:25] Production.INFO: count ==4675 [2025-01-30 11:51:27] Production.ERROR: pbx CDR StartTime 2025-01-30 08:51:05 - End Time 2025-01-30 11:51:05 [2025-01-30 11:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363473', 'tblTempUsageDetail_20' ) start [2025-01-30 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363473', 'tblTempUsageDetail_20' ) end [2025-01-30 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363473', 'tblTempVendorCDR_20' ) start [2025-01-30 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363473', 'tblTempVendorCDR_20' ) end [2025-01-30 11:51:28] Production.INFO: ProcessCDR(1,14363473,1,1,2) [2025-01-30 11:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363473', 'tblTempUsageDetail_20' ) start [2025-01-30 11:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363473', 'tblTempUsageDetail_20' ) end [2025-01-30 11:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:51:33] Production.INFO: ==21246== Releasing lock... [2025-01-30 11:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:51:33] Production.INFO: 63 MB #Memory Used# [2025-01-30 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:52:06 [end_date_ymd] => 2025-01-30 11:52:06 [RateCDR] => 1 ) [2025-01-30 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:52:06' and `end` < '2025-01-30 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:52:23] Production.INFO: count ==4676 [2025-01-30 11:52:25] Production.ERROR: pbx CDR StartTime 2025-01-30 08:52:06 - End Time 2025-01-30 11:52:06 [2025-01-30 11:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363478', 'tblTempUsageDetail_20' ) start [2025-01-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363478', 'tblTempUsageDetail_20' ) end [2025-01-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363478', 'tblTempVendorCDR_20' ) start [2025-01-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363478', 'tblTempVendorCDR_20' ) end [2025-01-30 11:52:25] Production.INFO: ProcessCDR(1,14363478,1,1,2) [2025-01-30 11:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363478', 'tblTempUsageDetail_20' ) start [2025-01-30 11:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363478', 'tblTempUsageDetail_20' ) end [2025-01-30 11:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:52:30] Production.INFO: ==21324== Releasing lock... [2025-01-30 11:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:52:30] Production.INFO: 63 MB #Memory Used# [2025-01-30 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:53:05 [end_date_ymd] => 2025-01-30 11:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:53:05' and `end` < '2025-01-30 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-30 11:53:24] Production.INFO: count ==4689 [2025-01-30 11:53:26] Production.ERROR: pbx CDR StartTime 2025-01-30 08:53:05 - End Time 2025-01-30 11:53:05 [2025-01-30 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363483', 'tblTempUsageDetail_20' ) start [2025-01-30 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363483', 'tblTempUsageDetail_20' ) end [2025-01-30 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363483', 'tblTempVendorCDR_20' ) start [2025-01-30 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363483', 'tblTempVendorCDR_20' ) end [2025-01-30 11:53:26] Production.INFO: ProcessCDR(1,14363483,1,1,2) [2025-01-30 11:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363483', 'tblTempUsageDetail_20' ) start [2025-01-30 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363483', 'tblTempUsageDetail_20' ) end [2025-01-30 11:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:53:32] Production.INFO: ==21401== Releasing lock... [2025-01-30 11:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:53:32] Production.INFO: 63 MB #Memory Used# [2025-01-30 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:54:06 [end_date_ymd] => 2025-01-30 11:54:06 [RateCDR] => 1 ) [2025-01-30 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:54:06' and `end` < '2025-01-30 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:54:26] Production.INFO: count ==4700 [2025-01-30 11:54:28] Production.ERROR: pbx CDR StartTime 2025-01-30 08:54:06 - End Time 2025-01-30 11:54:06 [2025-01-30 11:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363488', 'tblTempUsageDetail_20' ) start [2025-01-30 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363488', 'tblTempUsageDetail_20' ) end [2025-01-30 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363488', 'tblTempVendorCDR_20' ) start [2025-01-30 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363488', 'tblTempVendorCDR_20' ) end [2025-01-30 11:54:28] Production.INFO: ProcessCDR(1,14363488,1,1,2) [2025-01-30 11:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363488', 'tblTempUsageDetail_20' ) start [2025-01-30 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363488', 'tblTempUsageDetail_20' ) end [2025-01-30 11:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:54:33] Production.INFO: ==21475== Releasing lock... [2025-01-30 11:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:54:33] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:55:05 [end_date_ymd] => 2025-01-30 11:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:55:05' and `end` < '2025-01-30 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-30 11:55:25] Production.INFO: count ==4697 [2025-01-30 11:55:28] Production.ERROR: pbx CDR StartTime 2025-01-30 08:55:05 - End Time 2025-01-30 11:55:05 [2025-01-30 11:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363493', 'tblTempUsageDetail_20' ) start [2025-01-30 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363493', 'tblTempUsageDetail_20' ) end [2025-01-30 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363493', 'tblTempVendorCDR_20' ) start [2025-01-30 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363493', 'tblTempVendorCDR_20' ) end [2025-01-30 11:55:28] Production.INFO: ProcessCDR(1,14363493,1,1,2) [2025-01-30 11:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363493', 'tblTempUsageDetail_20' ) start [2025-01-30 11:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363493', 'tblTempUsageDetail_20' ) end [2025-01-30 11:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:55:33] Production.INFO: ==21554== Releasing lock... [2025-01-30 11:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:55:33] Production.INFO: 63 MB #Memory Used# [2025-01-30 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:56:06 [end_date_ymd] => 2025-01-30 11:56:06 [RateCDR] => 1 ) [2025-01-30 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:56:06' and `end` < '2025-01-30 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:56:22] Production.INFO: count ==4706 [2025-01-30 11:56:24] Production.ERROR: pbx CDR StartTime 2025-01-30 08:56:06 - End Time 2025-01-30 11:56:06 [2025-01-30 11:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363498', 'tblTempUsageDetail_20' ) start [2025-01-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363498', 'tblTempUsageDetail_20' ) end [2025-01-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363498', 'tblTempVendorCDR_20' ) start [2025-01-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363498', 'tblTempVendorCDR_20' ) end [2025-01-30 11:56:24] Production.INFO: ProcessCDR(1,14363498,1,1,2) [2025-01-30 11:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363498', 'tblTempUsageDetail_20' ) start [2025-01-30 11:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363498', 'tblTempUsageDetail_20' ) end [2025-01-30 11:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:56:30] Production.INFO: ==21627== Releasing lock... [2025-01-30 11:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:56:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:57:05 [end_date_ymd] => 2025-01-30 11:57:05 [RateCDR] => 1 ) [2025-01-30 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:57:05' and `end` < '2025-01-30 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-30 11:57:22] Production.INFO: count ==4729 [2025-01-30 11:57:24] Production.ERROR: pbx CDR StartTime 2025-01-30 08:57:05 - End Time 2025-01-30 11:57:05 [2025-01-30 11:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363503', 'tblTempUsageDetail_20' ) start [2025-01-30 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363503', 'tblTempUsageDetail_20' ) end [2025-01-30 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363503', 'tblTempVendorCDR_20' ) start [2025-01-30 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363503', 'tblTempVendorCDR_20' ) end [2025-01-30 11:57:25] Production.INFO: ProcessCDR(1,14363503,1,1,2) [2025-01-30 11:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363503', 'tblTempUsageDetail_20' ) start [2025-01-30 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363503', 'tblTempUsageDetail_20' ) end [2025-01-30 11:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:57:30] Production.INFO: ==21704== Releasing lock... [2025-01-30 11:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:57:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:58:06 [end_date_ymd] => 2025-01-30 11:58:06 [RateCDR] => 1 ) [2025-01-30 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 08:58:06' and `end` < '2025-01-30 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 11:58:22] Production.INFO: count ==4740 [2025-01-30 11:58:24] Production.ERROR: pbx CDR StartTime 2025-01-30 08:58:06 - End Time 2025-01-30 11:58:06 [2025-01-30 11:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363508', 'tblTempUsageDetail_20' ) start [2025-01-30 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363508', 'tblTempUsageDetail_20' ) end [2025-01-30 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363508', 'tblTempVendorCDR_20' ) start [2025-01-30 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363508', 'tblTempVendorCDR_20' ) end [2025-01-30 11:58:24] Production.INFO: ProcessCDR(1,14363508,1,1,2) [2025-01-30 11:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363508', 'tblTempUsageDetail_20' ) start [2025-01-30 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363508', 'tblTempUsageDetail_20' ) end [2025-01-30 11:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:58:30] Production.INFO: ==21778== Releasing lock... [2025-01-30 11:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:58:30] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 08:59:05 [end_date_ymd] => 2025-01-30 11:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 08:59:05' and `end` < '2025-01-30 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-30 11:59:24] Production.INFO: count ==4745 [2025-01-30 11:59:26] Production.ERROR: pbx CDR StartTime 2025-01-30 08:59:05 - End Time 2025-01-30 11:59:05 [2025-01-30 11:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363513', 'tblTempUsageDetail_20' ) start [2025-01-30 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363513', 'tblTempUsageDetail_20' ) end [2025-01-30 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363513', 'tblTempVendorCDR_20' ) start [2025-01-30 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363513', 'tblTempVendorCDR_20' ) end [2025-01-30 11:59:26] Production.INFO: ProcessCDR(1,14363513,1,1,2) [2025-01-30 11:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 11:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363513', 'tblTempUsageDetail_20' ) start [2025-01-30 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363513', 'tblTempUsageDetail_20' ) end [2025-01-30 11:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 11:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 11:59:30] Production.INFO: ==21851== Releasing lock... [2025-01-30 11:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 11:59:30] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:00:07 [end_date_ymd] => 2025-01-30 12:00:07 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:00:07' and `end` < '2025-01-30 12: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-30 12:00:21] Production.INFO: count ==4745 [2025-01-30 12:00:23] Production.ERROR: pbx CDR StartTime 2025-01-30 09:00:07 - End Time 2025-01-30 12:00:07 [2025-01-30 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363519', 'tblTempUsageDetail_20' ) start [2025-01-30 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363519', 'tblTempUsageDetail_20' ) end [2025-01-30 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363519', 'tblTempVendorCDR_20' ) start [2025-01-30 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363519', 'tblTempVendorCDR_20' ) end [2025-01-30 12:00:23] Production.INFO: ProcessCDR(1,14363519,1,1,2) [2025-01-30 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363519', 'tblTempUsageDetail_20' ) start [2025-01-30 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363519', 'tblTempUsageDetail_20' ) end [2025-01-30 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:00:27] Production.INFO: ==21930== Releasing lock... [2025-01-30 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:00:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:01:05 [end_date_ymd] => 2025-01-30 12:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:01:05' and `end` < '2025-01-30 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-30 12:01:23] Production.INFO: count ==4796 [2025-01-30 12:01:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:01:05 - End Time 2025-01-30 12:01:05 [2025-01-30 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363524', 'tblTempUsageDetail_20' ) start [2025-01-30 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363524', 'tblTempUsageDetail_20' ) end [2025-01-30 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363524', 'tblTempVendorCDR_20' ) start [2025-01-30 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363524', 'tblTempVendorCDR_20' ) end [2025-01-30 12:01:25] Production.INFO: ProcessCDR(1,14363524,1,1,2) [2025-01-30 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363524', 'tblTempUsageDetail_20' ) start [2025-01-30 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363524', 'tblTempUsageDetail_20' ) end [2025-01-30 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:01:30] Production.INFO: ==22022== Releasing lock... [2025-01-30 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:01:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:02:06 [end_date_ymd] => 2025-01-30 12:02:06 [RateCDR] => 1 ) [2025-01-30 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:02:06' and `end` < '2025-01-30 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:02:24] Production.INFO: count ==4797 [2025-01-30 12:02:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:02:06 - End Time 2025-01-30 12:02:06 [2025-01-30 12:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363529', 'tblTempUsageDetail_20' ) start [2025-01-30 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363529', 'tblTempUsageDetail_20' ) end [2025-01-30 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363529', 'tblTempVendorCDR_20' ) start [2025-01-30 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363529', 'tblTempVendorCDR_20' ) end [2025-01-30 12:02:27] Production.INFO: ProcessCDR(1,14363529,1,1,2) [2025-01-30 12:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363529', 'tblTempUsageDetail_20' ) start [2025-01-30 12:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363529', 'tblTempUsageDetail_20' ) end [2025-01-30 12:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:02:32] Production.INFO: ==22099== Releasing lock... [2025-01-30 12:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:02:32] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:03:05 [end_date_ymd] => 2025-01-30 12:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:03:05' and `end` < '2025-01-30 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-30 12:03:25] Production.INFO: count ==4804 [2025-01-30 12:03:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:03:05 - End Time 2025-01-30 12:03:05 [2025-01-30 12:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363534', 'tblTempUsageDetail_20' ) start [2025-01-30 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363534', 'tblTempUsageDetail_20' ) end [2025-01-30 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363534', 'tblTempVendorCDR_20' ) start [2025-01-30 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363534', 'tblTempVendorCDR_20' ) end [2025-01-30 12:03:27] Production.INFO: ProcessCDR(1,14363534,1,1,2) [2025-01-30 12:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363534', 'tblTempUsageDetail_20' ) start [2025-01-30 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363534', 'tblTempUsageDetail_20' ) end [2025-01-30 12:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:03:33] Production.INFO: ==22212== Releasing lock... [2025-01-30 12:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:03:33] Production.INFO: 64 MB #Memory Used# [2025-01-30 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:04:06 [end_date_ymd] => 2025-01-30 12:04:06 [RateCDR] => 1 ) [2025-01-30 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:04:06' and `end` < '2025-01-30 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:04:27] Production.INFO: count ==4816 [2025-01-30 12:04:29] Production.ERROR: pbx CDR StartTime 2025-01-30 09:04:06 - End Time 2025-01-30 12:04:06 [2025-01-30 12:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363539', 'tblTempUsageDetail_20' ) start [2025-01-30 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363539', 'tblTempUsageDetail_20' ) end [2025-01-30 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363539', 'tblTempVendorCDR_20' ) start [2025-01-30 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363539', 'tblTempVendorCDR_20' ) end [2025-01-30 12:04:29] Production.INFO: ProcessCDR(1,14363539,1,1,2) [2025-01-30 12:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363539', 'tblTempUsageDetail_20' ) start [2025-01-30 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363539', 'tblTempUsageDetail_20' ) end [2025-01-30 12:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:04:34] Production.INFO: ==22285== Releasing lock... [2025-01-30 12:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:04:34] Production.INFO: 64 MB #Memory Used# [2025-01-30 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:05:05 [end_date_ymd] => 2025-01-30 12:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:05:05' and `end` < '2025-01-30 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-30 12:05:26] Production.INFO: count ==4831 [2025-01-30 12:05:29] Production.ERROR: pbx CDR StartTime 2025-01-30 09:05:05 - End Time 2025-01-30 12:05:05 [2025-01-30 12:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363544', 'tblTempUsageDetail_20' ) start [2025-01-30 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363544', 'tblTempUsageDetail_20' ) end [2025-01-30 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363544', 'tblTempVendorCDR_20' ) start [2025-01-30 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363544', 'tblTempVendorCDR_20' ) end [2025-01-30 12:05:29] Production.INFO: ProcessCDR(1,14363544,1,1,2) [2025-01-30 12:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363544', 'tblTempUsageDetail_20' ) start [2025-01-30 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363544', 'tblTempUsageDetail_20' ) end [2025-01-30 12:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:05:34] Production.INFO: ==22359== Releasing lock... [2025-01-30 12:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:05:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:06:06 [end_date_ymd] => 2025-01-30 12:06:06 [RateCDR] => 1 ) [2025-01-30 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:06:06' and `end` < '2025-01-30 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:06:24] Production.INFO: count ==4844 [2025-01-30 12:06:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:06:06 - End Time 2025-01-30 12:06:06 [2025-01-30 12:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363549', 'tblTempUsageDetail_20' ) start [2025-01-30 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363549', 'tblTempUsageDetail_20' ) end [2025-01-30 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363549', 'tblTempVendorCDR_20' ) start [2025-01-30 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363549', 'tblTempVendorCDR_20' ) end [2025-01-30 12:06:27] Production.INFO: ProcessCDR(1,14363549,1,1,2) [2025-01-30 12:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363549', 'tblTempUsageDetail_20' ) start [2025-01-30 12:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363549', 'tblTempUsageDetail_20' ) end [2025-01-30 12:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:06:32] Production.INFO: ==22436== Releasing lock... [2025-01-30 12:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:06:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:07:05 [end_date_ymd] => 2025-01-30 12:07:05 [RateCDR] => 1 ) [2025-01-30 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:07:05' and `end` < '2025-01-30 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:07:21] Production.INFO: count ==4847 [2025-01-30 12:07:23] Production.ERROR: pbx CDR StartTime 2025-01-30 09:07:05 - End Time 2025-01-30 12:07:05 [2025-01-30 12:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363554', 'tblTempUsageDetail_20' ) start [2025-01-30 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363554', 'tblTempUsageDetail_20' ) end [2025-01-30 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363554', 'tblTempVendorCDR_20' ) start [2025-01-30 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363554', 'tblTempVendorCDR_20' ) end [2025-01-30 12:07:24] Production.INFO: ProcessCDR(1,14363554,1,1,2) [2025-01-30 12:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363554', 'tblTempUsageDetail_20' ) start [2025-01-30 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363554', 'tblTempUsageDetail_20' ) end [2025-01-30 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:07:29] Production.INFO: ==22516== Releasing lock... [2025-01-30 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:07:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:08:05 [end_date_ymd] => 2025-01-30 12:08:05 [RateCDR] => 1 ) [2025-01-30 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:08:05' and `end` < '2025-01-30 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-30 12:08:28] Production.INFO: count ==4861 [2025-01-30 12:08:30] Production.ERROR: pbx CDR StartTime 2025-01-30 09:08:05 - End Time 2025-01-30 12:08:05 [2025-01-30 12:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363559', 'tblTempUsageDetail_20' ) start [2025-01-30 12:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363559', 'tblTempUsageDetail_20' ) end [2025-01-30 12:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363559', 'tblTempVendorCDR_20' ) start [2025-01-30 12:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363559', 'tblTempVendorCDR_20' ) end [2025-01-30 12:08:30] Production.INFO: ProcessCDR(1,14363559,1,1,2) [2025-01-30 12:08:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:08:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363559', 'tblTempUsageDetail_20' ) start [2025-01-30 12:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363559', 'tblTempUsageDetail_20' ) end [2025-01-30 12:08:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:08:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:08:35] Production.INFO: ==22607== Releasing lock... [2025-01-30 12:08:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:08:35] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:09:05 [end_date_ymd] => 2025-01-30 12:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:09:05' and `end` < '2025-01-30 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-30 12:09:24] Production.INFO: count ==4878 [2025-01-30 12:09:26] Production.ERROR: pbx CDR StartTime 2025-01-30 09:09:05 - End Time 2025-01-30 12:09:05 [2025-01-30 12:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363564', 'tblTempUsageDetail_20' ) start [2025-01-30 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363564', 'tblTempUsageDetail_20' ) end [2025-01-30 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363564', 'tblTempVendorCDR_20' ) start [2025-01-30 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363564', 'tblTempVendorCDR_20' ) end [2025-01-30 12:09:27] Production.INFO: ProcessCDR(1,14363564,1,1,2) [2025-01-30 12:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363564', 'tblTempUsageDetail_20' ) start [2025-01-30 12:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363564', 'tblTempUsageDetail_20' ) end [2025-01-30 12:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:09:32] Production.INFO: ==22690== Releasing lock... [2025-01-30 12:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:09:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-30 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:10:07 [end_date_ymd] => 2025-01-30 12:10:07 [RateCDR] => 1 ) [2025-01-30 12:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:10:07' and `end` < '2025-01-30 12:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:10:33] Production.INFO: count ==4895 [2025-01-30 12:10:35] Production.ERROR: pbx CDR StartTime 2025-01-30 09:10:07 - End Time 2025-01-30 12:10:07 [2025-01-30 12:10:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363570', 'tblTempUsageDetail_20' ) start [2025-01-30 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363570', 'tblTempUsageDetail_20' ) end [2025-01-30 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363570', 'tblTempVendorCDR_20' ) start [2025-01-30 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363570', 'tblTempVendorCDR_20' ) end [2025-01-30 12:10:35] Production.INFO: ProcessCDR(1,14363570,1,1,2) [2025-01-30 12:10:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:10:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:10:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:10:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363570', 'tblTempUsageDetail_20' ) start [2025-01-30 12:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363570', 'tblTempUsageDetail_20' ) end [2025-01-30 12:10:41] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:10:41] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:10:41] Production.INFO: ==22771== Releasing lock... [2025-01-30 12:10:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:10:41] Production.INFO: 64.5 MB #Memory Used# [2025-01-30 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:11:05 [end_date_ymd] => 2025-01-30 12:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:11:05' and `end` < '2025-01-30 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-30 12:11:22] Production.INFO: count ==4925 [2025-01-30 12:11:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:11:05 - End Time 2025-01-30 12:11:05 [2025-01-30 12:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363575', 'tblTempUsageDetail_20' ) start [2025-01-30 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363575', 'tblTempUsageDetail_20' ) end [2025-01-30 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363575', 'tblTempVendorCDR_20' ) start [2025-01-30 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363575', 'tblTempVendorCDR_20' ) end [2025-01-30 12:11:24] Production.INFO: ProcessCDR(1,14363575,1,1,2) [2025-01-30 12:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363575', 'tblTempUsageDetail_20' ) start [2025-01-30 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363575', 'tblTempUsageDetail_20' ) end [2025-01-30 12:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:11:29] Production.INFO: ==22851== Releasing lock... [2025-01-30 12:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:11:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:12:06 [end_date_ymd] => 2025-01-30 12:12:06 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:12:06' and `end` < '2025-01-30 12: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-30 12:12:19] Production.INFO: count ==4923 [2025-01-30 12:12:22] Production.ERROR: pbx CDR StartTime 2025-01-30 09:12:06 - End Time 2025-01-30 12:12:06 [2025-01-30 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363580', 'tblTempUsageDetail_20' ) start [2025-01-30 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363580', 'tblTempUsageDetail_20' ) end [2025-01-30 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363580', 'tblTempVendorCDR_20' ) start [2025-01-30 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363580', 'tblTempVendorCDR_20' ) end [2025-01-30 12:12:22] Production.INFO: ProcessCDR(1,14363580,1,1,2) [2025-01-30 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363580', 'tblTempUsageDetail_20' ) start [2025-01-30 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363580', 'tblTempUsageDetail_20' ) end [2025-01-30 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:12:27] Production.INFO: ==22933== Releasing lock... [2025-01-30 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:12:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:13:05 [end_date_ymd] => 2025-01-30 12:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:13:05' and `end` < '2025-01-30 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-30 12:13:24] Production.INFO: count ==4914 [2025-01-30 12:13:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:13:05 - End Time 2025-01-30 12:13:05 [2025-01-30 12:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363585', 'tblTempUsageDetail_20' ) start [2025-01-30 12:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363585', 'tblTempUsageDetail_20' ) end [2025-01-30 12:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363585', 'tblTempVendorCDR_20' ) start [2025-01-30 12:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363585', 'tblTempVendorCDR_20' ) end [2025-01-30 12:13:27] Production.INFO: ProcessCDR(1,14363585,1,1,2) [2025-01-30 12:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363585', 'tblTempUsageDetail_20' ) start [2025-01-30 12:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363585', 'tblTempUsageDetail_20' ) end [2025-01-30 12:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:13:32] Production.INFO: ==23010== Releasing lock... [2025-01-30 12:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:13:32] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:14:06 [end_date_ymd] => 2025-01-30 12:14:06 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:14:06' and `end` < '2025-01-30 12: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-30 12:14:22] Production.INFO: count ==4903 [2025-01-30 12:14:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:14:06 - End Time 2025-01-30 12:14:06 [2025-01-30 12:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363590', 'tblTempUsageDetail_20' ) start [2025-01-30 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363590', 'tblTempUsageDetail_20' ) end [2025-01-30 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363590', 'tblTempVendorCDR_20' ) start [2025-01-30 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363590', 'tblTempVendorCDR_20' ) end [2025-01-30 12:14:25] Production.INFO: ProcessCDR(1,14363590,1,1,2) [2025-01-30 12:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363590', 'tblTempUsageDetail_20' ) start [2025-01-30 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363590', 'tblTempUsageDetail_20' ) end [2025-01-30 12:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:14:30] Production.INFO: ==23093== Releasing lock... [2025-01-30 12:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:14:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:15:05 [end_date_ymd] => 2025-01-30 12:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:15:05' and `end` < '2025-01-30 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-30 12:15:19] Production.INFO: count ==4865 [2025-01-30 12:15:21] Production.ERROR: pbx CDR StartTime 2025-01-30 09:15:05 - End Time 2025-01-30 12:15:05 [2025-01-30 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363595', 'tblTempUsageDetail_20' ) start [2025-01-30 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363595', 'tblTempUsageDetail_20' ) end [2025-01-30 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363595', 'tblTempVendorCDR_20' ) start [2025-01-30 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363595', 'tblTempVendorCDR_20' ) end [2025-01-30 12:15:22] Production.INFO: ProcessCDR(1,14363595,1,1,2) [2025-01-30 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363595', 'tblTempUsageDetail_20' ) start [2025-01-30 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363595', 'tblTempUsageDetail_20' ) end [2025-01-30 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:15:27] Production.INFO: ==23170== Releasing lock... [2025-01-30 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:15:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-30 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:16:06 [end_date_ymd] => 2025-01-30 12:16:06 [RateCDR] => 1 ) [2025-01-30 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:16:06' and `end` < '2025-01-30 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:16:25] Production.INFO: count ==4843 [2025-01-30 12:16:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:16:06 - End Time 2025-01-30 12:16:06 [2025-01-30 12:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363600', 'tblTempUsageDetail_20' ) start [2025-01-30 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363600', 'tblTempUsageDetail_20' ) end [2025-01-30 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363600', 'tblTempVendorCDR_20' ) start [2025-01-30 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363600', 'tblTempVendorCDR_20' ) end [2025-01-30 12:16:27] Production.INFO: ProcessCDR(1,14363600,1,1,2) [2025-01-30 12:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363600', 'tblTempUsageDetail_20' ) start [2025-01-30 12:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363600', 'tblTempUsageDetail_20' ) end [2025-01-30 12:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:16:33] Production.INFO: ==23254== Releasing lock... [2025-01-30 12:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:16:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:17:05 [end_date_ymd] => 2025-01-30 12:17:05 [RateCDR] => 1 ) [2025-01-30 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:17:05' and `end` < '2025-01-30 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:17:19] Production.INFO: count ==4849 [2025-01-30 12:17:21] Production.ERROR: pbx CDR StartTime 2025-01-30 09:17:05 - End Time 2025-01-30 12:17:05 [2025-01-30 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363605', 'tblTempUsageDetail_20' ) start [2025-01-30 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363605', 'tblTempUsageDetail_20' ) end [2025-01-30 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363605', 'tblTempVendorCDR_20' ) start [2025-01-30 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363605', 'tblTempVendorCDR_20' ) end [2025-01-30 12:17:22] Production.INFO: ProcessCDR(1,14363605,1,1,2) [2025-01-30 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363605', 'tblTempUsageDetail_20' ) start [2025-01-30 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363605', 'tblTempUsageDetail_20' ) end [2025-01-30 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:17:27] Production.INFO: ==23336== Releasing lock... [2025-01-30 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:17:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:18:06 [end_date_ymd] => 2025-01-30 12:18:06 [RateCDR] => 1 ) [2025-01-30 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:18:06' and `end` < '2025-01-30 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:18:21] Production.INFO: count ==4836 [2025-01-30 12:18:23] Production.ERROR: pbx CDR StartTime 2025-01-30 09:18:06 - End Time 2025-01-30 12:18:06 [2025-01-30 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363610', 'tblTempUsageDetail_20' ) start [2025-01-30 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363610', 'tblTempUsageDetail_20' ) end [2025-01-30 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363610', 'tblTempVendorCDR_20' ) start [2025-01-30 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363610', 'tblTempVendorCDR_20' ) end [2025-01-30 12:18:23] Production.INFO: ProcessCDR(1,14363610,1,1,2) [2025-01-30 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363610', 'tblTempUsageDetail_20' ) start [2025-01-30 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363610', 'tblTempUsageDetail_20' ) end [2025-01-30 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:18:28] Production.INFO: ==23465== Releasing lock... [2025-01-30 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:18:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:19:05 [end_date_ymd] => 2025-01-30 12:19:05 [RateCDR] => 1 ) [2025-01-30 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:19:05' and `end` < '2025-01-30 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:19:22] Production.INFO: count ==4818 [2025-01-30 12:19:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:19:05 - End Time 2025-01-30 12:19:05 [2025-01-30 12:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363615', 'tblTempUsageDetail_20' ) start [2025-01-30 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363615', 'tblTempUsageDetail_20' ) end [2025-01-30 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363615', 'tblTempVendorCDR_20' ) start [2025-01-30 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363615', 'tblTempVendorCDR_20' ) end [2025-01-30 12:19:25] Production.INFO: ProcessCDR(1,14363615,1,1,2) [2025-01-30 12:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363615', 'tblTempUsageDetail_20' ) start [2025-01-30 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363615', 'tblTempUsageDetail_20' ) end [2025-01-30 12:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:19:30] Production.INFO: ==23541== Releasing lock... [2025-01-30 12:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:19:30] Production.INFO: 64 MB #Memory Used# [2025-01-30 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:20:06 [end_date_ymd] => 2025-01-30 12:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 09:20:06' and `end` < '2025-01-30 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-30 12:20:22] Production.INFO: count ==4794 [2025-01-30 12:20:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:20:06 - End Time 2025-01-30 12:20:06 [2025-01-30 12:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363621', 'tblTempUsageDetail_20' ) start [2025-01-30 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363621', 'tblTempUsageDetail_20' ) end [2025-01-30 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363621', 'tblTempVendorCDR_20' ) start [2025-01-30 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363621', 'tblTempVendorCDR_20' ) end [2025-01-30 12:20:24] Production.INFO: ProcessCDR(1,14363621,1,1,2) [2025-01-30 12:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363621', 'tblTempUsageDetail_20' ) start [2025-01-30 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363621', 'tblTempUsageDetail_20' ) end [2025-01-30 12:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:20:30] Production.INFO: ==23623== Releasing lock... [2025-01-30 12:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:20:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:21:05 [end_date_ymd] => 2025-01-30 12:21:05 [RateCDR] => 1 ) [2025-01-30 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:21:05' and `end` < '2025-01-30 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:21:19] Production.INFO: count ==4784 [2025-01-30 12:21:21] Production.ERROR: pbx CDR StartTime 2025-01-30 09:21:05 - End Time 2025-01-30 12:21:05 [2025-01-30 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363626', 'tblTempUsageDetail_20' ) start [2025-01-30 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363626', 'tblTempUsageDetail_20' ) end [2025-01-30 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363626', 'tblTempVendorCDR_20' ) start [2025-01-30 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363626', 'tblTempVendorCDR_20' ) end [2025-01-30 12:21:21] Production.INFO: ProcessCDR(1,14363626,1,1,2) [2025-01-30 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363626', 'tblTempUsageDetail_20' ) start [2025-01-30 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363626', 'tblTempUsageDetail_20' ) end [2025-01-30 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:21:27] Production.INFO: ==23706== Releasing lock... [2025-01-30 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:21:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:22:06 [end_date_ymd] => 2025-01-30 12:22:06 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:22:06' and `end` < '2025-01-30 12: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-30 12:22:19] Production.INFO: count ==4760 [2025-01-30 12:22:22] Production.ERROR: pbx CDR StartTime 2025-01-30 09:22:06 - End Time 2025-01-30 12:22:06 [2025-01-30 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363631', 'tblTempUsageDetail_20' ) start [2025-01-30 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363631', 'tblTempUsageDetail_20' ) end [2025-01-30 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363631', 'tblTempVendorCDR_20' ) start [2025-01-30 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363631', 'tblTempVendorCDR_20' ) end [2025-01-30 12:22:22] Production.INFO: ProcessCDR(1,14363631,1,1,2) [2025-01-30 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363631', 'tblTempUsageDetail_20' ) start [2025-01-30 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363631', 'tblTempUsageDetail_20' ) end [2025-01-30 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:22:27] Production.INFO: ==23800== Releasing lock... [2025-01-30 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:22:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:23:06 [end_date_ymd] => 2025-01-30 12:23:06 [RateCDR] => 1 ) [2025-01-30 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:23:06' and `end` < '2025-01-30 12: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-30 12:23:20] Production.INFO: count ==4759 [2025-01-30 12:23:22] Production.ERROR: pbx CDR StartTime 2025-01-30 09:23:06 - End Time 2025-01-30 12:23:06 [2025-01-30 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363636', 'tblTempUsageDetail_20' ) start [2025-01-30 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363636', 'tblTempUsageDetail_20' ) end [2025-01-30 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363636', 'tblTempVendorCDR_20' ) start [2025-01-30 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363636', 'tblTempVendorCDR_20' ) end [2025-01-30 12:23:22] Production.INFO: ProcessCDR(1,14363636,1,1,2) [2025-01-30 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363636', 'tblTempUsageDetail_20' ) start [2025-01-30 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363636', 'tblTempUsageDetail_20' ) end [2025-01-30 12:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:23:28] Production.INFO: ==23900== Releasing lock... [2025-01-30 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:23:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:24:06 [end_date_ymd] => 2025-01-30 12:24:06 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:24:06' and `end` < '2025-01-30 12: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-30 12:24:20] Production.INFO: count ==4762 [2025-01-30 12:24:22] Production.ERROR: pbx CDR StartTime 2025-01-30 09:24:06 - End Time 2025-01-30 12:24:06 [2025-01-30 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363641', 'tblTempUsageDetail_20' ) start [2025-01-30 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363641', 'tblTempUsageDetail_20' ) end [2025-01-30 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363641', 'tblTempVendorCDR_20' ) start [2025-01-30 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363641', 'tblTempVendorCDR_20' ) end [2025-01-30 12:24:22] Production.INFO: ProcessCDR(1,14363641,1,1,2) [2025-01-30 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363641', 'tblTempUsageDetail_20' ) start [2025-01-30 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363641', 'tblTempUsageDetail_20' ) end [2025-01-30 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:24:27] Production.INFO: ==24000== Releasing lock... [2025-01-30 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:24:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:25:06 [end_date_ymd] => 2025-01-30 12:25:06 [RateCDR] => 1 ) [2025-01-30 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:25:06' and `end` < '2025-01-30 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:25:29] Production.INFO: count ==4766 [2025-01-30 12:25:31] Production.ERROR: pbx CDR StartTime 2025-01-30 09:25:06 - End Time 2025-01-30 12:25:06 [2025-01-30 12:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363646', 'tblTempUsageDetail_20' ) start [2025-01-30 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363646', 'tblTempUsageDetail_20' ) end [2025-01-30 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363646', 'tblTempVendorCDR_20' ) start [2025-01-30 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363646', 'tblTempVendorCDR_20' ) end [2025-01-30 12:25:31] Production.INFO: ProcessCDR(1,14363646,1,1,2) [2025-01-30 12:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363646', 'tblTempUsageDetail_20' ) start [2025-01-30 12:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363646', 'tblTempUsageDetail_20' ) end [2025-01-30 12:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:25:37] Production.INFO: ==24075== Releasing lock... [2025-01-30 12:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:25:37] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:26:06 [end_date_ymd] => 2025-01-30 12:26:06 [RateCDR] => 1 ) [2025-01-30 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:26:06' and `end` < '2025-01-30 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:26:22] Production.INFO: count ==4766 [2025-01-30 12:26:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:26:06 - End Time 2025-01-30 12:26:06 [2025-01-30 12:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363651', 'tblTempUsageDetail_20' ) start [2025-01-30 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363651', 'tblTempUsageDetail_20' ) end [2025-01-30 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363651', 'tblTempVendorCDR_20' ) start [2025-01-30 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363651', 'tblTempVendorCDR_20' ) end [2025-01-30 12:26:25] Production.INFO: ProcessCDR(1,14363651,1,1,2) [2025-01-30 12:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363651', 'tblTempUsageDetail_20' ) start [2025-01-30 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363651', 'tblTempUsageDetail_20' ) end [2025-01-30 12:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:26:30] Production.INFO: ==24155== Releasing lock... [2025-01-30 12:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:26:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:27:05 [end_date_ymd] => 2025-01-30 12:27:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:27:05' and `end` < '2025-01-30 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-30 12:27:25] Production.INFO: count ==4760 [2025-01-30 12:27:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:27:05 - End Time 2025-01-30 12:27:05 [2025-01-30 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363656', 'tblTempUsageDetail_20' ) start [2025-01-30 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363656', 'tblTempUsageDetail_20' ) end [2025-01-30 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363656', 'tblTempVendorCDR_20' ) start [2025-01-30 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363656', 'tblTempVendorCDR_20' ) end [2025-01-30 12:27:27] Production.INFO: ProcessCDR(1,14363656,1,1,2) [2025-01-30 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363656', 'tblTempUsageDetail_20' ) start [2025-01-30 12:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363656', 'tblTempUsageDetail_20' ) end [2025-01-30 12:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:27:33] Production.INFO: ==24236== Releasing lock... [2025-01-30 12:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:27:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:28:06 [end_date_ymd] => 2025-01-30 12:28:06 [RateCDR] => 1 ) [2025-01-30 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:28:06' and `end` < '2025-01-30 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:28:22] Production.INFO: count ==4748 [2025-01-30 12:28:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:28:06 - End Time 2025-01-30 12:28:06 [2025-01-30 12:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363661', 'tblTempUsageDetail_20' ) start [2025-01-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363661', 'tblTempUsageDetail_20' ) end [2025-01-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363661', 'tblTempVendorCDR_20' ) start [2025-01-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363661', 'tblTempVendorCDR_20' ) end [2025-01-30 12:28:24] Production.INFO: ProcessCDR(1,14363661,1,1,2) [2025-01-30 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363661', 'tblTempUsageDetail_20' ) start [2025-01-30 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363661', 'tblTempUsageDetail_20' ) end [2025-01-30 12:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:28:30] Production.INFO: ==24313== Releasing lock... [2025-01-30 12:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:28:30] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:29:06 [end_date_ymd] => 2025-01-30 12:29:06 [RateCDR] => 1 ) [2025-01-30 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:29:06' and `end` < '2025-01-30 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:29:19] Production.INFO: count ==4741 [2025-01-30 12:29:22] Production.ERROR: pbx CDR StartTime 2025-01-30 09:29:06 - End Time 2025-01-30 12:29:06 [2025-01-30 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363666', 'tblTempUsageDetail_20' ) start [2025-01-30 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363666', 'tblTempUsageDetail_20' ) end [2025-01-30 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363666', 'tblTempVendorCDR_20' ) start [2025-01-30 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363666', 'tblTempVendorCDR_20' ) end [2025-01-30 12:29:22] Production.INFO: ProcessCDR(1,14363666,1,1,2) [2025-01-30 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363666', 'tblTempUsageDetail_20' ) start [2025-01-30 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363666', 'tblTempUsageDetail_20' ) end [2025-01-30 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:29:27] Production.INFO: ==24391== Releasing lock... [2025-01-30 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:29:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:30:05 [end_date_ymd] => 2025-01-30 12:30:05 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:30:05' and `end` < '2025-01-30 12: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-30 12:30:19] Production.INFO: count ==4733 [2025-01-30 12:30:21] Production.ERROR: pbx CDR StartTime 2025-01-30 09:30:05 - End Time 2025-01-30 12:30:05 [2025-01-30 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363671', 'tblTempUsageDetail_20' ) start [2025-01-30 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363671', 'tblTempUsageDetail_20' ) end [2025-01-30 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363671', 'tblTempVendorCDR_20' ) start [2025-01-30 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363671', 'tblTempVendorCDR_20' ) end [2025-01-30 12:30:22] Production.INFO: ProcessCDR(1,14363671,1,1,2) [2025-01-30 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363671', 'tblTempUsageDetail_20' ) start [2025-01-30 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363671', 'tblTempUsageDetail_20' ) end [2025-01-30 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:30:27] Production.INFO: ==24469== Releasing lock... [2025-01-30 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:30:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:31:06 [end_date_ymd] => 2025-01-30 12:31:06 [RateCDR] => 1 ) [2025-01-30 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:31:06' and `end` < '2025-01-30 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:31:22] Production.INFO: count ==4706 [2025-01-30 12:31:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:31:06 - End Time 2025-01-30 12:31:06 [2025-01-30 12:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363677', 'tblTempUsageDetail_20' ) start [2025-01-30 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363677', 'tblTempUsageDetail_20' ) end [2025-01-30 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363677', 'tblTempVendorCDR_20' ) start [2025-01-30 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363677', 'tblTempVendorCDR_20' ) end [2025-01-30 12:31:24] Production.INFO: ProcessCDR(1,14363677,1,1,2) [2025-01-30 12:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363677', 'tblTempUsageDetail_20' ) start [2025-01-30 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363677', 'tblTempUsageDetail_20' ) end [2025-01-30 12:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:31:29] Production.INFO: ==24548== Releasing lock... [2025-01-30 12:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:31:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:32:06 [end_date_ymd] => 2025-01-30 12:32:06 [RateCDR] => 1 ) [2025-01-30 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:32:06' and `end` < '2025-01-30 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:32:25] Production.INFO: count ==4682 [2025-01-30 12:32:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:32:06 - End Time 2025-01-30 12:32:06 [2025-01-30 12:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363682', 'tblTempUsageDetail_20' ) start [2025-01-30 12:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363682', 'tblTempUsageDetail_20' ) end [2025-01-30 12:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363682', 'tblTempVendorCDR_20' ) start [2025-01-30 12:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363682', 'tblTempVendorCDR_20' ) end [2025-01-30 12:32:27] Production.INFO: ProcessCDR(1,14363682,1,1,2) [2025-01-30 12:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363682', 'tblTempUsageDetail_20' ) start [2025-01-30 12:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363682', 'tblTempUsageDetail_20' ) end [2025-01-30 12:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:32:32] Production.INFO: ==24622== Releasing lock... [2025-01-30 12:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:32:32] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:33:06 [end_date_ymd] => 2025-01-30 12:33:06 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:33:06' and `end` < '2025-01-30 12: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-30 12:33:28] Production.INFO: count ==4671 [2025-01-30 12:33:30] Production.ERROR: pbx CDR StartTime 2025-01-30 09:33:06 - End Time 2025-01-30 12:33:06 [2025-01-30 12:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363687', 'tblTempUsageDetail_20' ) start [2025-01-30 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363687', 'tblTempUsageDetail_20' ) end [2025-01-30 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363687', 'tblTempVendorCDR_20' ) start [2025-01-30 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363687', 'tblTempVendorCDR_20' ) end [2025-01-30 12:33:30] Production.INFO: ProcessCDR(1,14363687,1,1,2) [2025-01-30 12:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363687', 'tblTempUsageDetail_20' ) start [2025-01-30 12:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363687', 'tblTempUsageDetail_20' ) end [2025-01-30 12:33:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:33:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:33:35] Production.INFO: ==24740== Releasing lock... [2025-01-30 12:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:33:35] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:34:05 [end_date_ymd] => 2025-01-30 12:34:05 [RateCDR] => 1 ) [2025-01-30 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:34:05' and `end` < '2025-01-30 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:34:22] Production.INFO: count ==4652 [2025-01-30 12:34:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:34:05 - End Time 2025-01-30 12:34:05 [2025-01-30 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363692', 'tblTempUsageDetail_20' ) start [2025-01-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363692', 'tblTempUsageDetail_20' ) end [2025-01-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363692', 'tblTempVendorCDR_20' ) start [2025-01-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363692', 'tblTempVendorCDR_20' ) end [2025-01-30 12:34:24] Production.INFO: ProcessCDR(1,14363692,1,1,2) [2025-01-30 12:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363692', 'tblTempUsageDetail_20' ) start [2025-01-30 12:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363692', 'tblTempUsageDetail_20' ) end [2025-01-30 12:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:34:30] Production.INFO: ==24820== Releasing lock... [2025-01-30 12:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:34:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:35:06 [end_date_ymd] => 2025-01-30 12:35:06 [RateCDR] => 1 ) [2025-01-30 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:35:06' and `end` < '2025-01-30 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:35:20] Production.INFO: count ==4659 [2025-01-30 12:35:22] Production.ERROR: pbx CDR StartTime 2025-01-30 09:35:06 - End Time 2025-01-30 12:35:06 [2025-01-30 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363697', 'tblTempUsageDetail_20' ) start [2025-01-30 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363697', 'tblTempUsageDetail_20' ) end [2025-01-30 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363697', 'tblTempVendorCDR_20' ) start [2025-01-30 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363697', 'tblTempVendorCDR_20' ) end [2025-01-30 12:35:23] Production.INFO: ProcessCDR(1,14363697,1,1,2) [2025-01-30 12:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363697', 'tblTempUsageDetail_20' ) start [2025-01-30 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363697', 'tblTempUsageDetail_20' ) end [2025-01-30 12:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:35:28] Production.INFO: ==24900== Releasing lock... [2025-01-30 12:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:35:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:36:05 [end_date_ymd] => 2025-01-30 12:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:36:05' and `end` < '2025-01-30 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-30 12:36:23] Production.INFO: count ==4665 [2025-01-30 12:36:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:36:05 - End Time 2025-01-30 12:36:05 [2025-01-30 12:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363702', 'tblTempUsageDetail_20' ) start [2025-01-30 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363702', 'tblTempUsageDetail_20' ) end [2025-01-30 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363702', 'tblTempVendorCDR_20' ) start [2025-01-30 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363702', 'tblTempVendorCDR_20' ) end [2025-01-30 12:36:25] Production.INFO: ProcessCDR(1,14363702,1,1,2) [2025-01-30 12:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363702', 'tblTempUsageDetail_20' ) start [2025-01-30 12:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363702', 'tblTempUsageDetail_20' ) end [2025-01-30 12:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:36:31] Production.INFO: ==24974== Releasing lock... [2025-01-30 12:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:36:31] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:37:05 [end_date_ymd] => 2025-01-30 12:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:37:05' and `end` < '2025-01-30 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-30 12:37:22] Production.INFO: count ==4645 [2025-01-30 12:37:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:37:05 - End Time 2025-01-30 12:37:05 [2025-01-30 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363707', 'tblTempUsageDetail_20' ) start [2025-01-30 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363707', 'tblTempUsageDetail_20' ) end [2025-01-30 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363707', 'tblTempVendorCDR_20' ) start [2025-01-30 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363707', 'tblTempVendorCDR_20' ) end [2025-01-30 12:37:24] Production.INFO: ProcessCDR(1,14363707,1,1,2) [2025-01-30 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363707', 'tblTempUsageDetail_20' ) start [2025-01-30 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363707', 'tblTempUsageDetail_20' ) end [2025-01-30 12:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:37:30] Production.INFO: ==25050== Releasing lock... [2025-01-30 12:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:37:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:38:05 [end_date_ymd] => 2025-01-30 12:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:38:05' and `end` < '2025-01-30 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-30 12:38:23] Production.INFO: count ==4673 [2025-01-30 12:38:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:38:05 - End Time 2025-01-30 12:38:05 [2025-01-30 12:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363712', 'tblTempUsageDetail_20' ) start [2025-01-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363712', 'tblTempUsageDetail_20' ) end [2025-01-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363712', 'tblTempVendorCDR_20' ) start [2025-01-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363712', 'tblTempVendorCDR_20' ) end [2025-01-30 12:38:25] Production.INFO: ProcessCDR(1,14363712,1,1,2) [2025-01-30 12:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363712', 'tblTempUsageDetail_20' ) start [2025-01-30 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363712', 'tblTempUsageDetail_20' ) end [2025-01-30 12:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:38:30] Production.INFO: ==25128== Releasing lock... [2025-01-30 12:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:38:30] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:39:05 [end_date_ymd] => 2025-01-30 12:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:39:05' and `end` < '2025-01-30 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-30 12:39:23] Production.INFO: count ==4674 [2025-01-30 12:39:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:39:05 - End Time 2025-01-30 12:39:05 [2025-01-30 12:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363717', 'tblTempUsageDetail_20' ) start [2025-01-30 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363717', 'tblTempUsageDetail_20' ) end [2025-01-30 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363717', 'tblTempVendorCDR_20' ) start [2025-01-30 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363717', 'tblTempVendorCDR_20' ) end [2025-01-30 12:39:26] Production.INFO: ProcessCDR(1,14363717,1,1,2) [2025-01-30 12:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363717', 'tblTempUsageDetail_20' ) start [2025-01-30 12:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363717', 'tblTempUsageDetail_20' ) end [2025-01-30 12:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:39:31] Production.INFO: ==25205== Releasing lock... [2025-01-30 12:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:39:31] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:40:06 [end_date_ymd] => 2025-01-30 12:40:06 [RateCDR] => 1 ) [2025-01-30 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:40:06' and `end` < '2025-01-30 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:40:26] Production.INFO: count ==4700 [2025-01-30 12:40:28] Production.ERROR: pbx CDR StartTime 2025-01-30 09:40:06 - End Time 2025-01-30 12:40:06 [2025-01-30 12:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363723', 'tblTempUsageDetail_20' ) start [2025-01-30 12:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363723', 'tblTempUsageDetail_20' ) end [2025-01-30 12:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363723', 'tblTempVendorCDR_20' ) start [2025-01-30 12:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363723', 'tblTempVendorCDR_20' ) end [2025-01-30 12:40:28] Production.INFO: ProcessCDR(1,14363723,1,1,2) [2025-01-30 12:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363723', 'tblTempUsageDetail_20' ) start [2025-01-30 12:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363723', 'tblTempUsageDetail_20' ) end [2025-01-30 12:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:40:34] Production.INFO: ==25284== Releasing lock... [2025-01-30 12:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:40:34] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:41:05 [end_date_ymd] => 2025-01-30 12:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:41:05' and `end` < '2025-01-30 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-30 12:41:24] Production.INFO: count ==4764 [2025-01-30 12:41:26] Production.ERROR: pbx CDR StartTime 2025-01-30 09:41:05 - End Time 2025-01-30 12:41:05 [2025-01-30 12:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363728', 'tblTempUsageDetail_20' ) start [2025-01-30 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363728', 'tblTempUsageDetail_20' ) end [2025-01-30 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363728', 'tblTempVendorCDR_20' ) start [2025-01-30 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363728', 'tblTempVendorCDR_20' ) end [2025-01-30 12:41:26] Production.INFO: ProcessCDR(1,14363728,1,1,2) [2025-01-30 12:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363728', 'tblTempUsageDetail_20' ) start [2025-01-30 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363728', 'tblTempUsageDetail_20' ) end [2025-01-30 12:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:41:30] Production.INFO: ==25385== Releasing lock... [2025-01-30 12:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:41:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:42:06 [end_date_ymd] => 2025-01-30 12:42:06 [RateCDR] => 1 ) [2025-01-30 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:42:06' and `end` < '2025-01-30 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:42:22] Production.INFO: count ==4752 [2025-01-30 12:42:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:42:06 - End Time 2025-01-30 12:42:06 [2025-01-30 12:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363733', 'tblTempUsageDetail_20' ) start [2025-01-30 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363733', 'tblTempUsageDetail_20' ) end [2025-01-30 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363733', 'tblTempVendorCDR_20' ) start [2025-01-30 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363733', 'tblTempVendorCDR_20' ) end [2025-01-30 12:42:24] Production.INFO: ProcessCDR(1,14363733,1,1,2) [2025-01-30 12:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363733', 'tblTempUsageDetail_20' ) start [2025-01-30 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363733', 'tblTempUsageDetail_20' ) end [2025-01-30 12:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:42:29] Production.INFO: ==25465== Releasing lock... [2025-01-30 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:42:29] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:43:06 [end_date_ymd] => 2025-01-30 12:43:06 [RateCDR] => 1 ) [2025-01-30 12:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:43:06' and `end` < '2025-01-30 12:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:43:20] Production.INFO: count ==4754 [2025-01-30 12:43:23] Production.ERROR: pbx CDR StartTime 2025-01-30 09:43:06 - End Time 2025-01-30 12:43:06 [2025-01-30 12:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363738', 'tblTempUsageDetail_20' ) start [2025-01-30 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363738', 'tblTempUsageDetail_20' ) end [2025-01-30 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363738', 'tblTempVendorCDR_20' ) start [2025-01-30 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363738', 'tblTempVendorCDR_20' ) end [2025-01-30 12:43:23] Production.INFO: ProcessCDR(1,14363738,1,1,2) [2025-01-30 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363738', 'tblTempUsageDetail_20' ) start [2025-01-30 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363738', 'tblTempUsageDetail_20' ) end [2025-01-30 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:43:27] Production.INFO: ==25539== Releasing lock... [2025-01-30 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:43:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:44:05 [end_date_ymd] => 2025-01-30 12:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:44:05' and `end` < '2025-01-30 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-30 12:44:28] Production.INFO: count ==4757 [2025-01-30 12:44:30] Production.ERROR: pbx CDR StartTime 2025-01-30 09:44:05 - End Time 2025-01-30 12:44:05 [2025-01-30 12:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363743', 'tblTempUsageDetail_20' ) start [2025-01-30 12:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363743', 'tblTempUsageDetail_20' ) end [2025-01-30 12:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363743', 'tblTempVendorCDR_20' ) start [2025-01-30 12:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363743', 'tblTempVendorCDR_20' ) end [2025-01-30 12:44:31] Production.INFO: ProcessCDR(1,14363743,1,1,2) [2025-01-30 12:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:44:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:44:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363743', 'tblTempUsageDetail_20' ) start [2025-01-30 12:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363743', 'tblTempUsageDetail_20' ) end [2025-01-30 12:44:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:44:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:44:36] Production.INFO: ==25613== Releasing lock... [2025-01-30 12:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:44:36] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:45:06 [end_date_ymd] => 2025-01-30 12:45:06 [RateCDR] => 1 ) [2025-01-30 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:45:06' and `end` < '2025-01-30 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:45:24] Production.INFO: count ==4765 [2025-01-30 12:45:26] Production.ERROR: pbx CDR StartTime 2025-01-30 09:45:06 - End Time 2025-01-30 12:45:06 [2025-01-30 12:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363748', 'tblTempUsageDetail_20' ) start [2025-01-30 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363748', 'tblTempUsageDetail_20' ) end [2025-01-30 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363748', 'tblTempVendorCDR_20' ) start [2025-01-30 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363748', 'tblTempVendorCDR_20' ) end [2025-01-30 12:45:26] Production.INFO: ProcessCDR(1,14363748,1,1,2) [2025-01-30 12:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363748', 'tblTempUsageDetail_20' ) start [2025-01-30 12:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363748', 'tblTempUsageDetail_20' ) end [2025-01-30 12:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:45:32] Production.INFO: ==25687== Releasing lock... [2025-01-30 12:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:45:32] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:46:06 [end_date_ymd] => 2025-01-30 12:46:06 [RateCDR] => 1 ) [2025-01-30 12: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-30 09:46:06' and `end` < '2025-01-30 12: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-30 12:46:23] Production.INFO: count ==4757 [2025-01-30 12:46:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:46:06 - End Time 2025-01-30 12:46:06 [2025-01-30 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363753', 'tblTempUsageDetail_20' ) start [2025-01-30 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363753', 'tblTempUsageDetail_20' ) end [2025-01-30 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363753', 'tblTempVendorCDR_20' ) start [2025-01-30 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363753', 'tblTempVendorCDR_20' ) end [2025-01-30 12:46:26] Production.INFO: ProcessCDR(1,14363753,1,1,2) [2025-01-30 12:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363753', 'tblTempUsageDetail_20' ) start [2025-01-30 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363753', 'tblTempUsageDetail_20' ) end [2025-01-30 12:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:46:31] Production.INFO: ==25763== Releasing lock... [2025-01-30 12:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:46:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:47:06 [end_date_ymd] => 2025-01-30 12:47:06 [RateCDR] => 1 ) [2025-01-30 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:47:06' and `end` < '2025-01-30 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:47:27] Production.INFO: count ==4807 [2025-01-30 12:47:29] Production.ERROR: pbx CDR StartTime 2025-01-30 09:47:06 - End Time 2025-01-30 12:47:06 [2025-01-30 12:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363758', 'tblTempUsageDetail_20' ) start [2025-01-30 12:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363758', 'tblTempUsageDetail_20' ) end [2025-01-30 12:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363758', 'tblTempVendorCDR_20' ) start [2025-01-30 12:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363758', 'tblTempVendorCDR_20' ) end [2025-01-30 12:47:30] Production.INFO: ProcessCDR(1,14363758,1,1,2) [2025-01-30 12:47:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:47:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363758', 'tblTempUsageDetail_20' ) start [2025-01-30 12:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363758', 'tblTempUsageDetail_20' ) end [2025-01-30 12:47:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:47:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:47:35] Production.INFO: ==25844== Releasing lock... [2025-01-30 12:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:47:35] Production.INFO: 64 MB #Memory Used# [2025-01-30 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:48:06 [end_date_ymd] => 2025-01-30 12:48:06 [RateCDR] => 1 ) [2025-01-30 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:48:06' and `end` < '2025-01-30 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:48:24] Production.INFO: count ==4792 [2025-01-30 12:48:26] Production.ERROR: pbx CDR StartTime 2025-01-30 09:48:06 - End Time 2025-01-30 12:48:06 [2025-01-30 12:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363763', 'tblTempUsageDetail_20' ) start [2025-01-30 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363763', 'tblTempUsageDetail_20' ) end [2025-01-30 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363763', 'tblTempVendorCDR_20' ) start [2025-01-30 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363763', 'tblTempVendorCDR_20' ) end [2025-01-30 12:48:26] Production.INFO: ProcessCDR(1,14363763,1,1,2) [2025-01-30 12:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363763', 'tblTempUsageDetail_20' ) start [2025-01-30 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363763', 'tblTempUsageDetail_20' ) end [2025-01-30 12:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:48:32] Production.INFO: ==25916== Releasing lock... [2025-01-30 12:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:48:32] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:49:06 [end_date_ymd] => 2025-01-30 12:49:06 [RateCDR] => 1 ) [2025-01-30 12:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:49:06' and `end` < '2025-01-30 12:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:49:22] Production.INFO: count ==4779 [2025-01-30 12:49:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:49:06 - End Time 2025-01-30 12:49:06 [2025-01-30 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363768', 'tblTempUsageDetail_20' ) start [2025-01-30 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363768', 'tblTempUsageDetail_20' ) end [2025-01-30 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363768', 'tblTempVendorCDR_20' ) start [2025-01-30 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363768', 'tblTempVendorCDR_20' ) end [2025-01-30 12:49:24] Production.INFO: ProcessCDR(1,14363768,1,1,2) [2025-01-30 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363768', 'tblTempUsageDetail_20' ) start [2025-01-30 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363768', 'tblTempUsageDetail_20' ) end [2025-01-30 12:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:49:30] Production.INFO: ==26027== Releasing lock... [2025-01-30 12:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:49:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:50:06 [end_date_ymd] => 2025-01-30 12:50:06 [RateCDR] => 1 ) [2025-01-30 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:50:06' and `end` < '2025-01-30 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:50:21] Production.INFO: count ==4751 [2025-01-30 12:50:23] Production.ERROR: pbx CDR StartTime 2025-01-30 09:50:06 - End Time 2025-01-30 12:50:06 [2025-01-30 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363773', 'tblTempUsageDetail_20' ) start [2025-01-30 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363773', 'tblTempUsageDetail_20' ) end [2025-01-30 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363773', 'tblTempVendorCDR_20' ) start [2025-01-30 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363773', 'tblTempVendorCDR_20' ) end [2025-01-30 12:50:23] Production.INFO: ProcessCDR(1,14363773,1,1,2) [2025-01-30 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363773', 'tblTempUsageDetail_20' ) start [2025-01-30 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363773', 'tblTempUsageDetail_20' ) end [2025-01-30 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:50:27] Production.INFO: ==26104== Releasing lock... [2025-01-30 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:50:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:51:05 [end_date_ymd] => 2025-01-30 12:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:51:05' and `end` < '2025-01-30 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-30 12:51:25] Production.INFO: count ==4754 [2025-01-30 12:51:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:51:05 - End Time 2025-01-30 12:51:05 [2025-01-30 12:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363779', 'tblTempUsageDetail_20' ) start [2025-01-30 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363779', 'tblTempUsageDetail_20' ) end [2025-01-30 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363779', 'tblTempVendorCDR_20' ) start [2025-01-30 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363779', 'tblTempVendorCDR_20' ) end [2025-01-30 12:51:27] Production.INFO: ProcessCDR(1,14363779,1,1,2) [2025-01-30 12:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363779', 'tblTempUsageDetail_20' ) start [2025-01-30 12:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363779', 'tblTempUsageDetail_20' ) end [2025-01-30 12:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:51:32] Production.INFO: ==26180== Releasing lock... [2025-01-30 12:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:51:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:52:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:52:06 [end_date_ymd] => 2025-01-30 12:52:06 [RateCDR] => 1 ) [2025-01-30 12:52: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-30 09:52:06' and `end` < '2025-01-30 12: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-30 12:52:25] Production.INFO: count ==4745 [2025-01-30 12:52:28] Production.ERROR: pbx CDR StartTime 2025-01-30 09:52:06 - End Time 2025-01-30 12:52:06 [2025-01-30 12:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363784', 'tblTempUsageDetail_20' ) start [2025-01-30 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363784', 'tblTempUsageDetail_20' ) end [2025-01-30 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363784', 'tblTempVendorCDR_20' ) start [2025-01-30 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363784', 'tblTempVendorCDR_20' ) end [2025-01-30 12:52:28] Production.INFO: ProcessCDR(1,14363784,1,1,2) [2025-01-30 12:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363784', 'tblTempUsageDetail_20' ) start [2025-01-30 12:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363784', 'tblTempUsageDetail_20' ) end [2025-01-30 12:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:52:33] Production.INFO: ==26252== Releasing lock... [2025-01-30 12:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:52:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:53:06 [end_date_ymd] => 2025-01-30 12:53:06 [RateCDR] => 1 ) [2025-01-30 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:53:06' and `end` < '2025-01-30 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:53:23] Production.INFO: count ==4730 [2025-01-30 12:53:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:53:06 - End Time 2025-01-30 12:53:06 [2025-01-30 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363789', 'tblTempUsageDetail_20' ) start [2025-01-30 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363789', 'tblTempUsageDetail_20' ) end [2025-01-30 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363789', 'tblTempVendorCDR_20' ) start [2025-01-30 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363789', 'tblTempVendorCDR_20' ) end [2025-01-30 12:53:25] Production.INFO: ProcessCDR(1,14363789,1,1,2) [2025-01-30 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363789', 'tblTempUsageDetail_20' ) start [2025-01-30 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363789', 'tblTempUsageDetail_20' ) end [2025-01-30 12:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:53:30] Production.INFO: ==26326== Releasing lock... [2025-01-30 12:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:53:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:54:05 [end_date_ymd] => 2025-01-30 12:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:54:05' and `end` < '2025-01-30 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-30 12:54:21] Production.INFO: count ==4683 [2025-01-30 12:54:24] Production.ERROR: pbx CDR StartTime 2025-01-30 09:54:05 - End Time 2025-01-30 12:54:05 [2025-01-30 12:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363794', 'tblTempUsageDetail_20' ) start [2025-01-30 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363794', 'tblTempUsageDetail_20' ) end [2025-01-30 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363794', 'tblTempVendorCDR_20' ) start [2025-01-30 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363794', 'tblTempVendorCDR_20' ) end [2025-01-30 12:54:24] Production.INFO: ProcessCDR(1,14363794,1,1,2) [2025-01-30 12:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363794', 'tblTempUsageDetail_20' ) start [2025-01-30 12:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363794', 'tblTempUsageDetail_20' ) end [2025-01-30 12:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:54:30] Production.INFO: ==26418== Releasing lock... [2025-01-30 12:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:54:30] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:55:06 [end_date_ymd] => 2025-01-30 12:55:06 [RateCDR] => 1 ) [2025-01-30 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:55:06' and `end` < '2025-01-30 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:55:30] Production.INFO: count ==4696 [2025-01-30 12:55:32] Production.ERROR: pbx CDR StartTime 2025-01-30 09:55:06 - End Time 2025-01-30 12:55:06 [2025-01-30 12:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363799', 'tblTempUsageDetail_20' ) start [2025-01-30 12:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363799', 'tblTempUsageDetail_20' ) end [2025-01-30 12:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363799', 'tblTempVendorCDR_20' ) start [2025-01-30 12:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363799', 'tblTempVendorCDR_20' ) end [2025-01-30 12:55:32] Production.INFO: ProcessCDR(1,14363799,1,1,2) [2025-01-30 12:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363799', 'tblTempUsageDetail_20' ) start [2025-01-30 12:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363799', 'tblTempUsageDetail_20' ) end [2025-01-30 12:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:55:38] Production.INFO: ==26488== Releasing lock... [2025-01-30 12:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:55:38] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:56:06 [end_date_ymd] => 2025-01-30 12:56:06 [RateCDR] => 1 ) [2025-01-30 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-30 09:56:06' and `end` < '2025-01-30 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-30 12:56:24] Production.INFO: count ==4681 [2025-01-30 12:56:26] Production.ERROR: pbx CDR StartTime 2025-01-30 09:56:06 - End Time 2025-01-30 12:56:06 [2025-01-30 12:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363804', 'tblTempUsageDetail_20' ) start [2025-01-30 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363804', 'tblTempUsageDetail_20' ) end [2025-01-30 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363804', 'tblTempVendorCDR_20' ) start [2025-01-30 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363804', 'tblTempVendorCDR_20' ) end [2025-01-30 12:56:26] Production.INFO: ProcessCDR(1,14363804,1,1,2) [2025-01-30 12:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363804', 'tblTempUsageDetail_20' ) start [2025-01-30 12:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363804', 'tblTempUsageDetail_20' ) end [2025-01-30 12:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:56:32] Production.INFO: ==26562== Releasing lock... [2025-01-30 12:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:56:32] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:57:05 [end_date_ymd] => 2025-01-30 12:57:05 [RateCDR] => 1 ) [2025-01-30 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:57:05' and `end` < '2025-01-30 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:57:25] Production.INFO: count ==4692 [2025-01-30 12:57:27] Production.ERROR: pbx CDR StartTime 2025-01-30 09:57:05 - End Time 2025-01-30 12:57:05 [2025-01-30 12:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363809', 'tblTempUsageDetail_20' ) start [2025-01-30 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363809', 'tblTempUsageDetail_20' ) end [2025-01-30 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363809', 'tblTempVendorCDR_20' ) start [2025-01-30 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363809', 'tblTempVendorCDR_20' ) end [2025-01-30 12:57:27] Production.INFO: ProcessCDR(1,14363809,1,1,2) [2025-01-30 12:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363809', 'tblTempUsageDetail_20' ) start [2025-01-30 12:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363809', 'tblTempUsageDetail_20' ) end [2025-01-30 12:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:57:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:57:32] Production.INFO: ==26633== Releasing lock... [2025-01-30 12:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:57:32] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:58:05 [end_date_ymd] => 2025-01-30 12:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 09:58:05' and `end` < '2025-01-30 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-30 12:58:23] Production.INFO: count ==4663 [2025-01-30 12:58:25] Production.ERROR: pbx CDR StartTime 2025-01-30 09:58:05 - End Time 2025-01-30 12:58:05 [2025-01-30 12:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363814', 'tblTempUsageDetail_20' ) start [2025-01-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363814', 'tblTempUsageDetail_20' ) end [2025-01-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363814', 'tblTempVendorCDR_20' ) start [2025-01-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363814', 'tblTempVendorCDR_20' ) end [2025-01-30 12:58:25] Production.INFO: ProcessCDR(1,14363814,1,1,2) [2025-01-30 12:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363814', 'tblTempUsageDetail_20' ) start [2025-01-30 12:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363814', 'tblTempUsageDetail_20' ) end [2025-01-30 12:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:58:30] Production.INFO: ==26708== Releasing lock... [2025-01-30 12:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:58:30] Production.INFO: 63 MB #Memory Used# [2025-01-30 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 09:59:05 [end_date_ymd] => 2025-01-30 12:59:05 [RateCDR] => 1 ) [2025-01-30 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 09:59:05' and `end` < '2025-01-30 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 12:59:19] Production.INFO: count ==4669 [2025-01-30 12:59:21] Production.ERROR: pbx CDR StartTime 2025-01-30 09:59:05 - End Time 2025-01-30 12:59:05 [2025-01-30 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363819', 'tblTempUsageDetail_20' ) start [2025-01-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363819', 'tblTempUsageDetail_20' ) end [2025-01-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363819', 'tblTempVendorCDR_20' ) start [2025-01-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363819', 'tblTempVendorCDR_20' ) end [2025-01-30 12:59:21] Production.INFO: ProcessCDR(1,14363819,1,1,2) [2025-01-30 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363819', 'tblTempUsageDetail_20' ) start [2025-01-30 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363819', 'tblTempUsageDetail_20' ) end [2025-01-30 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 12:59:26] Production.INFO: ==26780== Releasing lock... [2025-01-30 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 12:59:26] Production.INFO: 63 MB #Memory Used# [2025-01-30 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:00:06 [end_date_ymd] => 2025-01-30 13:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 10:00:06' and `end` < '2025-01-30 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-30 13:00:25] Production.INFO: count ==4666 [2025-01-30 13:00:27] Production.ERROR: pbx CDR StartTime 2025-01-30 10:00:06 - End Time 2025-01-30 13:00:06 [2025-01-30 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363824', 'tblTempUsageDetail_20' ) start [2025-01-30 13:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363824', 'tblTempUsageDetail_20' ) end [2025-01-30 13:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363824', 'tblTempVendorCDR_20' ) start [2025-01-30 13:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363824', 'tblTempVendorCDR_20' ) end [2025-01-30 13:00:28] Production.INFO: ProcessCDR(1,14363824,1,1,2) [2025-01-30 13:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363824', 'tblTempUsageDetail_20' ) start [2025-01-30 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363824', 'tblTempUsageDetail_20' ) end [2025-01-30 13:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:00:34] Production.INFO: ==26859== Releasing lock... [2025-01-30 13:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:00:34] Production.INFO: 63 MB #Memory Used# [2025-01-30 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:01:06 [end_date_ymd] => 2025-01-30 13:01:06 [RateCDR] => 1 ) [2025-01-30 13: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-30 10:01:06' and `end` < '2025-01-30 13: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-30 13:01:19] Production.INFO: count ==4640 [2025-01-30 13:01:22] Production.ERROR: pbx CDR StartTime 2025-01-30 10:01:06 - End Time 2025-01-30 13:01:06 [2025-01-30 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363830', 'tblTempUsageDetail_20' ) start [2025-01-30 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363830', 'tblTempUsageDetail_20' ) end [2025-01-30 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363830', 'tblTempVendorCDR_20' ) start [2025-01-30 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363830', 'tblTempVendorCDR_20' ) end [2025-01-30 13:01:22] Production.INFO: ProcessCDR(1,14363830,1,1,2) [2025-01-30 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363830', 'tblTempUsageDetail_20' ) start [2025-01-30 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363830', 'tblTempUsageDetail_20' ) end [2025-01-30 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:01:27] Production.INFO: ==26949== Releasing lock... [2025-01-30 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:01:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:02:05 [end_date_ymd] => 2025-01-30 13:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:02:05' and `end` < '2025-01-30 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-30 13:02:23] Production.INFO: count ==4636 [2025-01-30 13:02:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:02:05 - End Time 2025-01-30 13:02:05 [2025-01-30 13:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363835', 'tblTempUsageDetail_20' ) start [2025-01-30 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363835', 'tblTempUsageDetail_20' ) end [2025-01-30 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363835', 'tblTempVendorCDR_20' ) start [2025-01-30 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363835', 'tblTempVendorCDR_20' ) end [2025-01-30 13:02:26] Production.INFO: ProcessCDR(1,14363835,1,1,2) [2025-01-30 13:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363835', 'tblTempUsageDetail_20' ) start [2025-01-30 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363835', 'tblTempUsageDetail_20' ) end [2025-01-30 13:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:02:31] Production.INFO: ==27021== Releasing lock... [2025-01-30 13:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:02:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:03:05 [end_date_ymd] => 2025-01-30 13:03:05 [RateCDR] => 1 ) [2025-01-30 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:03:05' and `end` < '2025-01-30 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:03:18] Production.INFO: count ==4636 [2025-01-30 13:03:21] Production.ERROR: pbx CDR StartTime 2025-01-30 10:03:05 - End Time 2025-01-30 13:03:05 [2025-01-30 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363840', 'tblTempUsageDetail_20' ) start [2025-01-30 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363840', 'tblTempUsageDetail_20' ) end [2025-01-30 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363840', 'tblTempVendorCDR_20' ) start [2025-01-30 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363840', 'tblTempVendorCDR_20' ) end [2025-01-30 13:03:21] Production.INFO: ProcessCDR(1,14363840,1,1,2) [2025-01-30 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363840', 'tblTempUsageDetail_20' ) start [2025-01-30 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363840', 'tblTempUsageDetail_20' ) end [2025-01-30 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:03:26] Production.INFO: ==27095== Releasing lock... [2025-01-30 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:03:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 13:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:04:07 [end_date_ymd] => 2025-01-30 13:04:07 [RateCDR] => 1 ) [2025-01-30 13:04:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:04:07' and `end` < '2025-01-30 13:04:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:04:21] Production.INFO: count ==4649 [2025-01-30 13:04:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:04:07 - End Time 2025-01-30 13:04:07 [2025-01-30 13:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363845', 'tblTempUsageDetail_20' ) start [2025-01-30 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363845', 'tblTempUsageDetail_20' ) end [2025-01-30 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363845', 'tblTempVendorCDR_20' ) start [2025-01-30 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363845', 'tblTempVendorCDR_20' ) end [2025-01-30 13:04:23] Production.INFO: ProcessCDR(1,14363845,1,1,2) [2025-01-30 13:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363845', 'tblTempUsageDetail_20' ) start [2025-01-30 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363845', 'tblTempUsageDetail_20' ) end [2025-01-30 13:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:04:29] Production.INFO: ==27215== Releasing lock... [2025-01-30 13:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:04:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:05:05 [end_date_ymd] => 2025-01-30 13:05:05 [RateCDR] => 1 ) [2025-01-30 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:05:05' and `end` < '2025-01-30 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:05:23] Production.INFO: count ==4639 [2025-01-30 13:05:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:05:05 - End Time 2025-01-30 13:05:05 [2025-01-30 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363850', 'tblTempUsageDetail_20' ) start [2025-01-30 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363850', 'tblTempUsageDetail_20' ) end [2025-01-30 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363850', 'tblTempVendorCDR_20' ) start [2025-01-30 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363850', 'tblTempVendorCDR_20' ) end [2025-01-30 13:05:26] Production.INFO: ProcessCDR(1,14363850,1,1,2) [2025-01-30 13:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363850', 'tblTempUsageDetail_20' ) start [2025-01-30 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363850', 'tblTempUsageDetail_20' ) end [2025-01-30 13:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:05:31] Production.INFO: ==27294== Releasing lock... [2025-01-30 13:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:05:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:06:06 [end_date_ymd] => 2025-01-30 13:06:06 [RateCDR] => 1 ) [2025-01-30 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:06:06' and `end` < '2025-01-30 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:06:23] Production.INFO: count ==4657 [2025-01-30 13:06:26] Production.ERROR: pbx CDR StartTime 2025-01-30 10:06:06 - End Time 2025-01-30 13:06:06 [2025-01-30 13:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363855', 'tblTempUsageDetail_20' ) start [2025-01-30 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363855', 'tblTempUsageDetail_20' ) end [2025-01-30 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363855', 'tblTempVendorCDR_20' ) start [2025-01-30 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363855', 'tblTempVendorCDR_20' ) end [2025-01-30 13:06:26] Production.INFO: ProcessCDR(1,14363855,1,1,2) [2025-01-30 13:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363855', 'tblTempUsageDetail_20' ) start [2025-01-30 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363855', 'tblTempUsageDetail_20' ) end [2025-01-30 13:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:06:31] Production.INFO: ==27370== Releasing lock... [2025-01-30 13:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:06:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:07:06 [end_date_ymd] => 2025-01-30 13:07:06 [RateCDR] => 1 ) [2025-01-30 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:07:06' and `end` < '2025-01-30 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:07:22] Production.INFO: count ==4664 [2025-01-30 13:07:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:07:06 - End Time 2025-01-30 13:07:06 [2025-01-30 13:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363860', 'tblTempUsageDetail_20' ) start [2025-01-30 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363860', 'tblTempUsageDetail_20' ) end [2025-01-30 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363860', 'tblTempVendorCDR_20' ) start [2025-01-30 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363860', 'tblTempVendorCDR_20' ) end [2025-01-30 13:07:24] Production.INFO: ProcessCDR(1,14363860,1,1,2) [2025-01-30 13:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363860', 'tblTempUsageDetail_20' ) start [2025-01-30 13:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363860', 'tblTempUsageDetail_20' ) end [2025-01-30 13:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:07:30] Production.INFO: ==27454== Releasing lock... [2025-01-30 13:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:07:30] Production.INFO: 63 MB #Memory Used# [2025-01-30 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:08:06 [end_date_ymd] => 2025-01-30 13:08:06 [RateCDR] => 1 ) [2025-01-30 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:08:06' and `end` < '2025-01-30 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:08:21] Production.INFO: count ==4697 [2025-01-30 13:08:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:08:06 - End Time 2025-01-30 13:08:06 [2025-01-30 13:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363865', 'tblTempUsageDetail_20' ) start [2025-01-30 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363865', 'tblTempUsageDetail_20' ) end [2025-01-30 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363865', 'tblTempVendorCDR_20' ) start [2025-01-30 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363865', 'tblTempVendorCDR_20' ) end [2025-01-30 13:08:23] Production.INFO: ProcessCDR(1,14363865,1,1,2) [2025-01-30 13:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363865', 'tblTempUsageDetail_20' ) start [2025-01-30 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363865', 'tblTempUsageDetail_20' ) end [2025-01-30 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:08:28] Production.INFO: ==27534== Releasing lock... [2025-01-30 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:08:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:09:06 [end_date_ymd] => 2025-01-30 13:09:06 [RateCDR] => 1 ) [2025-01-30 13: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-30 10:09:06' and `end` < '2025-01-30 13: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-30 13:09:22] Production.INFO: count ==4688 [2025-01-30 13:09:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:09:06 - End Time 2025-01-30 13:09:06 [2025-01-30 13:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363870', 'tblTempUsageDetail_20' ) start [2025-01-30 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363870', 'tblTempUsageDetail_20' ) end [2025-01-30 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363870', 'tblTempVendorCDR_20' ) start [2025-01-30 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363870', 'tblTempVendorCDR_20' ) end [2025-01-30 13:09:25] Production.INFO: ProcessCDR(1,14363870,1,1,2) [2025-01-30 13:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363870', 'tblTempUsageDetail_20' ) start [2025-01-30 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363870', 'tblTempUsageDetail_20' ) end [2025-01-30 13:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:09:30] Production.INFO: ==27617== Releasing lock... [2025-01-30 13:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:09:30] Production.INFO: 63 MB #Memory Used# [2025-01-30 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:10:07 [end_date_ymd] => 2025-01-30 13:10:07 [RateCDR] => 1 ) [2025-01-30 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:10:07' and `end` < '2025-01-30 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:10:23] Production.INFO: count ==4707 [2025-01-30 13:10:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:10:07 - End Time 2025-01-30 13:10:07 [2025-01-30 13:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363876', 'tblTempUsageDetail_20' ) start [2025-01-30 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363876', 'tblTempUsageDetail_20' ) end [2025-01-30 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363876', 'tblTempVendorCDR_20' ) start [2025-01-30 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363876', 'tblTempVendorCDR_20' ) end [2025-01-30 13:10:25] Production.INFO: ProcessCDR(1,14363876,1,1,2) [2025-01-30 13:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363876', 'tblTempUsageDetail_20' ) start [2025-01-30 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363876', 'tblTempUsageDetail_20' ) end [2025-01-30 13:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:10:31] Production.INFO: ==27699== Releasing lock... [2025-01-30 13:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:10:31] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:11:05 [end_date_ymd] => 2025-01-30 13:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:11:05' and `end` < '2025-01-30 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-30 13:11:23] Production.INFO: count ==4729 [2025-01-30 13:11:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:11:05 - End Time 2025-01-30 13:11:05 [2025-01-30 13:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363881', 'tblTempUsageDetail_20' ) start [2025-01-30 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363881', 'tblTempUsageDetail_20' ) end [2025-01-30 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363881', 'tblTempVendorCDR_20' ) start [2025-01-30 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363881', 'tblTempVendorCDR_20' ) end [2025-01-30 13:11:26] Production.INFO: ProcessCDR(1,14363881,1,1,2) [2025-01-30 13:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363881', 'tblTempUsageDetail_20' ) start [2025-01-30 13:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363881', 'tblTempUsageDetail_20' ) end [2025-01-30 13:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:11:31] Production.INFO: ==27779== Releasing lock... [2025-01-30 13:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:11:31] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:12:06 [end_date_ymd] => 2025-01-30 13:12:06 [RateCDR] => 1 ) [2025-01-30 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:12:06' and `end` < '2025-01-30 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:12:22] Production.INFO: count ==4719 [2025-01-30 13:12:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:12:06 - End Time 2025-01-30 13:12:06 [2025-01-30 13:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363886', 'tblTempUsageDetail_20' ) start [2025-01-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363886', 'tblTempUsageDetail_20' ) end [2025-01-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363886', 'tblTempVendorCDR_20' ) start [2025-01-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363886', 'tblTempVendorCDR_20' ) end [2025-01-30 13:12:24] Production.INFO: ProcessCDR(1,14363886,1,1,2) [2025-01-30 13:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363886', 'tblTempUsageDetail_20' ) start [2025-01-30 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363886', 'tblTempUsageDetail_20' ) end [2025-01-30 13:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:12:29] Production.INFO: ==27854== Releasing lock... [2025-01-30 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:12:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:13:06 [end_date_ymd] => 2025-01-30 13:13:06 [RateCDR] => 1 ) [2025-01-30 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:13:06' and `end` < '2025-01-30 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:13:22] Production.INFO: count ==4731 [2025-01-30 13:13:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:13:06 - End Time 2025-01-30 13:13:06 [2025-01-30 13:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363891', 'tblTempUsageDetail_20' ) start [2025-01-30 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363891', 'tblTempUsageDetail_20' ) end [2025-01-30 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363891', 'tblTempVendorCDR_20' ) start [2025-01-30 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363891', 'tblTempVendorCDR_20' ) end [2025-01-30 13:13:25] Production.INFO: ProcessCDR(1,14363891,1,1,2) [2025-01-30 13:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363891', 'tblTempUsageDetail_20' ) start [2025-01-30 13:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363891', 'tblTempUsageDetail_20' ) end [2025-01-30 13:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:13:30] Production.INFO: ==27943== Releasing lock... [2025-01-30 13:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:13:30] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:14:06 [end_date_ymd] => 2025-01-30 13:14:06 [RateCDR] => 1 ) [2025-01-30 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:14:06' and `end` < '2025-01-30 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:14:26] Production.INFO: count ==4745 [2025-01-30 13:14:29] Production.ERROR: pbx CDR StartTime 2025-01-30 10:14:06 - End Time 2025-01-30 13:14:06 [2025-01-30 13:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363896', 'tblTempUsageDetail_20' ) start [2025-01-30 13:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363896', 'tblTempUsageDetail_20' ) end [2025-01-30 13:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363896', 'tblTempVendorCDR_20' ) start [2025-01-30 13:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363896', 'tblTempVendorCDR_20' ) end [2025-01-30 13:14:29] Production.INFO: ProcessCDR(1,14363896,1,1,2) [2025-01-30 13:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363896', 'tblTempUsageDetail_20' ) start [2025-01-30 13:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363896', 'tblTempUsageDetail_20' ) end [2025-01-30 13:14:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:14:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:14:35] Production.INFO: ==28022== Releasing lock... [2025-01-30 13:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:14:35] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:15:06 [end_date_ymd] => 2025-01-30 13:15:06 [RateCDR] => 1 ) [2025-01-30 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:15:06' and `end` < '2025-01-30 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:15:27] Production.INFO: count ==4782 [2025-01-30 13:15:29] Production.ERROR: pbx CDR StartTime 2025-01-30 10:15:06 - End Time 2025-01-30 13:15:06 [2025-01-30 13:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363901', 'tblTempUsageDetail_20' ) start [2025-01-30 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363901', 'tblTempUsageDetail_20' ) end [2025-01-30 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363901', 'tblTempVendorCDR_20' ) start [2025-01-30 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363901', 'tblTempVendorCDR_20' ) end [2025-01-30 13:15:30] Production.INFO: ProcessCDR(1,14363901,1,1,2) [2025-01-30 13:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363901', 'tblTempUsageDetail_20' ) start [2025-01-30 13:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363901', 'tblTempUsageDetail_20' ) end [2025-01-30 13:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:15:36] Production.INFO: ==28106== Releasing lock... [2025-01-30 13:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:15:36] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:16:06 [end_date_ymd] => 2025-01-30 13:16:06 [RateCDR] => 1 ) [2025-01-30 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:16:06' and `end` < '2025-01-30 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:16:22] Production.INFO: count ==4783 [2025-01-30 13:16:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:16:06 - End Time 2025-01-30 13:16:06 [2025-01-30 13:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363906', 'tblTempUsageDetail_20' ) start [2025-01-30 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363906', 'tblTempUsageDetail_20' ) end [2025-01-30 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363906', 'tblTempVendorCDR_20' ) start [2025-01-30 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363906', 'tblTempVendorCDR_20' ) end [2025-01-30 13:16:24] Production.INFO: ProcessCDR(1,14363906,1,1,2) [2025-01-30 13:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363906', 'tblTempUsageDetail_20' ) start [2025-01-30 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363906', 'tblTempUsageDetail_20' ) end [2025-01-30 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:16:29] Production.INFO: ==28192== Releasing lock... [2025-01-30 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:16:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:17:06 [end_date_ymd] => 2025-01-30 13:17:06 [RateCDR] => 1 ) [2025-01-30 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:17:06' and `end` < '2025-01-30 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:17:21] Production.INFO: count ==4779 [2025-01-30 13:17:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:17:06 - End Time 2025-01-30 13:17:06 [2025-01-30 13:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363911', 'tblTempUsageDetail_20' ) start [2025-01-30 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363911', 'tblTempUsageDetail_20' ) end [2025-01-30 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363911', 'tblTempVendorCDR_20' ) start [2025-01-30 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363911', 'tblTempVendorCDR_20' ) end [2025-01-30 13:17:23] Production.INFO: ProcessCDR(1,14363911,1,1,2) [2025-01-30 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363911', 'tblTempUsageDetail_20' ) start [2025-01-30 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363911', 'tblTempUsageDetail_20' ) end [2025-01-30 13:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:17:29] Production.INFO: ==28274== Releasing lock... [2025-01-30 13:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:17:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:18:05 [end_date_ymd] => 2025-01-30 13:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:18:05' and `end` < '2025-01-30 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-30 13:18:20] Production.INFO: count ==4768 [2025-01-30 13:18:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:18:05 - End Time 2025-01-30 13:18:05 [2025-01-30 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363916', 'tblTempUsageDetail_20' ) start [2025-01-30 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363916', 'tblTempUsageDetail_20' ) end [2025-01-30 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363916', 'tblTempVendorCDR_20' ) start [2025-01-30 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363916', 'tblTempVendorCDR_20' ) end [2025-01-30 13:18:23] Production.INFO: ProcessCDR(1,14363916,1,1,2) [2025-01-30 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363916', 'tblTempUsageDetail_20' ) start [2025-01-30 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363916', 'tblTempUsageDetail_20' ) end [2025-01-30 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:18:28] Production.INFO: ==28363== Releasing lock... [2025-01-30 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:18:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:19:06 [end_date_ymd] => 2025-01-30 13:19:06 [RateCDR] => 1 ) [2025-01-30 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:19:06' and `end` < '2025-01-30 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:19:20] Production.INFO: count ==4803 [2025-01-30 13:19:22] Production.ERROR: pbx CDR StartTime 2025-01-30 10:19:06 - End Time 2025-01-30 13:19:06 [2025-01-30 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363921', 'tblTempUsageDetail_20' ) start [2025-01-30 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363921', 'tblTempUsageDetail_20' ) end [2025-01-30 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363921', 'tblTempVendorCDR_20' ) start [2025-01-30 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363921', 'tblTempVendorCDR_20' ) end [2025-01-30 13:19:22] Production.INFO: ProcessCDR(1,14363921,1,1,2) [2025-01-30 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363921', 'tblTempUsageDetail_20' ) start [2025-01-30 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363921', 'tblTempUsageDetail_20' ) end [2025-01-30 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:19:28] Production.INFO: ==28444== Releasing lock... [2025-01-30 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:19:28] Production.INFO: 64 MB #Memory Used# [2025-01-30 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:20:06 [end_date_ymd] => 2025-01-30 13:20:06 [RateCDR] => 1 ) [2025-01-30 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:20:06' and `end` < '2025-01-30 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:20:20] Production.INFO: count ==4784 [2025-01-30 13:20:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:20:06 - End Time 2025-01-30 13:20:06 [2025-01-30 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363927', 'tblTempUsageDetail_20' ) start [2025-01-30 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363927', 'tblTempUsageDetail_20' ) end [2025-01-30 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363927', 'tblTempVendorCDR_20' ) start [2025-01-30 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363927', 'tblTempVendorCDR_20' ) end [2025-01-30 13:20:23] Production.INFO: ProcessCDR(1,14363927,1,1,2) [2025-01-30 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363927', 'tblTempUsageDetail_20' ) start [2025-01-30 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363927', 'tblTempUsageDetail_20' ) end [2025-01-30 13:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:20:29] Production.INFO: ==28577== Releasing lock... [2025-01-30 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:20:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:21:06 [end_date_ymd] => 2025-01-30 13:21:06 [RateCDR] => 1 ) [2025-01-30 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:21:06' and `end` < '2025-01-30 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:21:23] Production.INFO: count ==4785 [2025-01-30 13:21:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:21:06 - End Time 2025-01-30 13:21:06 [2025-01-30 13:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363932', 'tblTempUsageDetail_20' ) start [2025-01-30 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363932', 'tblTempUsageDetail_20' ) end [2025-01-30 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363932', 'tblTempVendorCDR_20' ) start [2025-01-30 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363932', 'tblTempVendorCDR_20' ) end [2025-01-30 13:21:25] Production.INFO: ProcessCDR(1,14363932,1,1,2) [2025-01-30 13:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363932', 'tblTempUsageDetail_20' ) start [2025-01-30 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363932', 'tblTempUsageDetail_20' ) end [2025-01-30 13:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:21:30] Production.INFO: ==28669== Releasing lock... [2025-01-30 13:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:21:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:22:06 [end_date_ymd] => 2025-01-30 13:22:06 [RateCDR] => 1 ) [2025-01-30 13: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-30 10:22:06' and `end` < '2025-01-30 13: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-30 13:22:20] Production.INFO: count ==4787 [2025-01-30 13:22:22] Production.ERROR: pbx CDR StartTime 2025-01-30 10:22:06 - End Time 2025-01-30 13:22:06 [2025-01-30 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363937', 'tblTempUsageDetail_20' ) start [2025-01-30 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363937', 'tblTempUsageDetail_20' ) end [2025-01-30 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363937', 'tblTempVendorCDR_20' ) start [2025-01-30 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363937', 'tblTempVendorCDR_20' ) end [2025-01-30 13:22:22] Production.INFO: ProcessCDR(1,14363937,1,1,2) [2025-01-30 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363937', 'tblTempUsageDetail_20' ) start [2025-01-30 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363937', 'tblTempUsageDetail_20' ) end [2025-01-30 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:22:28] Production.INFO: ==28758== Releasing lock... [2025-01-30 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:22:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:23:06 [end_date_ymd] => 2025-01-30 13:23:06 [RateCDR] => 1 ) [2025-01-30 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:23:06' and `end` < '2025-01-30 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:23:20] Production.INFO: count ==4784 [2025-01-30 13:23:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:23:06 - End Time 2025-01-30 13:23:06 [2025-01-30 13:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363942', 'tblTempUsageDetail_20' ) start [2025-01-30 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363942', 'tblTempUsageDetail_20' ) end [2025-01-30 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363942', 'tblTempVendorCDR_20' ) start [2025-01-30 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363942', 'tblTempVendorCDR_20' ) end [2025-01-30 13:23:23] Production.INFO: ProcessCDR(1,14363942,1,1,2) [2025-01-30 13:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363942', 'tblTempUsageDetail_20' ) start [2025-01-30 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363942', 'tblTempUsageDetail_20' ) end [2025-01-30 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:23:28] Production.INFO: ==28846== Releasing lock... [2025-01-30 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:23:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:24:06 [end_date_ymd] => 2025-01-30 13:24:06 [RateCDR] => 1 ) [2025-01-30 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:24:06' and `end` < '2025-01-30 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:24:26] Production.INFO: count ==4773 [2025-01-30 13:24:28] Production.ERROR: pbx CDR StartTime 2025-01-30 10:24:06 - End Time 2025-01-30 13:24:06 [2025-01-30 13:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363947', 'tblTempUsageDetail_20' ) start [2025-01-30 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363947', 'tblTempUsageDetail_20' ) end [2025-01-30 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363947', 'tblTempVendorCDR_20' ) start [2025-01-30 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363947', 'tblTempVendorCDR_20' ) end [2025-01-30 13:24:28] Production.INFO: ProcessCDR(1,14363947,1,1,2) [2025-01-30 13:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363947', 'tblTempUsageDetail_20' ) start [2025-01-30 13:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363947', 'tblTempUsageDetail_20' ) end [2025-01-30 13:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:24:34] Production.INFO: ==28929== Releasing lock... [2025-01-30 13:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:24:34] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:25:06 [end_date_ymd] => 2025-01-30 13:25:06 [RateCDR] => 1 ) [2025-01-30 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:25:06' and `end` < '2025-01-30 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:25:22] Production.INFO: count ==4771 [2025-01-30 13:25:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:25:06 - End Time 2025-01-30 13:25:06 [2025-01-30 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363952', 'tblTempUsageDetail_20' ) start [2025-01-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363952', 'tblTempUsageDetail_20' ) end [2025-01-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363952', 'tblTempVendorCDR_20' ) start [2025-01-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363952', 'tblTempVendorCDR_20' ) end [2025-01-30 13:25:24] Production.INFO: ProcessCDR(1,14363952,1,1,2) [2025-01-30 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363952', 'tblTempUsageDetail_20' ) start [2025-01-30 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363952', 'tblTempUsageDetail_20' ) end [2025-01-30 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:25:30] Production.INFO: ==29024== Releasing lock... [2025-01-30 13:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:25:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:26:05 [end_date_ymd] => 2025-01-30 13:26:05 [RateCDR] => 1 ) [2025-01-30 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:26:05' and `end` < '2025-01-30 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:26:19] Production.INFO: count ==4782 [2025-01-30 13:26:21] Production.ERROR: pbx CDR StartTime 2025-01-30 10:26:05 - End Time 2025-01-30 13:26:05 [2025-01-30 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363957', 'tblTempUsageDetail_20' ) start [2025-01-30 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363957', 'tblTempUsageDetail_20' ) end [2025-01-30 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363957', 'tblTempVendorCDR_20' ) start [2025-01-30 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363957', 'tblTempVendorCDR_20' ) end [2025-01-30 13:26:21] Production.INFO: ProcessCDR(1,14363957,1,1,2) [2025-01-30 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363957', 'tblTempUsageDetail_20' ) start [2025-01-30 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363957', 'tblTempUsageDetail_20' ) end [2025-01-30 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:26:27] Production.INFO: ==29119== Releasing lock... [2025-01-30 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:26:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:27:06 [end_date_ymd] => 2025-01-30 13:27:06 [RateCDR] => 1 ) [2025-01-30 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:27:06' and `end` < '2025-01-30 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:27:20] Production.INFO: count ==4777 [2025-01-30 13:27:22] Production.ERROR: pbx CDR StartTime 2025-01-30 10:27:06 - End Time 2025-01-30 13:27:06 [2025-01-30 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363962', 'tblTempUsageDetail_20' ) start [2025-01-30 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363962', 'tblTempUsageDetail_20' ) end [2025-01-30 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363962', 'tblTempVendorCDR_20' ) start [2025-01-30 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363962', 'tblTempVendorCDR_20' ) end [2025-01-30 13:27:23] Production.INFO: ProcessCDR(1,14363962,1,1,2) [2025-01-30 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363962', 'tblTempUsageDetail_20' ) start [2025-01-30 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363962', 'tblTempUsageDetail_20' ) end [2025-01-30 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:27:28] Production.INFO: ==29204== Releasing lock... [2025-01-30 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:27:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:28:05 [end_date_ymd] => 2025-01-30 13:28:05 [RateCDR] => 1 ) [2025-01-30 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:28:05' and `end` < '2025-01-30 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:28:22] Production.INFO: count ==4778 [2025-01-30 13:28:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:28:05 - End Time 2025-01-30 13:28:05 [2025-01-30 13:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363967', 'tblTempUsageDetail_20' ) start [2025-01-30 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363967', 'tblTempUsageDetail_20' ) end [2025-01-30 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363967', 'tblTempVendorCDR_20' ) start [2025-01-30 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363967', 'tblTempVendorCDR_20' ) end [2025-01-30 13:28:24] Production.INFO: ProcessCDR(1,14363967,1,1,2) [2025-01-30 13:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363967', 'tblTempUsageDetail_20' ) start [2025-01-30 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363967', 'tblTempUsageDetail_20' ) end [2025-01-30 13:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:28:30] Production.INFO: ==29288== Releasing lock... [2025-01-30 13:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:28:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:29:06 [end_date_ymd] => 2025-01-30 13:29:06 [RateCDR] => 1 ) [2025-01-30 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:29:06' and `end` < '2025-01-30 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:29:24] Production.INFO: count ==4789 [2025-01-30 13:29:27] Production.ERROR: pbx CDR StartTime 2025-01-30 10:29:06 - End Time 2025-01-30 13:29:06 [2025-01-30 13:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363972', 'tblTempUsageDetail_20' ) start [2025-01-30 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363972', 'tblTempUsageDetail_20' ) end [2025-01-30 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363972', 'tblTempVendorCDR_20' ) start [2025-01-30 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363972', 'tblTempVendorCDR_20' ) end [2025-01-30 13:29:27] Production.INFO: ProcessCDR(1,14363972,1,1,2) [2025-01-30 13:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363972', 'tblTempUsageDetail_20' ) start [2025-01-30 13:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363972', 'tblTempUsageDetail_20' ) end [2025-01-30 13:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:29:32] Production.INFO: ==29377== Releasing lock... [2025-01-30 13:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:29:32] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:30:06 [end_date_ymd] => 2025-01-30 13:30:06 [RateCDR] => 1 ) [2025-01-30 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:30:06' and `end` < '2025-01-30 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:30:25] Production.INFO: count ==4802 [2025-01-30 13:30:27] Production.ERROR: pbx CDR StartTime 2025-01-30 10:30:06 - End Time 2025-01-30 13:30:06 [2025-01-30 13:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363978', 'tblTempUsageDetail_20' ) start [2025-01-30 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363978', 'tblTempUsageDetail_20' ) end [2025-01-30 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363978', 'tblTempVendorCDR_20' ) start [2025-01-30 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363978', 'tblTempVendorCDR_20' ) end [2025-01-30 13:30:27] Production.INFO: ProcessCDR(1,14363978,1,1,2) [2025-01-30 13:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363978', 'tblTempUsageDetail_20' ) start [2025-01-30 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363978', 'tblTempUsageDetail_20' ) end [2025-01-30 13:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:30:33] Production.INFO: ==29462== Releasing lock... [2025-01-30 13:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:30:33] Production.INFO: 64 MB #Memory Used# [2025-01-30 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:31:06 [end_date_ymd] => 2025-01-30 13:31:06 [RateCDR] => 1 ) [2025-01-30 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:31:06' and `end` < '2025-01-30 13:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:31:23] Production.INFO: count ==4835 [2025-01-30 13:31:26] Production.ERROR: pbx CDR StartTime 2025-01-30 10:31:06 - End Time 2025-01-30 13:31:06 [2025-01-30 13:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363983', 'tblTempUsageDetail_20' ) start [2025-01-30 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363983', 'tblTempUsageDetail_20' ) end [2025-01-30 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363983', 'tblTempVendorCDR_20' ) start [2025-01-30 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363983', 'tblTempVendorCDR_20' ) end [2025-01-30 13:31:26] Production.INFO: ProcessCDR(1,14363983,1,1,2) [2025-01-30 13:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363983', 'tblTempUsageDetail_20' ) start [2025-01-30 13:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363983', 'tblTempUsageDetail_20' ) end [2025-01-30 13:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:31:32] Production.INFO: ==29551== Releasing lock... [2025-01-30 13:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:31:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:32:06 [end_date_ymd] => 2025-01-30 13:32:06 [RateCDR] => 1 ) [2025-01-30 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:32:06' and `end` < '2025-01-30 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:32:28] Production.INFO: count ==4849 [2025-01-30 13:32:30] Production.ERROR: pbx CDR StartTime 2025-01-30 10:32:06 - End Time 2025-01-30 13:32:06 [2025-01-30 13:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363988', 'tblTempUsageDetail_20' ) start [2025-01-30 13:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363988', 'tblTempUsageDetail_20' ) end [2025-01-30 13:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363988', 'tblTempVendorCDR_20' ) start [2025-01-30 13:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363988', 'tblTempVendorCDR_20' ) end [2025-01-30 13:32:31] Production.INFO: ProcessCDR(1,14363988,1,1,2) [2025-01-30 13:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:32:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363988', 'tblTempUsageDetail_20' ) start [2025-01-30 13:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363988', 'tblTempUsageDetail_20' ) end [2025-01-30 13:32:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:32:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:32:36] Production.INFO: ==29642== Releasing lock... [2025-01-30 13:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:32:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:33:06 [end_date_ymd] => 2025-01-30 13:33:06 [RateCDR] => 1 ) [2025-01-30 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:33:06' and `end` < '2025-01-30 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:33:23] Production.INFO: count ==4839 [2025-01-30 13:33:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:33:06 - End Time 2025-01-30 13:33:06 [2025-01-30 13:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363993', 'tblTempUsageDetail_20' ) start [2025-01-30 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363993', 'tblTempUsageDetail_20' ) end [2025-01-30 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363993', 'tblTempVendorCDR_20' ) start [2025-01-30 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363993', 'tblTempVendorCDR_20' ) end [2025-01-30 13:33:25] Production.INFO: ProcessCDR(1,14363993,1,1,2) [2025-01-30 13:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363993', 'tblTempUsageDetail_20' ) start [2025-01-30 13:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363993', 'tblTempUsageDetail_20' ) end [2025-01-30 13:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:33:31] Production.INFO: ==29718== Releasing lock... [2025-01-30 13:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:33:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:34:06 [end_date_ymd] => 2025-01-30 13:34:06 [RateCDR] => 1 ) [2025-01-30 13: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-30 10:34:06' and `end` < '2025-01-30 13: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-30 13:34:20] Production.INFO: count ==4839 [2025-01-30 13:34:22] Production.ERROR: pbx CDR StartTime 2025-01-30 10:34:06 - End Time 2025-01-30 13:34:06 [2025-01-30 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363998', 'tblTempUsageDetail_20' ) start [2025-01-30 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14363998', 'tblTempUsageDetail_20' ) end [2025-01-30 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363998', 'tblTempVendorCDR_20' ) start [2025-01-30 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14363998', 'tblTempVendorCDR_20' ) end [2025-01-30 13:34:22] Production.INFO: ProcessCDR(1,14363998,1,1,2) [2025-01-30 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14363998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14363998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14363998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14363998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363998', 'tblTempUsageDetail_20' ) start [2025-01-30 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14363998', 'tblTempUsageDetail_20' ) end [2025-01-30 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:34:28] Production.INFO: ==29808== Releasing lock... [2025-01-30 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:34:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:35:06 [end_date_ymd] => 2025-01-30 13:35:06 [RateCDR] => 1 ) [2025-01-30 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:35:06' and `end` < '2025-01-30 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:35:23] Production.INFO: count ==4878 [2025-01-30 13:35:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:35:06 - End Time 2025-01-30 13:35:06 [2025-01-30 13:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364003', 'tblTempUsageDetail_20' ) start [2025-01-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364003', 'tblTempUsageDetail_20' ) end [2025-01-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364003', 'tblTempVendorCDR_20' ) start [2025-01-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364003', 'tblTempVendorCDR_20' ) end [2025-01-30 13:35:25] Production.INFO: ProcessCDR(1,14364003,1,1,2) [2025-01-30 13:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364003', 'tblTempUsageDetail_20' ) start [2025-01-30 13:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364003', 'tblTempUsageDetail_20' ) end [2025-01-30 13:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:35:31] Production.INFO: ==29935== Releasing lock... [2025-01-30 13:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:35:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-30 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:36:05 [end_date_ymd] => 2025-01-30 13:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:36:05' and `end` < '2025-01-30 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-30 13:36:19] Production.INFO: count ==4892 [2025-01-30 13:36:21] Production.ERROR: pbx CDR StartTime 2025-01-30 10:36:05 - End Time 2025-01-30 13:36:05 [2025-01-30 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364008', 'tblTempUsageDetail_20' ) start [2025-01-30 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364008', 'tblTempUsageDetail_20' ) end [2025-01-30 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364008', 'tblTempVendorCDR_20' ) start [2025-01-30 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364008', 'tblTempVendorCDR_20' ) end [2025-01-30 13:36:21] Production.INFO: ProcessCDR(1,14364008,1,1,2) [2025-01-30 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364008', 'tblTempUsageDetail_20' ) start [2025-01-30 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364008', 'tblTempUsageDetail_20' ) end [2025-01-30 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:36:27] Production.INFO: ==30021== Releasing lock... [2025-01-30 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:36:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-30 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:37:06 [end_date_ymd] => 2025-01-30 13:37:06 [RateCDR] => 1 ) [2025-01-30 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:37:06' and `end` < '2025-01-30 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:37:23] Production.INFO: count ==4927 [2025-01-30 13:37:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:37:06 - End Time 2025-01-30 13:37:06 [2025-01-30 13:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364013', 'tblTempUsageDetail_20' ) start [2025-01-30 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364013', 'tblTempUsageDetail_20' ) end [2025-01-30 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364013', 'tblTempVendorCDR_20' ) start [2025-01-30 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364013', 'tblTempVendorCDR_20' ) end [2025-01-30 13:37:25] Production.INFO: ProcessCDR(1,14364013,1,1,2) [2025-01-30 13:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364013', 'tblTempUsageDetail_20' ) start [2025-01-30 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364013', 'tblTempUsageDetail_20' ) end [2025-01-30 13:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:37:31] Production.INFO: ==30103== Releasing lock... [2025-01-30 13:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:37:31] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:38:06 [end_date_ymd] => 2025-01-30 13:38:06 [RateCDR] => 1 ) [2025-01-30 13: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-30 10:38:06' and `end` < '2025-01-30 13: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-30 13:38:24] Production.INFO: count ==4929 [2025-01-30 13:38:26] Production.ERROR: pbx CDR StartTime 2025-01-30 10:38:06 - End Time 2025-01-30 13:38:06 [2025-01-30 13:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364018', 'tblTempUsageDetail_20' ) start [2025-01-30 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364018', 'tblTempUsageDetail_20' ) end [2025-01-30 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364018', 'tblTempVendorCDR_20' ) start [2025-01-30 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364018', 'tblTempVendorCDR_20' ) end [2025-01-30 13:38:27] Production.INFO: ProcessCDR(1,14364018,1,1,2) [2025-01-30 13:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364018', 'tblTempUsageDetail_20' ) start [2025-01-30 13:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364018', 'tblTempUsageDetail_20' ) end [2025-01-30 13:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:38:32] Production.INFO: ==30189== Releasing lock... [2025-01-30 13:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:38:32] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:39:06 [end_date_ymd] => 2025-01-30 13:39:06 [RateCDR] => 1 ) [2025-01-30 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:39:06' and `end` < '2025-01-30 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:39:23] Production.INFO: count ==4937 [2025-01-30 13:39:26] Production.ERROR: pbx CDR StartTime 2025-01-30 10:39:06 - End Time 2025-01-30 13:39:06 [2025-01-30 13:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364023', 'tblTempUsageDetail_20' ) start [2025-01-30 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364023', 'tblTempUsageDetail_20' ) end [2025-01-30 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364023', 'tblTempVendorCDR_20' ) start [2025-01-30 13:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364023', 'tblTempVendorCDR_20' ) end [2025-01-30 13:39:26] Production.INFO: ProcessCDR(1,14364023,1,1,2) [2025-01-30 13:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364023', 'tblTempUsageDetail_20' ) start [2025-01-30 13:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364023', 'tblTempUsageDetail_20' ) end [2025-01-30 13:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:39:31] Production.INFO: ==30281== Releasing lock... [2025-01-30 13:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:39:31] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:40:06 [end_date_ymd] => 2025-01-30 13:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 10:40:06' and `end` < '2025-01-30 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-30 13:40:29] Production.INFO: count ==4928 [2025-01-30 13:40:31] Production.ERROR: pbx CDR StartTime 2025-01-30 10:40:06 - End Time 2025-01-30 13:40:06 [2025-01-30 13:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364029', 'tblTempUsageDetail_20' ) start [2025-01-30 13:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364029', 'tblTempUsageDetail_20' ) end [2025-01-30 13:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364029', 'tblTempVendorCDR_20' ) start [2025-01-30 13:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364029', 'tblTempVendorCDR_20' ) end [2025-01-30 13:40:31] Production.INFO: ProcessCDR(1,14364029,1,1,2) [2025-01-30 13:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364029', 'tblTempUsageDetail_20' ) start [2025-01-30 13:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364029', 'tblTempUsageDetail_20' ) end [2025-01-30 13:40:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:40:36] Production.INFO: ==30365== Releasing lock... [2025-01-30 13:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:40:36] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:41:06 [end_date_ymd] => 2025-01-30 13:41:06 [RateCDR] => 1 ) [2025-01-30 13: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-30 10:41:06' and `end` < '2025-01-30 13: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-30 13:41:21] Production.INFO: count ==4951 [2025-01-30 13:41:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:41:06 - End Time 2025-01-30 13:41:06 [2025-01-30 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364034', 'tblTempUsageDetail_20' ) start [2025-01-30 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364034', 'tblTempUsageDetail_20' ) end [2025-01-30 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364034', 'tblTempVendorCDR_20' ) start [2025-01-30 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364034', 'tblTempVendorCDR_20' ) end [2025-01-30 13:41:23] Production.INFO: ProcessCDR(1,14364034,1,1,2) [2025-01-30 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364034', 'tblTempUsageDetail_20' ) start [2025-01-30 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364034', 'tblTempUsageDetail_20' ) end [2025-01-30 13:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:41:29] Production.INFO: ==30452== Releasing lock... [2025-01-30 13:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:41:29] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:42:05 [end_date_ymd] => 2025-01-30 13:42:05 [RateCDR] => 1 ) [2025-01-30 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:42:05' and `end` < '2025-01-30 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:42:22] Production.INFO: count ==4949 [2025-01-30 13:42:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:42:05 - End Time 2025-01-30 13:42:05 [2025-01-30 13:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364039', 'tblTempUsageDetail_20' ) start [2025-01-30 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364039', 'tblTempUsageDetail_20' ) end [2025-01-30 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364039', 'tblTempVendorCDR_20' ) start [2025-01-30 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364039', 'tblTempVendorCDR_20' ) end [2025-01-30 13:42:24] Production.INFO: ProcessCDR(1,14364039,1,1,2) [2025-01-30 13:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364039', 'tblTempUsageDetail_20' ) start [2025-01-30 13:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364039', 'tblTempUsageDetail_20' ) end [2025-01-30 13:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:42:30] Production.INFO: ==30527== Releasing lock... [2025-01-30 13:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:42:30] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:43:06 [end_date_ymd] => 2025-01-30 13:43:06 [RateCDR] => 1 ) [2025-01-30 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:43:06' and `end` < '2025-01-30 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:43:25] Production.INFO: count ==4934 [2025-01-30 13:43:27] Production.ERROR: pbx CDR StartTime 2025-01-30 10:43:06 - End Time 2025-01-30 13:43:06 [2025-01-30 13:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364044', 'tblTempUsageDetail_20' ) start [2025-01-30 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364044', 'tblTempUsageDetail_20' ) end [2025-01-30 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364044', 'tblTempVendorCDR_20' ) start [2025-01-30 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364044', 'tblTempVendorCDR_20' ) end [2025-01-30 13:43:27] Production.INFO: ProcessCDR(1,14364044,1,1,2) [2025-01-30 13:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364044', 'tblTempUsageDetail_20' ) start [2025-01-30 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364044', 'tblTempUsageDetail_20' ) end [2025-01-30 13:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:43:32] Production.INFO: ==30612== Releasing lock... [2025-01-30 13:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:43:32] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:44:06 [end_date_ymd] => 2025-01-30 13:44:06 [RateCDR] => 1 ) [2025-01-30 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:44:06' and `end` < '2025-01-30 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:44:22] Production.INFO: count ==4931 [2025-01-30 13:44:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:44:06 - End Time 2025-01-30 13:44:06 [2025-01-30 13:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364049', 'tblTempUsageDetail_20' ) start [2025-01-30 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364049', 'tblTempUsageDetail_20' ) end [2025-01-30 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364049', 'tblTempVendorCDR_20' ) start [2025-01-30 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364049', 'tblTempVendorCDR_20' ) end [2025-01-30 13:44:24] Production.INFO: ProcessCDR(1,14364049,1,1,2) [2025-01-30 13:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364049', 'tblTempUsageDetail_20' ) start [2025-01-30 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364049', 'tblTempUsageDetail_20' ) end [2025-01-30 13:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:44:29] Production.INFO: ==30695== Releasing lock... [2025-01-30 13:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:44:29] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:45:06 [end_date_ymd] => 2025-01-30 13:45:06 [RateCDR] => 1 ) [2025-01-30 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:45:06' and `end` < '2025-01-30 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:45:19] Production.INFO: count ==4927 [2025-01-30 13:45:22] Production.ERROR: pbx CDR StartTime 2025-01-30 10:45:06 - End Time 2025-01-30 13:45:06 [2025-01-30 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364054', 'tblTempUsageDetail_20' ) start [2025-01-30 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364054', 'tblTempUsageDetail_20' ) end [2025-01-30 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364054', 'tblTempVendorCDR_20' ) start [2025-01-30 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364054', 'tblTempVendorCDR_20' ) end [2025-01-30 13:45:22] Production.INFO: ProcessCDR(1,14364054,1,1,2) [2025-01-30 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364054', 'tblTempUsageDetail_20' ) start [2025-01-30 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364054', 'tblTempUsageDetail_20' ) end [2025-01-30 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:45:27] Production.INFO: ==30777== Releasing lock... [2025-01-30 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:45:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:46:06 [end_date_ymd] => 2025-01-30 13:46:06 [RateCDR] => 1 ) [2025-01-30 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:46:06' and `end` < '2025-01-30 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:46:22] Production.INFO: count ==4916 [2025-01-30 13:46:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:46:06 - End Time 2025-01-30 13:46:06 [2025-01-30 13:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364059', 'tblTempUsageDetail_20' ) start [2025-01-30 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364059', 'tblTempUsageDetail_20' ) end [2025-01-30 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364059', 'tblTempVendorCDR_20' ) start [2025-01-30 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364059', 'tblTempVendorCDR_20' ) end [2025-01-30 13:46:24] Production.INFO: ProcessCDR(1,14364059,1,1,2) [2025-01-30 13:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364059', 'tblTempUsageDetail_20' ) start [2025-01-30 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364059', 'tblTempUsageDetail_20' ) end [2025-01-30 13:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:46:29] Production.INFO: ==30857== Releasing lock... [2025-01-30 13:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:46:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:47:06 [end_date_ymd] => 2025-01-30 13:47:06 [RateCDR] => 1 ) [2025-01-30 13: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-30 10:47:06' and `end` < '2025-01-30 13: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-30 13:47:21] Production.INFO: count ==4910 [2025-01-30 13:47:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:47:06 - End Time 2025-01-30 13:47:06 [2025-01-30 13:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364064', 'tblTempUsageDetail_20' ) start [2025-01-30 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364064', 'tblTempUsageDetail_20' ) end [2025-01-30 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364064', 'tblTempVendorCDR_20' ) start [2025-01-30 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364064', 'tblTempVendorCDR_20' ) end [2025-01-30 13:47:24] Production.INFO: ProcessCDR(1,14364064,1,1,2) [2025-01-30 13:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364064', 'tblTempUsageDetail_20' ) start [2025-01-30 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364064', 'tblTempUsageDetail_20' ) end [2025-01-30 13:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:47:29] Production.INFO: ==30934== Releasing lock... [2025-01-30 13:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:47:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:48:05 [end_date_ymd] => 2025-01-30 13:48:05 [RateCDR] => 1 ) [2025-01-30 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:48:05' and `end` < '2025-01-30 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:48:21] Production.INFO: count ==4915 [2025-01-30 13:48:23] Production.ERROR: pbx CDR StartTime 2025-01-30 10:48:05 - End Time 2025-01-30 13:48:05 [2025-01-30 13:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364069', 'tblTempUsageDetail_20' ) start [2025-01-30 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364069', 'tblTempUsageDetail_20' ) end [2025-01-30 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364069', 'tblTempVendorCDR_20' ) start [2025-01-30 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364069', 'tblTempVendorCDR_20' ) end [2025-01-30 13:48:23] Production.INFO: ProcessCDR(1,14364069,1,1,2) [2025-01-30 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364069', 'tblTempUsageDetail_20' ) start [2025-01-30 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364069', 'tblTempUsageDetail_20' ) end [2025-01-30 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:48:28] Production.INFO: ==31013== Releasing lock... [2025-01-30 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:48:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:49:06 [end_date_ymd] => 2025-01-30 13:49:06 [RateCDR] => 1 ) [2025-01-30 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:49:06' and `end` < '2025-01-30 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:49:25] Production.INFO: count ==4942 [2025-01-30 13:49:27] Production.ERROR: pbx CDR StartTime 2025-01-30 10:49:06 - End Time 2025-01-30 13:49:06 [2025-01-30 13:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364074', 'tblTempUsageDetail_20' ) start [2025-01-30 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364074', 'tblTempUsageDetail_20' ) end [2025-01-30 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364074', 'tblTempVendorCDR_20' ) start [2025-01-30 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364074', 'tblTempVendorCDR_20' ) end [2025-01-30 13:49:27] Production.INFO: ProcessCDR(1,14364074,1,1,2) [2025-01-30 13:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364074', 'tblTempUsageDetail_20' ) start [2025-01-30 13:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364074', 'tblTempUsageDetail_20' ) end [2025-01-30 13:49:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:49:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:49:33] Production.INFO: ==31094== Releasing lock... [2025-01-30 13:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:49:33] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:50:06 [end_date_ymd] => 2025-01-30 13:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 10:50:06' and `end` < '2025-01-30 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-30 13:50:25] Production.INFO: count ==4930 [2025-01-30 13:50:27] Production.ERROR: pbx CDR StartTime 2025-01-30 10:50:06 - End Time 2025-01-30 13:50:06 [2025-01-30 13:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364079', 'tblTempUsageDetail_20' ) start [2025-01-30 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364079', 'tblTempUsageDetail_20' ) end [2025-01-30 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364079', 'tblTempVendorCDR_20' ) start [2025-01-30 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364079', 'tblTempVendorCDR_20' ) end [2025-01-30 13:50:27] Production.INFO: ProcessCDR(1,14364079,1,1,2) [2025-01-30 13:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364079', 'tblTempUsageDetail_20' ) start [2025-01-30 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364079', 'tblTempUsageDetail_20' ) end [2025-01-30 13:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:50:32] Production.INFO: ==31176== Releasing lock... [2025-01-30 13:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:50:32] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:51:05 [end_date_ymd] => 2025-01-30 13:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:51:05' and `end` < '2025-01-30 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-30 13:51:23] Production.INFO: count ==4969 [2025-01-30 13:51:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:51:05 - End Time 2025-01-30 13:51:05 [2025-01-30 13:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364085', 'tblTempUsageDetail_20' ) start [2025-01-30 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364085', 'tblTempUsageDetail_20' ) end [2025-01-30 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364085', 'tblTempVendorCDR_20' ) start [2025-01-30 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364085', 'tblTempVendorCDR_20' ) end [2025-01-30 13:51:25] Production.INFO: ProcessCDR(1,14364085,1,1,2) [2025-01-30 13:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364085', 'tblTempUsageDetail_20' ) start [2025-01-30 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364085', 'tblTempUsageDetail_20' ) end [2025-01-30 13:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:51:30] Production.INFO: ==31295== Releasing lock... [2025-01-30 13:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:51:30] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:52:05 [end_date_ymd] => 2025-01-30 13:52:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:52:05' and `end` < '2025-01-30 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-30 13:52:22] Production.INFO: count ==4966 [2025-01-30 13:52:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:52:05 - End Time 2025-01-30 13:52:05 [2025-01-30 13:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364090', 'tblTempUsageDetail_20' ) start [2025-01-30 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364090', 'tblTempUsageDetail_20' ) end [2025-01-30 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364090', 'tblTempVendorCDR_20' ) start [2025-01-30 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364090', 'tblTempVendorCDR_20' ) end [2025-01-30 13:52:24] Production.INFO: ProcessCDR(1,14364090,1,1,2) [2025-01-30 13:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364090', 'tblTempUsageDetail_20' ) start [2025-01-30 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364090', 'tblTempUsageDetail_20' ) end [2025-01-30 13:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:52:29] Production.INFO: ==31375== Releasing lock... [2025-01-30 13:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:52:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:53:06 [end_date_ymd] => 2025-01-30 13:53:06 [RateCDR] => 1 ) [2025-01-30 13:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:53:06' and `end` < '2025-01-30 13:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:53:22] Production.INFO: count ==4960 [2025-01-30 13:53:24] Production.ERROR: pbx CDR StartTime 2025-01-30 10:53:06 - End Time 2025-01-30 13:53:06 [2025-01-30 13:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364095', 'tblTempUsageDetail_20' ) start [2025-01-30 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364095', 'tblTempUsageDetail_20' ) end [2025-01-30 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364095', 'tblTempVendorCDR_20' ) start [2025-01-30 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364095', 'tblTempVendorCDR_20' ) end [2025-01-30 13:53:24] Production.INFO: ProcessCDR(1,14364095,1,1,2) [2025-01-30 13:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364095', 'tblTempUsageDetail_20' ) start [2025-01-30 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364095', 'tblTempUsageDetail_20' ) end [2025-01-30 13:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:53:29] Production.INFO: ==31456== Releasing lock... [2025-01-30 13:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:53:29] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:54:05 [end_date_ymd] => 2025-01-30 13:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:54:05' and `end` < '2025-01-30 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-30 13:54:33] Production.INFO: count ==4951 [2025-01-30 13:54:35] Production.ERROR: pbx CDR StartTime 2025-01-30 10:54:05 - End Time 2025-01-30 13:54:05 [2025-01-30 13:54:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364100', 'tblTempUsageDetail_20' ) start [2025-01-30 13:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364100', 'tblTempUsageDetail_20' ) end [2025-01-30 13:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364100', 'tblTempVendorCDR_20' ) start [2025-01-30 13:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364100', 'tblTempVendorCDR_20' ) end [2025-01-30 13:54:36] Production.INFO: ProcessCDR(1,14364100,1,1,2) [2025-01-30 13:54:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:54:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:54:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:54:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364100', 'tblTempUsageDetail_20' ) start [2025-01-30 13:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364100', 'tblTempUsageDetail_20' ) end [2025-01-30 13:54:41] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:54:41] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:54:41] Production.INFO: ==31534== Releasing lock... [2025-01-30 13:54:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:54:41] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:55:05 [end_date_ymd] => 2025-01-30 13:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:55:05' and `end` < '2025-01-30 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-30 13:55:34] Production.INFO: count ==4937 [2025-01-30 13:55:36] Production.ERROR: pbx CDR StartTime 2025-01-30 10:55:05 - End Time 2025-01-30 13:55:05 [2025-01-30 13:55:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364105', 'tblTempUsageDetail_20' ) start [2025-01-30 13:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364105', 'tblTempUsageDetail_20' ) end [2025-01-30 13:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364105', 'tblTempVendorCDR_20' ) start [2025-01-30 13:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364105', 'tblTempVendorCDR_20' ) end [2025-01-30 13:55:37] Production.INFO: ProcessCDR(1,14364105,1,1,2) [2025-01-30 13:55:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:55:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:55:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:55:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:55:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364105', 'tblTempUsageDetail_20' ) start [2025-01-30 13:55:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364105', 'tblTempUsageDetail_20' ) end [2025-01-30 13:55:42] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:55:42] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:55:42] Production.INFO: ==31609== Releasing lock... [2025-01-30 13:55:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:55:42] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:56:05 [end_date_ymd] => 2025-01-30 13:56:05 [RateCDR] => 1 ) [2025-01-30 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:56:05' and `end` < '2025-01-30 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:56:26] Production.INFO: count ==4916 [2025-01-30 13:56:28] Production.ERROR: pbx CDR StartTime 2025-01-30 10:56:05 - End Time 2025-01-30 13:56:05 [2025-01-30 13:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364110', 'tblTempUsageDetail_20' ) start [2025-01-30 13:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364110', 'tblTempUsageDetail_20' ) end [2025-01-30 13:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364110', 'tblTempVendorCDR_20' ) start [2025-01-30 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364110', 'tblTempVendorCDR_20' ) end [2025-01-30 13:56:29] Production.INFO: ProcessCDR(1,14364110,1,1,2) [2025-01-30 13:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364110', 'tblTempUsageDetail_20' ) start [2025-01-30 13:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364110', 'tblTempUsageDetail_20' ) end [2025-01-30 13:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:56:33] Production.INFO: ==31685== Releasing lock... [2025-01-30 13:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:56:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:57:06 [end_date_ymd] => 2025-01-30 13:57:06 [RateCDR] => 1 ) [2025-01-30 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-30 10:57:06' and `end` < '2025-01-30 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-30 13:57:24] Production.INFO: count ==4928 [2025-01-30 13:57:26] Production.ERROR: pbx CDR StartTime 2025-01-30 10:57:06 - End Time 2025-01-30 13:57:06 [2025-01-30 13:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364115', 'tblTempUsageDetail_20' ) start [2025-01-30 13:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364115', 'tblTempUsageDetail_20' ) end [2025-01-30 13:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364115', 'tblTempVendorCDR_20' ) start [2025-01-30 13:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364115', 'tblTempVendorCDR_20' ) end [2025-01-30 13:57:26] Production.INFO: ProcessCDR(1,14364115,1,1,2) [2025-01-30 13:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364115', 'tblTempUsageDetail_20' ) start [2025-01-30 13:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364115', 'tblTempUsageDetail_20' ) end [2025-01-30 13:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:57:31] Production.INFO: ==31761== Releasing lock... [2025-01-30 13:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:57:31] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:58:05 [end_date_ymd] => 2025-01-30 13:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 10:58:05' and `end` < '2025-01-30 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-30 13:58:23] Production.INFO: count ==4939 [2025-01-30 13:58:26] Production.ERROR: pbx CDR StartTime 2025-01-30 10:58:05 - End Time 2025-01-30 13:58:05 [2025-01-30 13:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364120', 'tblTempUsageDetail_20' ) start [2025-01-30 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364120', 'tblTempUsageDetail_20' ) end [2025-01-30 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364120', 'tblTempVendorCDR_20' ) start [2025-01-30 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364120', 'tblTempVendorCDR_20' ) end [2025-01-30 13:58:26] Production.INFO: ProcessCDR(1,14364120,1,1,2) [2025-01-30 13:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364120', 'tblTempUsageDetail_20' ) start [2025-01-30 13:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364120', 'tblTempUsageDetail_20' ) end [2025-01-30 13:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:58:31] Production.INFO: ==31835== Releasing lock... [2025-01-30 13:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:58:31] Production.INFO: 65 MB #Memory Used# [2025-01-30 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 10:59:06 [end_date_ymd] => 2025-01-30 13:59:06 [RateCDR] => 1 ) [2025-01-30 13:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 10:59:06' and `end` < '2025-01-30 13:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 13:59:23] Production.INFO: count ==4940 [2025-01-30 13:59:25] Production.ERROR: pbx CDR StartTime 2025-01-30 10:59:06 - End Time 2025-01-30 13:59:06 [2025-01-30 13:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364125', 'tblTempUsageDetail_20' ) start [2025-01-30 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364125', 'tblTempUsageDetail_20' ) end [2025-01-30 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364125', 'tblTempVendorCDR_20' ) start [2025-01-30 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364125', 'tblTempVendorCDR_20' ) end [2025-01-30 13:59:26] Production.INFO: ProcessCDR(1,14364125,1,1,2) [2025-01-30 13:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 13:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 13:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364125', 'tblTempUsageDetail_20' ) start [2025-01-30 13:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364125', 'tblTempUsageDetail_20' ) end [2025-01-30 13:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 13:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 13:59:31] Production.INFO: ==31909== Releasing lock... [2025-01-30 13:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 13:59:31] Production.INFO: 65 MB #Memory Used# [2025-01-30 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:00:07 [end_date_ymd] => 2025-01-30 14:00:07 [RateCDR] => 1 ) [2025-01-30 14: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-30 11:00:07' and `end` < '2025-01-30 14: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-30 14:00:27] Production.INFO: count ==4964 [2025-01-30 14:00:29] Production.ERROR: pbx CDR StartTime 2025-01-30 11:00:07 - End Time 2025-01-30 14:00:07 [2025-01-30 14:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364131', 'tblTempUsageDetail_20' ) start [2025-01-30 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364131', 'tblTempUsageDetail_20' ) end [2025-01-30 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364131', 'tblTempVendorCDR_20' ) start [2025-01-30 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364131', 'tblTempVendorCDR_20' ) end [2025-01-30 14:00:29] Production.INFO: ProcessCDR(1,14364131,1,1,2) [2025-01-30 14:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364131', 'tblTempUsageDetail_20' ) start [2025-01-30 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364131', 'tblTempUsageDetail_20' ) end [2025-01-30 14:00:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:00:35] Production.INFO: ==31985== Releasing lock... [2025-01-30 14:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:00:35] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:01:05 [end_date_ymd] => 2025-01-30 14:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:01:05' and `end` < '2025-01-30 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-30 14:01:23] Production.INFO: count ==4971 [2025-01-30 14:01:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:01:05 - End Time 2025-01-30 14:01:05 [2025-01-30 14:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364136', 'tblTempUsageDetail_20' ) start [2025-01-30 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364136', 'tblTempUsageDetail_20' ) end [2025-01-30 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364136', 'tblTempVendorCDR_20' ) start [2025-01-30 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364136', 'tblTempVendorCDR_20' ) end [2025-01-30 14:01:25] Production.INFO: ProcessCDR(1,14364136,1,1,2) [2025-01-30 14:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364136', 'tblTempUsageDetail_20' ) start [2025-01-30 14:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364136', 'tblTempUsageDetail_20' ) end [2025-01-30 14:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:01:31] Production.INFO: ==32070== Releasing lock... [2025-01-30 14:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:01:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:02:06 [end_date_ymd] => 2025-01-30 14:02:06 [RateCDR] => 1 ) [2025-01-30 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:02:06' and `end` < '2025-01-30 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:02:24] Production.INFO: count ==4971 [2025-01-30 14:02:27] Production.ERROR: pbx CDR StartTime 2025-01-30 11:02:06 - End Time 2025-01-30 14:02:06 [2025-01-30 14:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364141', 'tblTempUsageDetail_20' ) start [2025-01-30 14:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364141', 'tblTempUsageDetail_20' ) end [2025-01-30 14:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364141', 'tblTempVendorCDR_20' ) start [2025-01-30 14:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364141', 'tblTempVendorCDR_20' ) end [2025-01-30 14:02:27] Production.INFO: ProcessCDR(1,14364141,1,1,2) [2025-01-30 14:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364141', 'tblTempUsageDetail_20' ) start [2025-01-30 14:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364141', 'tblTempUsageDetail_20' ) end [2025-01-30 14:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:02:33] Production.INFO: ==32145== Releasing lock... [2025-01-30 14:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:02:33] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:03:05 [end_date_ymd] => 2025-01-30 14:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:03:05' and `end` < '2025-01-30 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-30 14:03:24] Production.INFO: count ==4989 [2025-01-30 14:03:26] Production.ERROR: pbx CDR StartTime 2025-01-30 11:03:05 - End Time 2025-01-30 14:03:05 [2025-01-30 14:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364146', 'tblTempUsageDetail_20' ) start [2025-01-30 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364146', 'tblTempUsageDetail_20' ) end [2025-01-30 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364146', 'tblTempVendorCDR_20' ) start [2025-01-30 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364146', 'tblTempVendorCDR_20' ) end [2025-01-30 14:03:27] Production.INFO: ProcessCDR(1,14364146,1,1,2) [2025-01-30 14:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364146', 'tblTempUsageDetail_20' ) start [2025-01-30 14:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364146', 'tblTempUsageDetail_20' ) end [2025-01-30 14:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:03:32] Production.INFO: ==32217== Releasing lock... [2025-01-30 14:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:03:32] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 14:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:04:07 [end_date_ymd] => 2025-01-30 14:04:07 [RateCDR] => 1 ) [2025-01-30 14:04:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:04:07' and `end` < '2025-01-30 14:04:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:04:20] Production.INFO: count ==5003 [2025-01-30 14:04:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:04:07 - End Time 2025-01-30 14:04:07 [2025-01-30 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364151', 'tblTempUsageDetail_20' ) start [2025-01-30 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364151', 'tblTempUsageDetail_20' ) end [2025-01-30 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364151', 'tblTempVendorCDR_20' ) start [2025-01-30 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364151', 'tblTempVendorCDR_20' ) end [2025-01-30 14:04:23] Production.INFO: ProcessCDR(1,14364151,1,1,2) [2025-01-30 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364151', 'tblTempUsageDetail_20' ) start [2025-01-30 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364151', 'tblTempUsageDetail_20' ) end [2025-01-30 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:04:28] Production.INFO: ==32302== Releasing lock... [2025-01-30 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:04:28] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:05:06 [end_date_ymd] => 2025-01-30 14:05:06 [RateCDR] => 1 ) [2025-01-30 14: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-30 11:05:06' and `end` < '2025-01-30 14: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-30 14:05:32] Production.INFO: count ==4999 [2025-01-30 14:05:34] Production.ERROR: pbx CDR StartTime 2025-01-30 11:05:06 - End Time 2025-01-30 14:05:06 [2025-01-30 14:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364156', 'tblTempUsageDetail_20' ) start [2025-01-30 14:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364156', 'tblTempUsageDetail_20' ) end [2025-01-30 14:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364156', 'tblTempVendorCDR_20' ) start [2025-01-30 14:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364156', 'tblTempVendorCDR_20' ) end [2025-01-30 14:05:35] Production.INFO: ProcessCDR(1,14364156,1,1,2) [2025-01-30 14:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:05:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364156', 'tblTempUsageDetail_20' ) start [2025-01-30 14:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364156', 'tblTempUsageDetail_20' ) end [2025-01-30 14:05:40] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:05:40] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:05:40] Production.INFO: ==32379== Releasing lock... [2025-01-30 14:05:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:05:40] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:06:05 [end_date_ymd] => 2025-01-30 14:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:06:05' and `end` < '2025-01-30 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-30 14:06:24] Production.INFO: count ==4989 [2025-01-30 14:06:27] Production.ERROR: pbx CDR StartTime 2025-01-30 11:06:05 - End Time 2025-01-30 14:06:05 [2025-01-30 14:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364161', 'tblTempUsageDetail_20' ) start [2025-01-30 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364161', 'tblTempUsageDetail_20' ) end [2025-01-30 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364161', 'tblTempVendorCDR_20' ) start [2025-01-30 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364161', 'tblTempVendorCDR_20' ) end [2025-01-30 14:06:27] Production.INFO: ProcessCDR(1,14364161,1,1,2) [2025-01-30 14:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364161', 'tblTempUsageDetail_20' ) start [2025-01-30 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364161', 'tblTempUsageDetail_20' ) end [2025-01-30 14:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:06:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:06:33] Production.INFO: ==32489== Releasing lock... [2025-01-30 14:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:06:33] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:07:05 [end_date_ymd] => 2025-01-30 14:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:07:05' and `end` < '2025-01-30 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-30 14:07:23] Production.INFO: count ==5025 [2025-01-30 14:07:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:07:05 - End Time 2025-01-30 14:07:05 [2025-01-30 14:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364166', 'tblTempUsageDetail_20' ) start [2025-01-30 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364166', 'tblTempUsageDetail_20' ) end [2025-01-30 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364166', 'tblTempVendorCDR_20' ) start [2025-01-30 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364166', 'tblTempVendorCDR_20' ) end [2025-01-30 14:07:25] Production.INFO: ProcessCDR(1,14364166,1,1,2) [2025-01-30 14:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364166', 'tblTempUsageDetail_20' ) start [2025-01-30 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364166', 'tblTempUsageDetail_20' ) end [2025-01-30 14:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:07:31] Production.INFO: ==32559== Releasing lock... [2025-01-30 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:07:31] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:08:06 [end_date_ymd] => 2025-01-30 14:08:06 [RateCDR] => 1 ) [2025-01-30 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:08:06' and `end` < '2025-01-30 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:08:22] Production.INFO: count ==5008 [2025-01-30 14:08:24] Production.ERROR: pbx CDR StartTime 2025-01-30 11:08:06 - End Time 2025-01-30 14:08:06 [2025-01-30 14:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364171', 'tblTempUsageDetail_20' ) start [2025-01-30 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364171', 'tblTempUsageDetail_20' ) end [2025-01-30 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364171', 'tblTempVendorCDR_20' ) start [2025-01-30 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364171', 'tblTempVendorCDR_20' ) end [2025-01-30 14:08:24] Production.INFO: ProcessCDR(1,14364171,1,1,2) [2025-01-30 14:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364171', 'tblTempUsageDetail_20' ) start [2025-01-30 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364171', 'tblTempUsageDetail_20' ) end [2025-01-30 14:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:08:30] Production.INFO: ==32630== Releasing lock... [2025-01-30 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:08:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:09:06 [end_date_ymd] => 2025-01-30 14:09:06 [RateCDR] => 1 ) [2025-01-30 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:09:06' and `end` < '2025-01-30 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:09:21] Production.INFO: count ==4985 [2025-01-30 14:09:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:09:06 - End Time 2025-01-30 14:09:06 [2025-01-30 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364176', 'tblTempUsageDetail_20' ) start [2025-01-30 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364176', 'tblTempUsageDetail_20' ) end [2025-01-30 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364176', 'tblTempVendorCDR_20' ) start [2025-01-30 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364176', 'tblTempVendorCDR_20' ) end [2025-01-30 14:09:23] Production.INFO: ProcessCDR(1,14364176,1,1,2) [2025-01-30 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364176', 'tblTempUsageDetail_20' ) start [2025-01-30 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364176', 'tblTempUsageDetail_20' ) end [2025-01-30 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:09:28] Production.INFO: ==32700== Releasing lock... [2025-01-30 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:09:28] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:10:06 [end_date_ymd] => 2025-01-30 14:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 11:10:06' and `end` < '2025-01-30 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-30 14:10:25] Production.INFO: count ==5001 [2025-01-30 14:10:27] Production.ERROR: pbx CDR StartTime 2025-01-30 11:10:06 - End Time 2025-01-30 14:10:06 [2025-01-30 14:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364181', 'tblTempUsageDetail_20' ) start [2025-01-30 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364181', 'tblTempUsageDetail_20' ) end [2025-01-30 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364181', 'tblTempVendorCDR_20' ) start [2025-01-30 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364181', 'tblTempVendorCDR_20' ) end [2025-01-30 14:10:27] Production.INFO: ProcessCDR(1,14364181,1,1,2) [2025-01-30 14:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364181', 'tblTempUsageDetail_20' ) start [2025-01-30 14:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364181', 'tblTempUsageDetail_20' ) end [2025-01-30 14:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:10:33] Production.INFO: ==307== Releasing lock... [2025-01-30 14:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:10:33] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:11:05 [end_date_ymd] => 2025-01-30 14:11:05 [RateCDR] => 1 ) [2025-01-30 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:11:05' and `end` < '2025-01-30 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:11:24] Production.INFO: count ==5032 [2025-01-30 14:11:27] Production.ERROR: pbx CDR StartTime 2025-01-30 11:11:05 - End Time 2025-01-30 14:11:05 [2025-01-30 14:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364187', 'tblTempUsageDetail_20' ) start [2025-01-30 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364187', 'tblTempUsageDetail_20' ) end [2025-01-30 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364187', 'tblTempVendorCDR_20' ) start [2025-01-30 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364187', 'tblTempVendorCDR_20' ) end [2025-01-30 14:11:27] Production.INFO: ProcessCDR(1,14364187,1,1,2) [2025-01-30 14:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364187', 'tblTempUsageDetail_20' ) start [2025-01-30 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364187', 'tblTempUsageDetail_20' ) end [2025-01-30 14:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:11:32] Production.INFO: ==399== Releasing lock... [2025-01-30 14:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:11:32] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:12:06 [end_date_ymd] => 2025-01-30 14:12:06 [RateCDR] => 1 ) [2025-01-30 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:12:06' and `end` < '2025-01-30 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:12:27] Production.INFO: count ==5042 [2025-01-30 14:12:29] Production.ERROR: pbx CDR StartTime 2025-01-30 11:12:06 - End Time 2025-01-30 14:12:06 [2025-01-30 14:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364192', 'tblTempUsageDetail_20' ) start [2025-01-30 14:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364192', 'tblTempUsageDetail_20' ) end [2025-01-30 14:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364192', 'tblTempVendorCDR_20' ) start [2025-01-30 14:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364192', 'tblTempVendorCDR_20' ) end [2025-01-30 14:12:29] Production.INFO: ProcessCDR(1,14364192,1,1,2) [2025-01-30 14:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364192', 'tblTempUsageDetail_20' ) start [2025-01-30 14:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364192', 'tblTempUsageDetail_20' ) end [2025-01-30 14:12:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:12:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:12:35] Production.INFO: ==474== Releasing lock... [2025-01-30 14:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:12:35] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:13:05 [end_date_ymd] => 2025-01-30 14:13:05 [RateCDR] => 1 ) [2025-01-30 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:13:05' and `end` < '2025-01-30 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:13:24] Production.INFO: count ==5053 [2025-01-30 14:13:27] Production.ERROR: pbx CDR StartTime 2025-01-30 11:13:05 - End Time 2025-01-30 14:13:05 [2025-01-30 14:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364197', 'tblTempUsageDetail_20' ) start [2025-01-30 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364197', 'tblTempUsageDetail_20' ) end [2025-01-30 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364197', 'tblTempVendorCDR_20' ) start [2025-01-30 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364197', 'tblTempVendorCDR_20' ) end [2025-01-30 14:13:27] Production.INFO: ProcessCDR(1,14364197,1,1,2) [2025-01-30 14:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364197', 'tblTempUsageDetail_20' ) start [2025-01-30 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364197', 'tblTempUsageDetail_20' ) end [2025-01-30 14:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:13:32] Production.INFO: ==547== Releasing lock... [2025-01-30 14:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:13:32] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:14:06 [end_date_ymd] => 2025-01-30 14:14:06 [RateCDR] => 1 ) [2025-01-30 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:14:06' and `end` < '2025-01-30 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:14:21] Production.INFO: count ==5048 [2025-01-30 14:14:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:14:06 - End Time 2025-01-30 14:14:06 [2025-01-30 14:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364202', 'tblTempUsageDetail_20' ) start [2025-01-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364202', 'tblTempUsageDetail_20' ) end [2025-01-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364202', 'tblTempVendorCDR_20' ) start [2025-01-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364202', 'tblTempVendorCDR_20' ) end [2025-01-30 14:14:23] Production.INFO: ProcessCDR(1,14364202,1,1,2) [2025-01-30 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364202', 'tblTempUsageDetail_20' ) start [2025-01-30 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364202', 'tblTempUsageDetail_20' ) end [2025-01-30 14:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:14:29] Production.INFO: ==627== Releasing lock... [2025-01-30 14:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:14:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:15:06 [end_date_ymd] => 2025-01-30 14:15:06 [RateCDR] => 1 ) [2025-01-30 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:15:06' and `end` < '2025-01-30 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:15:28] Production.INFO: count ==5069 [2025-01-30 14:15:30] Production.ERROR: pbx CDR StartTime 2025-01-30 11:15:06 - End Time 2025-01-30 14:15:06 [2025-01-30 14:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364207', 'tblTempUsageDetail_20' ) start [2025-01-30 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364207', 'tblTempUsageDetail_20' ) end [2025-01-30 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364207', 'tblTempVendorCDR_20' ) start [2025-01-30 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364207', 'tblTempVendorCDR_20' ) end [2025-01-30 14:15:30] Production.INFO: ProcessCDR(1,14364207,1,1,2) [2025-01-30 14:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364207', 'tblTempUsageDetail_20' ) start [2025-01-30 14:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364207', 'tblTempUsageDetail_20' ) end [2025-01-30 14:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:15:36] Production.INFO: ==722== Releasing lock... [2025-01-30 14:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:15:36] Production.INFO: 66 MB #Memory Used# [2025-01-30 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:16:06 [end_date_ymd] => 2025-01-30 14:16:06 [RateCDR] => 1 ) [2025-01-30 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:16:06' and `end` < '2025-01-30 14:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:16:23] Production.INFO: count ==5054 [2025-01-30 14:16:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:16:06 - End Time 2025-01-30 14:16:06 [2025-01-30 14:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364212', 'tblTempUsageDetail_20' ) start [2025-01-30 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364212', 'tblTempUsageDetail_20' ) end [2025-01-30 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364212', 'tblTempVendorCDR_20' ) start [2025-01-30 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364212', 'tblTempVendorCDR_20' ) end [2025-01-30 14:16:26] Production.INFO: ProcessCDR(1,14364212,1,1,2) [2025-01-30 14:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364212', 'tblTempUsageDetail_20' ) start [2025-01-30 14:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364212', 'tblTempUsageDetail_20' ) end [2025-01-30 14:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:16:30] Production.INFO: ==796== Releasing lock... [2025-01-30 14:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:16:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:17:05 [end_date_ymd] => 2025-01-30 14:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:17:05' and `end` < '2025-01-30 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-30 14:17:23] Production.INFO: count ==5052 [2025-01-30 14:17:26] Production.ERROR: pbx CDR StartTime 2025-01-30 11:17:05 - End Time 2025-01-30 14:17:05 [2025-01-30 14:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364213', 'tblTempUsageDetail_20' ) start [2025-01-30 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364213', 'tblTempUsageDetail_20' ) end [2025-01-30 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364213', 'tblTempVendorCDR_20' ) start [2025-01-30 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364213', 'tblTempVendorCDR_20' ) end [2025-01-30 14:17:26] Production.INFO: ProcessCDR(1,14364213,1,1,2) [2025-01-30 14:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364213', 'tblTempUsageDetail_20' ) start [2025-01-30 14:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364213', 'tblTempUsageDetail_20' ) end [2025-01-30 14:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:17:31] Production.INFO: ==865== Releasing lock... [2025-01-30 14:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:17:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:18:06 [end_date_ymd] => 2025-01-30 14:18:06 [RateCDR] => 1 ) [2025-01-30 14: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-30 11:18:06' and `end` < '2025-01-30 14: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-30 14:18:20] Production.INFO: count ==5050 [2025-01-30 14:18:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:18:06 - End Time 2025-01-30 14:18:06 [2025-01-30 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364222', 'tblTempUsageDetail_20' ) start [2025-01-30 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364222', 'tblTempUsageDetail_20' ) end [2025-01-30 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364222', 'tblTempVendorCDR_20' ) start [2025-01-30 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364222', 'tblTempVendorCDR_20' ) end [2025-01-30 14:18:23] Production.INFO: ProcessCDR(1,14364222,1,1,2) [2025-01-30 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364222', 'tblTempUsageDetail_20' ) start [2025-01-30 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364222', 'tblTempUsageDetail_20' ) end [2025-01-30 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:18:28] Production.INFO: ==939== Releasing lock... [2025-01-30 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:18:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:19:05 [end_date_ymd] => 2025-01-30 14:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:19:05' and `end` < '2025-01-30 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-30 14:19:20] Production.INFO: count ==5084 [2025-01-30 14:19:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:19:05 - End Time 2025-01-30 14:19:05 [2025-01-30 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364227', 'tblTempUsageDetail_20' ) start [2025-01-30 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364227', 'tblTempUsageDetail_20' ) end [2025-01-30 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364227', 'tblTempVendorCDR_20' ) start [2025-01-30 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364227', 'tblTempVendorCDR_20' ) end [2025-01-30 14:19:23] Production.INFO: ProcessCDR(1,14364227,1,1,2) [2025-01-30 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364227', 'tblTempUsageDetail_20' ) start [2025-01-30 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364227', 'tblTempUsageDetail_20' ) end [2025-01-30 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:19:28] Production.INFO: ==1016== Releasing lock... [2025-01-30 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:19:28] Production.INFO: 66 MB #Memory Used# [2025-01-30 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:20:06 [end_date_ymd] => 2025-01-30 14:20:06 [RateCDR] => 1 ) [2025-01-30 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:20:06' and `end` < '2025-01-30 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:20:27] Production.INFO: count ==5103 [2025-01-30 14:20:29] Production.ERROR: pbx CDR StartTime 2025-01-30 11:20:06 - End Time 2025-01-30 14:20:06 [2025-01-30 14:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364233', 'tblTempUsageDetail_20' ) start [2025-01-30 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364233', 'tblTempUsageDetail_20' ) end [2025-01-30 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364233', 'tblTempVendorCDR_20' ) start [2025-01-30 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364233', 'tblTempVendorCDR_20' ) end [2025-01-30 14:20:29] Production.INFO: ProcessCDR(1,14364233,1,1,2) [2025-01-30 14:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364233', 'tblTempUsageDetail_20' ) start [2025-01-30 14:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364233', 'tblTempUsageDetail_20' ) end [2025-01-30 14:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:20:35] Production.INFO: ==1090== Releasing lock... [2025-01-30 14:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:20:35] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:21:05 [end_date_ymd] => 2025-01-30 14:21:05 [RateCDR] => 1 ) [2025-01-30 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:21:05' and `end` < '2025-01-30 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:21:31] Production.INFO: count ==5139 [2025-01-30 14:21:34] Production.ERROR: pbx CDR StartTime 2025-01-30 11:21:05 - End Time 2025-01-30 14:21:05 [2025-01-30 14:21:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364238', 'tblTempUsageDetail_20' ) start [2025-01-30 14:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364238', 'tblTempUsageDetail_20' ) end [2025-01-30 14:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364238', 'tblTempVendorCDR_20' ) start [2025-01-30 14:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364238', 'tblTempVendorCDR_20' ) end [2025-01-30 14:21:34] Production.INFO: ProcessCDR(1,14364238,1,1,2) [2025-01-30 14:21:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:21:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:21:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:21:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364238', 'tblTempUsageDetail_20' ) start [2025-01-30 14:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364238', 'tblTempUsageDetail_20' ) end [2025-01-30 14:21:39] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:21:39] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:21:39] Production.INFO: ==1168== Releasing lock... [2025-01-30 14:21:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:21:39] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:22:06 [end_date_ymd] => 2025-01-30 14:22:06 [RateCDR] => 1 ) [2025-01-30 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:22:06' and `end` < '2025-01-30 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:22:25] Production.INFO: count ==5124 [2025-01-30 14:22:27] Production.ERROR: pbx CDR StartTime 2025-01-30 11:22:06 - End Time 2025-01-30 14:22:06 [2025-01-30 14:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364243', 'tblTempUsageDetail_20' ) start [2025-01-30 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364243', 'tblTempUsageDetail_20' ) end [2025-01-30 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364243', 'tblTempVendorCDR_20' ) start [2025-01-30 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364243', 'tblTempVendorCDR_20' ) end [2025-01-30 14:22:27] Production.INFO: ProcessCDR(1,14364243,1,1,2) [2025-01-30 14:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364243', 'tblTempUsageDetail_20' ) start [2025-01-30 14:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364243', 'tblTempUsageDetail_20' ) end [2025-01-30 14:22:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:22:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:22:33] Production.INFO: ==1290== Releasing lock... [2025-01-30 14:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:22:33] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:23:05 [end_date_ymd] => 2025-01-30 14:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:23:05' and `end` < '2025-01-30 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-30 14:23:22] Production.INFO: count ==5113 [2025-01-30 14:23:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:23:05 - End Time 2025-01-30 14:23:05 [2025-01-30 14:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364248', 'tblTempUsageDetail_20' ) start [2025-01-30 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364248', 'tblTempUsageDetail_20' ) end [2025-01-30 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364248', 'tblTempVendorCDR_20' ) start [2025-01-30 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364248', 'tblTempVendorCDR_20' ) end [2025-01-30 14:23:25] Production.INFO: ProcessCDR(1,14364248,1,1,2) [2025-01-30 14:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364248', 'tblTempUsageDetail_20' ) start [2025-01-30 14:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364248', 'tblTempUsageDetail_20' ) end [2025-01-30 14:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:23:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:23:30] Production.INFO: ==1369== Releasing lock... [2025-01-30 14:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:23:30] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:24:06 [end_date_ymd] => 2025-01-30 14:24:06 [RateCDR] => 1 ) [2025-01-30 14: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-30 11:24:06' and `end` < '2025-01-30 14: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-30 14:24:20] Production.INFO: count ==5119 [2025-01-30 14:24:22] Production.ERROR: pbx CDR StartTime 2025-01-30 11:24:06 - End Time 2025-01-30 14:24:06 [2025-01-30 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364253', 'tblTempUsageDetail_20' ) start [2025-01-30 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364253', 'tblTempUsageDetail_20' ) end [2025-01-30 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364253', 'tblTempVendorCDR_20' ) start [2025-01-30 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364253', 'tblTempVendorCDR_20' ) end [2025-01-30 14:24:23] Production.INFO: ProcessCDR(1,14364253,1,1,2) [2025-01-30 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364253', 'tblTempUsageDetail_20' ) start [2025-01-30 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364253', 'tblTempUsageDetail_20' ) end [2025-01-30 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:24:29] Production.INFO: ==1439== Releasing lock... [2025-01-30 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:24:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:25:06 [end_date_ymd] => 2025-01-30 14:25:06 [RateCDR] => 1 ) [2025-01-30 14: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-30 11:25:06' and `end` < '2025-01-30 14: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-30 14:25:20] Production.INFO: count ==5181 [2025-01-30 14:25:22] Production.ERROR: pbx CDR StartTime 2025-01-30 11:25:06 - End Time 2025-01-30 14:25:06 [2025-01-30 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364258', 'tblTempUsageDetail_20' ) start [2025-01-30 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364258', 'tblTempUsageDetail_20' ) end [2025-01-30 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364258', 'tblTempVendorCDR_20' ) start [2025-01-30 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364258', 'tblTempVendorCDR_20' ) end [2025-01-30 14:25:22] Production.INFO: ProcessCDR(1,14364258,1,1,2) [2025-01-30 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364258', 'tblTempUsageDetail_20' ) start [2025-01-30 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364258', 'tblTempUsageDetail_20' ) end [2025-01-30 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:25:28] Production.INFO: ==1540== Releasing lock... [2025-01-30 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:25:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:26:06 [end_date_ymd] => 2025-01-30 14:26:06 [RateCDR] => 1 ) [2025-01-30 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:26:06' and `end` < '2025-01-30 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:26:22] Production.INFO: count ==5183 [2025-01-30 14:26:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:26:06 - End Time 2025-01-30 14:26:06 [2025-01-30 14:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364263', 'tblTempUsageDetail_20' ) start [2025-01-30 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364263', 'tblTempUsageDetail_20' ) end [2025-01-30 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364263', 'tblTempVendorCDR_20' ) start [2025-01-30 14:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364263', 'tblTempVendorCDR_20' ) end [2025-01-30 14:26:25] Production.INFO: ProcessCDR(1,14364263,1,1,2) [2025-01-30 14:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364263', 'tblTempUsageDetail_20' ) start [2025-01-30 14:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364263', 'tblTempUsageDetail_20' ) end [2025-01-30 14:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:26:30] Production.INFO: ==1618== Releasing lock... [2025-01-30 14:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:26:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:27:05 [end_date_ymd] => 2025-01-30 14:27:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:27:05' and `end` < '2025-01-30 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-30 14:27:31] Production.INFO: count ==5208 [2025-01-30 14:27:33] Production.ERROR: pbx CDR StartTime 2025-01-30 11:27:05 - End Time 2025-01-30 14:27:05 [2025-01-30 14:27:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364268', 'tblTempUsageDetail_20' ) start [2025-01-30 14:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364268', 'tblTempUsageDetail_20' ) end [2025-01-30 14:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364268', 'tblTempVendorCDR_20' ) start [2025-01-30 14:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364268', 'tblTempVendorCDR_20' ) end [2025-01-30 14:27:34] Production.INFO: ProcessCDR(1,14364268,1,1,2) [2025-01-30 14:27:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364268', 'tblTempUsageDetail_20' ) start [2025-01-30 14:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364268', 'tblTempUsageDetail_20' ) end [2025-01-30 14:27:39] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:27:39] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:27:39] Production.INFO: ==1691== Releasing lock... [2025-01-30 14:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:27:39] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:28:05 [end_date_ymd] => 2025-01-30 14:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:28:05' and `end` < '2025-01-30 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-30 14:28:24] Production.INFO: count ==5215 [2025-01-30 14:28:26] Production.ERROR: pbx CDR StartTime 2025-01-30 11:28:05 - End Time 2025-01-30 14:28:05 [2025-01-30 14:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364273', 'tblTempUsageDetail_20' ) start [2025-01-30 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364273', 'tblTempUsageDetail_20' ) end [2025-01-30 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364273', 'tblTempVendorCDR_20' ) start [2025-01-30 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364273', 'tblTempVendorCDR_20' ) end [2025-01-30 14:28:26] Production.INFO: ProcessCDR(1,14364273,1,1,2) [2025-01-30 14:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364273', 'tblTempUsageDetail_20' ) start [2025-01-30 14:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364273', 'tblTempUsageDetail_20' ) end [2025-01-30 14:28:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:28:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:28:32] Production.INFO: ==1764== Releasing lock... [2025-01-30 14:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:28:32] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:29:05 [end_date_ymd] => 2025-01-30 14:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:29:05' and `end` < '2025-01-30 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-30 14:29:29] Production.INFO: count ==5230 [2025-01-30 14:29:31] Production.ERROR: pbx CDR StartTime 2025-01-30 11:29:05 - End Time 2025-01-30 14:29:05 [2025-01-30 14:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364278', 'tblTempUsageDetail_20' ) start [2025-01-30 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364278', 'tblTempUsageDetail_20' ) end [2025-01-30 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364278', 'tblTempVendorCDR_20' ) start [2025-01-30 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364278', 'tblTempVendorCDR_20' ) end [2025-01-30 14:29:31] Production.INFO: ProcessCDR(1,14364278,1,1,2) [2025-01-30 14:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:29:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:29:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:29:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364278', 'tblTempUsageDetail_20' ) start [2025-01-30 14:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364278', 'tblTempUsageDetail_20' ) end [2025-01-30 14:29:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:29:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:29:36] Production.INFO: ==1846== Releasing lock... [2025-01-30 14:29:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:29:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:30:07 [end_date_ymd] => 2025-01-30 14:30:07 [RateCDR] => 1 ) [2025-01-30 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:30:07' and `end` < '2025-01-30 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:30:31] Production.INFO: count ==5262 [2025-01-30 14:30:33] Production.ERROR: pbx CDR StartTime 2025-01-30 11:30:07 - End Time 2025-01-30 14:30:07 [2025-01-30 14:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364283', 'tblTempUsageDetail_20' ) start [2025-01-30 14:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364283', 'tblTempUsageDetail_20' ) end [2025-01-30 14:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364283', 'tblTempVendorCDR_20' ) start [2025-01-30 14:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364283', 'tblTempVendorCDR_20' ) end [2025-01-30 14:30:34] Production.INFO: ProcessCDR(1,14364283,1,1,2) [2025-01-30 14:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364283', 'tblTempUsageDetail_20' ) start [2025-01-30 14:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364283', 'tblTempUsageDetail_20' ) end [2025-01-30 14:30:39] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:30:39] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:30:39] Production.INFO: ==1924== Releasing lock... [2025-01-30 14:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:30:39] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:31:05 [end_date_ymd] => 2025-01-30 14:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:31:05' and `end` < '2025-01-30 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-30 14:31:23] Production.INFO: count ==5268 [2025-01-30 14:31:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:31:05 - End Time 2025-01-30 14:31:05 [2025-01-30 14:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364289', 'tblTempUsageDetail_20' ) start [2025-01-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364289', 'tblTempUsageDetail_20' ) end [2025-01-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364289', 'tblTempVendorCDR_20' ) start [2025-01-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364289', 'tblTempVendorCDR_20' ) end [2025-01-30 14:31:25] Production.INFO: ProcessCDR(1,14364289,1,1,2) [2025-01-30 14:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364289', 'tblTempUsageDetail_20' ) start [2025-01-30 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364289', 'tblTempUsageDetail_20' ) end [2025-01-30 14:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:31:30] Production.INFO: ==2007== Releasing lock... [2025-01-30 14:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:31:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:32:06 [end_date_ymd] => 2025-01-30 14:32:06 [RateCDR] => 1 ) [2025-01-30 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:32:06' and `end` < '2025-01-30 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:32:20] Production.INFO: count ==5273 [2025-01-30 14:32:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:32:06 - End Time 2025-01-30 14:32:06 [2025-01-30 14:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364294', 'tblTempUsageDetail_20' ) start [2025-01-30 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364294', 'tblTempUsageDetail_20' ) end [2025-01-30 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364294', 'tblTempVendorCDR_20' ) start [2025-01-30 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364294', 'tblTempVendorCDR_20' ) end [2025-01-30 14:32:23] Production.INFO: ProcessCDR(1,14364294,1,1,2) [2025-01-30 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364294', 'tblTempUsageDetail_20' ) start [2025-01-30 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364294', 'tblTempUsageDetail_20' ) end [2025-01-30 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:32:28] Production.INFO: ==2086== Releasing lock... [2025-01-30 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:32:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:33:05 [end_date_ymd] => 2025-01-30 14:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:33:05' and `end` < '2025-01-30 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-30 14:33:19] Production.INFO: count ==5290 [2025-01-30 14:33:22] Production.ERROR: pbx CDR StartTime 2025-01-30 11:33:05 - End Time 2025-01-30 14:33:05 [2025-01-30 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364299', 'tblTempUsageDetail_20' ) start [2025-01-30 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364299', 'tblTempUsageDetail_20' ) end [2025-01-30 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364299', 'tblTempVendorCDR_20' ) start [2025-01-30 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364299', 'tblTempVendorCDR_20' ) end [2025-01-30 14:33:22] Production.INFO: ProcessCDR(1,14364299,1,1,2) [2025-01-30 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364299', 'tblTempUsageDetail_20' ) start [2025-01-30 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364299', 'tblTempUsageDetail_20' ) end [2025-01-30 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:33:27] Production.INFO: ==2170== Releasing lock... [2025-01-30 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:33:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:34:06 [end_date_ymd] => 2025-01-30 14:34:06 [RateCDR] => 1 ) [2025-01-30 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:34:06' and `end` < '2025-01-30 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:34:21] Production.INFO: count ==5278 [2025-01-30 14:34:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:34:06 - End Time 2025-01-30 14:34:06 [2025-01-30 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364304', 'tblTempUsageDetail_20' ) start [2025-01-30 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364304', 'tblTempUsageDetail_20' ) end [2025-01-30 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364304', 'tblTempVendorCDR_20' ) start [2025-01-30 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364304', 'tblTempVendorCDR_20' ) end [2025-01-30 14:34:23] Production.INFO: ProcessCDR(1,14364304,1,1,2) [2025-01-30 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364304', 'tblTempUsageDetail_20' ) start [2025-01-30 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364304', 'tblTempUsageDetail_20' ) end [2025-01-30 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:34:28] Production.INFO: ==2259== Releasing lock... [2025-01-30 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:34:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:35:05 [end_date_ymd] => 2025-01-30 14:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:35:05' and `end` < '2025-01-30 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-30 14:35:21] Production.INFO: count ==5318 [2025-01-30 14:35:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:35:05 - End Time 2025-01-30 14:35:05 [2025-01-30 14:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364309', 'tblTempUsageDetail_20' ) start [2025-01-30 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364309', 'tblTempUsageDetail_20' ) end [2025-01-30 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364309', 'tblTempVendorCDR_20' ) start [2025-01-30 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364309', 'tblTempVendorCDR_20' ) end [2025-01-30 14:35:23] Production.INFO: ProcessCDR(1,14364309,1,1,2) [2025-01-30 14:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364309', 'tblTempUsageDetail_20' ) start [2025-01-30 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364309', 'tblTempUsageDetail_20' ) end [2025-01-30 14:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:35:30] Production.INFO: ==2352== Releasing lock... [2025-01-30 14:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:35:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:36:06 [end_date_ymd] => 2025-01-30 14:36:06 [RateCDR] => 1 ) [2025-01-30 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-30 11:36:06' and `end` < '2025-01-30 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-30 14:36:25] Production.INFO: count ==5335 [2025-01-30 14:36:28] Production.ERROR: pbx CDR StartTime 2025-01-30 11:36:06 - End Time 2025-01-30 14:36:06 [2025-01-30 14:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364314', 'tblTempUsageDetail_20' ) start [2025-01-30 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364314', 'tblTempUsageDetail_20' ) end [2025-01-30 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364314', 'tblTempVendorCDR_20' ) start [2025-01-30 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364314', 'tblTempVendorCDR_20' ) end [2025-01-30 14:36:28] Production.INFO: ProcessCDR(1,14364314,1,1,2) [2025-01-30 14:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364314', 'tblTempUsageDetail_20' ) start [2025-01-30 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364314', 'tblTempUsageDetail_20' ) end [2025-01-30 14:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:36:33] Production.INFO: ==2437== Releasing lock... [2025-01-30 14:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:36:33] Production.INFO: 68 MB #Memory Used# [2025-01-30 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:37:06 [end_date_ymd] => 2025-01-30 14:37:06 [RateCDR] => 1 ) [2025-01-30 14: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-30 11:37:06' and `end` < '2025-01-30 14: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-30 14:37:22] Production.INFO: count ==5348 [2025-01-30 14:37:24] Production.ERROR: pbx CDR StartTime 2025-01-30 11:37:06 - End Time 2025-01-30 14:37:06 [2025-01-30 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364319', 'tblTempUsageDetail_20' ) start [2025-01-30 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364319', 'tblTempUsageDetail_20' ) end [2025-01-30 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364319', 'tblTempVendorCDR_20' ) start [2025-01-30 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364319', 'tblTempVendorCDR_20' ) end [2025-01-30 14:37:25] Production.INFO: ProcessCDR(1,14364319,1,1,2) [2025-01-30 14:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364319', 'tblTempUsageDetail_20' ) start [2025-01-30 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364319', 'tblTempUsageDetail_20' ) end [2025-01-30 14:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:37:30] Production.INFO: ==2553== Releasing lock... [2025-01-30 14:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:37:30] Production.INFO: 68 MB #Memory Used# [2025-01-30 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:38:05 [end_date_ymd] => 2025-01-30 14:38:05 [RateCDR] => 1 ) [2025-01-30 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:38:05' and `end` < '2025-01-30 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:38:19] Production.INFO: count ==5354 [2025-01-30 14:38:22] Production.ERROR: pbx CDR StartTime 2025-01-30 11:38:05 - End Time 2025-01-30 14:38:05 [2025-01-30 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364324', 'tblTempUsageDetail_20' ) start [2025-01-30 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364324', 'tblTempUsageDetail_20' ) end [2025-01-30 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364324', 'tblTempVendorCDR_20' ) start [2025-01-30 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364324', 'tblTempVendorCDR_20' ) end [2025-01-30 14:38:22] Production.INFO: ProcessCDR(1,14364324,1,1,2) [2025-01-30 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364324', 'tblTempUsageDetail_20' ) start [2025-01-30 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364324', 'tblTempUsageDetail_20' ) end [2025-01-30 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:38:27] Production.INFO: ==2632== Releasing lock... [2025-01-30 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:38:27] Production.INFO: 68 MB #Memory Used# [2025-01-30 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:39:05 [end_date_ymd] => 2025-01-30 14:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:39:05' and `end` < '2025-01-30 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-30 14:39:21] Production.INFO: count ==5313 [2025-01-30 14:39:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:39:05 - End Time 2025-01-30 14:39:05 [2025-01-30 14:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364329', 'tblTempUsageDetail_20' ) start [2025-01-30 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364329', 'tblTempUsageDetail_20' ) end [2025-01-30 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364329', 'tblTempVendorCDR_20' ) start [2025-01-30 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364329', 'tblTempVendorCDR_20' ) end [2025-01-30 14:39:23] Production.INFO: ProcessCDR(1,14364329,1,1,2) [2025-01-30 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364329', 'tblTempUsageDetail_20' ) start [2025-01-30 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364329', 'tblTempUsageDetail_20' ) end [2025-01-30 14:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:39:28] Production.INFO: ==2715== Releasing lock... [2025-01-30 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:39:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:40:07 [end_date_ymd] => 2025-01-30 14:40:07 [RateCDR] => 1 ) [2025-01-30 14: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-30 11:40:07' and `end` < '2025-01-30 14: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-30 14:40:20] Production.INFO: count ==5315 [2025-01-30 14:40:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:40:07 - End Time 2025-01-30 14:40:07 [2025-01-30 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364335', 'tblTempUsageDetail_20' ) start [2025-01-30 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364335', 'tblTempUsageDetail_20' ) end [2025-01-30 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364335', 'tblTempVendorCDR_20' ) start [2025-01-30 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364335', 'tblTempVendorCDR_20' ) end [2025-01-30 14:40:23] Production.INFO: ProcessCDR(1,14364335,1,1,2) [2025-01-30 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364335', 'tblTempUsageDetail_20' ) start [2025-01-30 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364335', 'tblTempUsageDetail_20' ) end [2025-01-30 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:40:28] Production.INFO: ==2797== Releasing lock... [2025-01-30 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:40:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:41:05 [end_date_ymd] => 2025-01-30 14:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:41:05' and `end` < '2025-01-30 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-30 14:41:28] Production.INFO: count ==5340 [2025-01-30 14:41:31] Production.ERROR: pbx CDR StartTime 2025-01-30 11:41:05 - End Time 2025-01-30 14:41:05 [2025-01-30 14:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364340', 'tblTempUsageDetail_20' ) start [2025-01-30 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364340', 'tblTempUsageDetail_20' ) end [2025-01-30 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364340', 'tblTempVendorCDR_20' ) start [2025-01-30 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364340', 'tblTempVendorCDR_20' ) end [2025-01-30 14:41:31] Production.INFO: ProcessCDR(1,14364340,1,1,2) [2025-01-30 14:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:41:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:41:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364340', 'tblTempUsageDetail_20' ) start [2025-01-30 14:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364340', 'tblTempUsageDetail_20' ) end [2025-01-30 14:41:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:41:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:41:36] Production.INFO: ==2878== Releasing lock... [2025-01-30 14:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:41:36] Production.INFO: 68 MB #Memory Used# [2025-01-30 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:42:06 [end_date_ymd] => 2025-01-30 14:42:06 [RateCDR] => 1 ) [2025-01-30 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:42:06' and `end` < '2025-01-30 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:42:22] Production.INFO: count ==5310 [2025-01-30 14:42:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:42:06 - End Time 2025-01-30 14:42:06 [2025-01-30 14:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364345', 'tblTempUsageDetail_20' ) start [2025-01-30 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364345', 'tblTempUsageDetail_20' ) end [2025-01-30 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364345', 'tblTempVendorCDR_20' ) start [2025-01-30 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364345', 'tblTempVendorCDR_20' ) end [2025-01-30 14:42:25] Production.INFO: ProcessCDR(1,14364345,1,1,2) [2025-01-30 14:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364345', 'tblTempUsageDetail_20' ) start [2025-01-30 14:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364345', 'tblTempUsageDetail_20' ) end [2025-01-30 14:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:42:30] Production.INFO: ==2962== Releasing lock... [2025-01-30 14:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:42:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:43:05 [end_date_ymd] => 2025-01-30 14:43:05 [RateCDR] => 1 ) [2025-01-30 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:43:05' and `end` < '2025-01-30 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:43:19] Production.INFO: count ==5270 [2025-01-30 14:43:22] Production.ERROR: pbx CDR StartTime 2025-01-30 11:43:05 - End Time 2025-01-30 14:43:05 [2025-01-30 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364350', 'tblTempUsageDetail_20' ) start [2025-01-30 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364350', 'tblTempUsageDetail_20' ) end [2025-01-30 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364350', 'tblTempVendorCDR_20' ) start [2025-01-30 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364350', 'tblTempVendorCDR_20' ) end [2025-01-30 14:43:22] Production.INFO: ProcessCDR(1,14364350,1,1,2) [2025-01-30 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364350', 'tblTempUsageDetail_20' ) start [2025-01-30 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364350', 'tblTempUsageDetail_20' ) end [2025-01-30 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:43:27] Production.INFO: ==3054== Releasing lock... [2025-01-30 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:43:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:44:06 [end_date_ymd] => 2025-01-30 14:44:06 [RateCDR] => 1 ) [2025-01-30 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:44:06' and `end` < '2025-01-30 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:44:22] Production.INFO: count ==5217 [2025-01-30 14:44:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:44:06 - End Time 2025-01-30 14:44:06 [2025-01-30 14:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364355', 'tblTempUsageDetail_20' ) start [2025-01-30 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364355', 'tblTempUsageDetail_20' ) end [2025-01-30 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364355', 'tblTempVendorCDR_20' ) start [2025-01-30 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364355', 'tblTempVendorCDR_20' ) end [2025-01-30 14:44:25] Production.INFO: ProcessCDR(1,14364355,1,1,2) [2025-01-30 14:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364355', 'tblTempUsageDetail_20' ) start [2025-01-30 14:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364355', 'tblTempUsageDetail_20' ) end [2025-01-30 14:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:44:30] Production.INFO: ==3139== Releasing lock... [2025-01-30 14:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:44:30] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:45:05 [end_date_ymd] => 2025-01-30 14:45:05 [RateCDR] => 1 ) [2025-01-30 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:45:05' and `end` < '2025-01-30 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:45:24] Production.INFO: count ==5185 [2025-01-30 14:45:26] Production.ERROR: pbx CDR StartTime 2025-01-30 11:45:05 - End Time 2025-01-30 14:45:05 [2025-01-30 14:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364360', 'tblTempUsageDetail_20' ) start [2025-01-30 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364360', 'tblTempUsageDetail_20' ) end [2025-01-30 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364360', 'tblTempVendorCDR_20' ) start [2025-01-30 14:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364360', 'tblTempVendorCDR_20' ) end [2025-01-30 14:45:26] Production.INFO: ProcessCDR(1,14364360,1,1,2) [2025-01-30 14:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364360', 'tblTempUsageDetail_20' ) start [2025-01-30 14:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364360', 'tblTempUsageDetail_20' ) end [2025-01-30 14:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:45:31] Production.INFO: ==3216== Releasing lock... [2025-01-30 14:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:45:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:46:06 [end_date_ymd] => 2025-01-30 14:46:06 [RateCDR] => 1 ) [2025-01-30 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:46:06' and `end` < '2025-01-30 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:46:21] Production.INFO: count ==5176 [2025-01-30 14:46:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:46:06 - End Time 2025-01-30 14:46:06 [2025-01-30 14:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364365', 'tblTempUsageDetail_20' ) start [2025-01-30 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364365', 'tblTempUsageDetail_20' ) end [2025-01-30 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364365', 'tblTempVendorCDR_20' ) start [2025-01-30 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364365', 'tblTempVendorCDR_20' ) end [2025-01-30 14:46:23] Production.INFO: ProcessCDR(1,14364365,1,1,2) [2025-01-30 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364365', 'tblTempUsageDetail_20' ) start [2025-01-30 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364365', 'tblTempUsageDetail_20' ) end [2025-01-30 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:46:28] Production.INFO: ==3298== Releasing lock... [2025-01-30 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:46:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:47:06 [end_date_ymd] => 2025-01-30 14:47:06 [RateCDR] => 1 ) [2025-01-30 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:47:06' and `end` < '2025-01-30 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:47:22] Production.INFO: count ==5178 [2025-01-30 14:47:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:47:06 - End Time 2025-01-30 14:47:06 [2025-01-30 14:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364370', 'tblTempUsageDetail_20' ) start [2025-01-30 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364370', 'tblTempUsageDetail_20' ) end [2025-01-30 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364370', 'tblTempVendorCDR_20' ) start [2025-01-30 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364370', 'tblTempVendorCDR_20' ) end [2025-01-30 14:47:25] Production.INFO: ProcessCDR(1,14364370,1,1,2) [2025-01-30 14:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364370', 'tblTempUsageDetail_20' ) start [2025-01-30 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364370', 'tblTempUsageDetail_20' ) end [2025-01-30 14:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:47:30] Production.INFO: ==3379== Releasing lock... [2025-01-30 14:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:47:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:48:06 [end_date_ymd] => 2025-01-30 14:48:06 [RateCDR] => 1 ) [2025-01-30 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:48:06' and `end` < '2025-01-30 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:48:23] Production.INFO: count ==5184 [2025-01-30 14:48:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:48:06 - End Time 2025-01-30 14:48:06 [2025-01-30 14:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364375', 'tblTempUsageDetail_20' ) start [2025-01-30 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364375', 'tblTempUsageDetail_20' ) end [2025-01-30 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364375', 'tblTempVendorCDR_20' ) start [2025-01-30 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364375', 'tblTempVendorCDR_20' ) end [2025-01-30 14:48:25] Production.INFO: ProcessCDR(1,14364375,1,1,2) [2025-01-30 14:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364375', 'tblTempUsageDetail_20' ) start [2025-01-30 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364375', 'tblTempUsageDetail_20' ) end [2025-01-30 14:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:48:31] Production.INFO: ==3461== Releasing lock... [2025-01-30 14:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:48:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:49:06 [end_date_ymd] => 2025-01-30 14:49:06 [RateCDR] => 1 ) [2025-01-30 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:49:06' and `end` < '2025-01-30 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:49:26] Production.INFO: count ==5194 [2025-01-30 14:49:28] Production.ERROR: pbx CDR StartTime 2025-01-30 11:49:06 - End Time 2025-01-30 14:49:06 [2025-01-30 14:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364380', 'tblTempUsageDetail_20' ) start [2025-01-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364380', 'tblTempUsageDetail_20' ) end [2025-01-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364380', 'tblTempVendorCDR_20' ) start [2025-01-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364380', 'tblTempVendorCDR_20' ) end [2025-01-30 14:49:28] Production.INFO: ProcessCDR(1,14364380,1,1,2) [2025-01-30 14:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364380', 'tblTempUsageDetail_20' ) start [2025-01-30 14:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364380', 'tblTempUsageDetail_20' ) end [2025-01-30 14:49:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:49:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:49:34] Production.INFO: ==3546== Releasing lock... [2025-01-30 14:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:49:34] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:50:07 [end_date_ymd] => 2025-01-30 14:50:07 [RateCDR] => 1 ) [2025-01-30 14:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:50:07' and `end` < '2025-01-30 14:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:50:25] Production.INFO: count ==5206 [2025-01-30 14:50:28] Production.ERROR: pbx CDR StartTime 2025-01-30 11:50:07 - End Time 2025-01-30 14:50:07 [2025-01-30 14:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364386', 'tblTempUsageDetail_20' ) start [2025-01-30 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364386', 'tblTempUsageDetail_20' ) end [2025-01-30 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364386', 'tblTempVendorCDR_20' ) start [2025-01-30 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364386', 'tblTempVendorCDR_20' ) end [2025-01-30 14:50:28] Production.INFO: ProcessCDR(1,14364386,1,1,2) [2025-01-30 14:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364386', 'tblTempUsageDetail_20' ) start [2025-01-30 14:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364386', 'tblTempUsageDetail_20' ) end [2025-01-30 14:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:50:33] Production.INFO: ==3631== Releasing lock... [2025-01-30 14:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:50:33] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:51:06 [end_date_ymd] => 2025-01-30 14:51:06 [RateCDR] => 1 ) [2025-01-30 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:51:06' and `end` < '2025-01-30 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:51:23] Production.INFO: count ==5197 [2025-01-30 14:51:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:51:06 - End Time 2025-01-30 14:51:06 [2025-01-30 14:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364391', 'tblTempUsageDetail_20' ) start [2025-01-30 14:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364391', 'tblTempUsageDetail_20' ) end [2025-01-30 14:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364391', 'tblTempVendorCDR_20' ) start [2025-01-30 14:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364391', 'tblTempVendorCDR_20' ) end [2025-01-30 14:51:26] Production.INFO: ProcessCDR(1,14364391,1,1,2) [2025-01-30 14:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364391', 'tblTempUsageDetail_20' ) start [2025-01-30 14:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364391', 'tblTempUsageDetail_20' ) end [2025-01-30 14:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:51:31] Production.INFO: ==3716== Releasing lock... [2025-01-30 14:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:51:31] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:52:05 [end_date_ymd] => 2025-01-30 14:52:05 [RateCDR] => 1 ) [2025-01-30 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:52:05' and `end` < '2025-01-30 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:52:22] Production.INFO: count ==5195 [2025-01-30 14:52:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:52:05 - End Time 2025-01-30 14:52:05 [2025-01-30 14:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364396', 'tblTempUsageDetail_20' ) start [2025-01-30 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364396', 'tblTempUsageDetail_20' ) end [2025-01-30 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364396', 'tblTempVendorCDR_20' ) start [2025-01-30 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364396', 'tblTempVendorCDR_20' ) end [2025-01-30 14:52:25] Production.INFO: ProcessCDR(1,14364396,1,1,2) [2025-01-30 14:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364396', 'tblTempUsageDetail_20' ) start [2025-01-30 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364396', 'tblTempUsageDetail_20' ) end [2025-01-30 14:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:52:30] Production.INFO: ==3805== Releasing lock... [2025-01-30 14:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:52:30] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:53:05 [end_date_ymd] => 2025-01-30 14:53:05 [RateCDR] => 1 ) [2025-01-30 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:53:05' and `end` < '2025-01-30 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-30 14:53:22] Production.INFO: count ==5203 [2025-01-30 14:53:24] Production.ERROR: pbx CDR StartTime 2025-01-30 11:53:05 - End Time 2025-01-30 14:53:05 [2025-01-30 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364401', 'tblTempUsageDetail_20' ) start [2025-01-30 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364401', 'tblTempUsageDetail_20' ) end [2025-01-30 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364401', 'tblTempVendorCDR_20' ) start [2025-01-30 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364401', 'tblTempVendorCDR_20' ) end [2025-01-30 14:53:24] Production.INFO: ProcessCDR(1,14364401,1,1,2) [2025-01-30 14:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364401', 'tblTempUsageDetail_20' ) start [2025-01-30 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364401', 'tblTempUsageDetail_20' ) end [2025-01-30 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:53:30] Production.INFO: ==3915== Releasing lock... [2025-01-30 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:53:30] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:54:06 [end_date_ymd] => 2025-01-30 14:54:06 [RateCDR] => 1 ) [2025-01-30 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:54:06' and `end` < '2025-01-30 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:54:24] Production.INFO: count ==5253 [2025-01-30 14:54:27] Production.ERROR: pbx CDR StartTime 2025-01-30 11:54:06 - End Time 2025-01-30 14:54:06 [2025-01-30 14:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364406', 'tblTempUsageDetail_20' ) start [2025-01-30 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364406', 'tblTempUsageDetail_20' ) end [2025-01-30 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364406', 'tblTempVendorCDR_20' ) start [2025-01-30 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364406', 'tblTempVendorCDR_20' ) end [2025-01-30 14:54:27] Production.INFO: ProcessCDR(1,14364406,1,1,2) [2025-01-30 14:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364406', 'tblTempUsageDetail_20' ) start [2025-01-30 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364406', 'tblTempUsageDetail_20' ) end [2025-01-30 14:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:54:33] Production.INFO: ==3996== Releasing lock... [2025-01-30 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:54:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:55:05 [end_date_ymd] => 2025-01-30 14:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:55:05' and `end` < '2025-01-30 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-30 14:55:31] Production.INFO: count ==5251 [2025-01-30 14:55:34] Production.ERROR: pbx CDR StartTime 2025-01-30 11:55:05 - End Time 2025-01-30 14:55:05 [2025-01-30 14:55:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364411', 'tblTempUsageDetail_20' ) start [2025-01-30 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364411', 'tblTempUsageDetail_20' ) end [2025-01-30 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364411', 'tblTempVendorCDR_20' ) start [2025-01-30 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364411', 'tblTempVendorCDR_20' ) end [2025-01-30 14:55:34] Production.INFO: ProcessCDR(1,14364411,1,1,2) [2025-01-30 14:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364411', 'tblTempUsageDetail_20' ) start [2025-01-30 14:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364411', 'tblTempUsageDetail_20' ) end [2025-01-30 14:55:40] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:55:40] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:55:40] Production.INFO: ==4078== Releasing lock... [2025-01-30 14:55:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:55:40] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:56:06 [end_date_ymd] => 2025-01-30 14:56:06 [RateCDR] => 1 ) [2025-01-30 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:56:06' and `end` < '2025-01-30 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:56:23] Production.INFO: count ==5239 [2025-01-30 14:56:25] Production.ERROR: pbx CDR StartTime 2025-01-30 11:56:06 - End Time 2025-01-30 14:56:06 [2025-01-30 14:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364416', 'tblTempUsageDetail_20' ) start [2025-01-30 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364416', 'tblTempUsageDetail_20' ) end [2025-01-30 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364416', 'tblTempVendorCDR_20' ) start [2025-01-30 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364416', 'tblTempVendorCDR_20' ) end [2025-01-30 14:56:26] Production.INFO: ProcessCDR(1,14364416,1,1,2) [2025-01-30 14:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364416', 'tblTempUsageDetail_20' ) start [2025-01-30 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364416', 'tblTempUsageDetail_20' ) end [2025-01-30 14:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:56:31] Production.INFO: ==4161== Releasing lock... [2025-01-30 14:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:56:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:57:05 [end_date_ymd] => 2025-01-30 14:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 11:57:05' and `end` < '2025-01-30 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-30 14:57:19] Production.INFO: count ==5224 [2025-01-30 14:57:22] Production.ERROR: pbx CDR StartTime 2025-01-30 11:57:05 - End Time 2025-01-30 14:57:05 [2025-01-30 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364421', 'tblTempUsageDetail_20' ) start [2025-01-30 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364421', 'tblTempUsageDetail_20' ) end [2025-01-30 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364421', 'tblTempVendorCDR_20' ) start [2025-01-30 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364421', 'tblTempVendorCDR_20' ) end [2025-01-30 14:57:22] Production.INFO: ProcessCDR(1,14364421,1,1,2) [2025-01-30 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364421', 'tblTempUsageDetail_20' ) start [2025-01-30 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364421', 'tblTempUsageDetail_20' ) end [2025-01-30 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:57:27] Production.INFO: ==4243== Releasing lock... [2025-01-30 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:57:27] Production.INFO: 67 MB #Memory Used# [2025-01-30 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:58:05 [end_date_ymd] => 2025-01-30 14:58:05 [RateCDR] => 1 ) [2025-01-30 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:58:05' and `end` < '2025-01-30 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-30 14:58:21] Production.INFO: count ==5234 [2025-01-30 14:58:23] Production.ERROR: pbx CDR StartTime 2025-01-30 11:58:05 - End Time 2025-01-30 14:58:05 [2025-01-30 14:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364426', 'tblTempUsageDetail_20' ) start [2025-01-30 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364426', 'tblTempUsageDetail_20' ) end [2025-01-30 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364426', 'tblTempVendorCDR_20' ) start [2025-01-30 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364426', 'tblTempVendorCDR_20' ) end [2025-01-30 14:58:23] Production.INFO: ProcessCDR(1,14364426,1,1,2) [2025-01-30 14:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364426', 'tblTempUsageDetail_20' ) start [2025-01-30 14:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364426', 'tblTempUsageDetail_20' ) end [2025-01-30 14:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:58:29] Production.INFO: ==4323== Releasing lock... [2025-01-30 14:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:58:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 11:59:06 [end_date_ymd] => 2025-01-30 14:59:06 [RateCDR] => 1 ) [2025-01-30 14:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 11:59:06' and `end` < '2025-01-30 14:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 14:59:19] Production.INFO: count ==5228 [2025-01-30 14:59:22] Production.ERROR: pbx CDR StartTime 2025-01-30 11:59:06 - End Time 2025-01-30 14:59:06 [2025-01-30 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364431', 'tblTempUsageDetail_20' ) start [2025-01-30 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364431', 'tblTempUsageDetail_20' ) end [2025-01-30 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364431', 'tblTempVendorCDR_20' ) start [2025-01-30 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364431', 'tblTempVendorCDR_20' ) end [2025-01-30 14:59:22] Production.INFO: ProcessCDR(1,14364431,1,1,2) [2025-01-30 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364431', 'tblTempUsageDetail_20' ) start [2025-01-30 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364431', 'tblTempUsageDetail_20' ) end [2025-01-30 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 14:59:28] Production.INFO: ==4409== Releasing lock... [2025-01-30 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 14:59:28] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:00:07 [end_date_ymd] => 2025-01-30 15:00:07 [RateCDR] => 1 ) [2025-01-30 15: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-30 12:00:07' and `end` < '2025-01-30 15: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-30 15:00:26] Production.INFO: count ==5230 [2025-01-30 15:00:29] Production.ERROR: pbx CDR StartTime 2025-01-30 12:00:07 - End Time 2025-01-30 15:00:07 [2025-01-30 15:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364437', 'tblTempUsageDetail_20' ) start [2025-01-30 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364437', 'tblTempUsageDetail_20' ) end [2025-01-30 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364437', 'tblTempVendorCDR_20' ) start [2025-01-30 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364437', 'tblTempVendorCDR_20' ) end [2025-01-30 15:00:29] Production.INFO: ProcessCDR(1,14364437,1,1,2) [2025-01-30 15:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364437', 'tblTempUsageDetail_20' ) start [2025-01-30 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364437', 'tblTempUsageDetail_20' ) end [2025-01-30 15:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:00:34] Production.INFO: ==4493== Releasing lock... [2025-01-30 15:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:00:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:01:05 [end_date_ymd] => 2025-01-30 15:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:01:05' and `end` < '2025-01-30 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-30 15:01:35] Production.INFO: count ==5223 [2025-01-30 15:01:38] Production.ERROR: pbx CDR StartTime 2025-01-30 12:01:05 - End Time 2025-01-30 15:01:05 [2025-01-30 15:01:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364442', 'tblTempUsageDetail_20' ) start [2025-01-30 15:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364442', 'tblTempUsageDetail_20' ) end [2025-01-30 15:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364442', 'tblTempVendorCDR_20' ) start [2025-01-30 15:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364442', 'tblTempVendorCDR_20' ) end [2025-01-30 15:01:38] Production.INFO: ProcessCDR(1,14364442,1,1,2) [2025-01-30 15:01:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:01:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:01:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:01:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:01:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364442', 'tblTempUsageDetail_20' ) start [2025-01-30 15:01:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364442', 'tblTempUsageDetail_20' ) end [2025-01-30 15:01:43] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:01:43] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:01:43] Production.INFO: ==4635== Releasing lock... [2025-01-30 15:01:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:01:43] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:02:05 [end_date_ymd] => 2025-01-30 15:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:02:05' and `end` < '2025-01-30 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-30 15:02:24] Production.INFO: count ==5222 [2025-01-30 15:02:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:02:05 - End Time 2025-01-30 15:02:05 [2025-01-30 15:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364447', 'tblTempUsageDetail_20' ) start [2025-01-30 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364447', 'tblTempUsageDetail_20' ) end [2025-01-30 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364447', 'tblTempVendorCDR_20' ) start [2025-01-30 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364447', 'tblTempVendorCDR_20' ) end [2025-01-30 15:02:27] Production.INFO: ProcessCDR(1,14364447,1,1,2) [2025-01-30 15:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364447', 'tblTempUsageDetail_20' ) start [2025-01-30 15:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364447', 'tblTempUsageDetail_20' ) end [2025-01-30 15:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:02:32] Production.INFO: ==4760== Releasing lock... [2025-01-30 15:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:02:32] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:03:05 [end_date_ymd] => 2025-01-30 15:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:03:05' and `end` < '2025-01-30 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-30 15:03:20] Production.INFO: count ==5200 [2025-01-30 15:03:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:03:05 - End Time 2025-01-30 15:03:05 [2025-01-30 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364452', 'tblTempUsageDetail_20' ) start [2025-01-30 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364452', 'tblTempUsageDetail_20' ) end [2025-01-30 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364452', 'tblTempVendorCDR_20' ) start [2025-01-30 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364452', 'tblTempVendorCDR_20' ) end [2025-01-30 15:03:22] Production.INFO: ProcessCDR(1,14364452,1,1,2) [2025-01-30 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364452', 'tblTempUsageDetail_20' ) start [2025-01-30 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364452', 'tblTempUsageDetail_20' ) end [2025-01-30 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:03:28] Production.INFO: ==4841== Releasing lock... [2025-01-30 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:03:28] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:04:05 [end_date_ymd] => 2025-01-30 15:04:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:04:05' and `end` < '2025-01-30 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-30 15:04:22] Production.INFO: count ==5172 [2025-01-30 15:04:24] Production.ERROR: pbx CDR StartTime 2025-01-30 12:04:05 - End Time 2025-01-30 15:04:05 [2025-01-30 15:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364457', 'tblTempUsageDetail_20' ) start [2025-01-30 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364457', 'tblTempUsageDetail_20' ) end [2025-01-30 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364457', 'tblTempVendorCDR_20' ) start [2025-01-30 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364457', 'tblTempVendorCDR_20' ) end [2025-01-30 15:04:25] Production.INFO: ProcessCDR(1,14364457,1,1,2) [2025-01-30 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364457', 'tblTempUsageDetail_20' ) start [2025-01-30 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364457', 'tblTempUsageDetail_20' ) end [2025-01-30 15:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:04:30] Production.INFO: ==4928== Releasing lock... [2025-01-30 15:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:04:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:05:06 [end_date_ymd] => 2025-01-30 15:05:06 [RateCDR] => 1 ) [2025-01-30 15: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-30 12:05:06' and `end` < '2025-01-30 15: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-30 15:05:23] Production.INFO: count ==5169 [2025-01-30 15:05:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:05:06 - End Time 2025-01-30 15:05:06 [2025-01-30 15:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364462', 'tblTempUsageDetail_20' ) start [2025-01-30 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364462', 'tblTempUsageDetail_20' ) end [2025-01-30 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364462', 'tblTempVendorCDR_20' ) start [2025-01-30 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364462', 'tblTempVendorCDR_20' ) end [2025-01-30 15:05:26] Production.INFO: ProcessCDR(1,14364462,1,1,2) [2025-01-30 15:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364462', 'tblTempUsageDetail_20' ) start [2025-01-30 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364462', 'tblTempUsageDetail_20' ) end [2025-01-30 15:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:05:31] Production.INFO: ==5085== Releasing lock... [2025-01-30 15:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:05:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:06:05 [end_date_ymd] => 2025-01-30 15:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:06:05' and `end` < '2025-01-30 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-30 15:06:22] Production.INFO: count ==5176 [2025-01-30 15:06:24] Production.ERROR: pbx CDR StartTime 2025-01-30 12:06:05 - End Time 2025-01-30 15:06:05 [2025-01-30 15:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364467', 'tblTempUsageDetail_20' ) start [2025-01-30 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364467', 'tblTempUsageDetail_20' ) end [2025-01-30 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364467', 'tblTempVendorCDR_20' ) start [2025-01-30 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364467', 'tblTempVendorCDR_20' ) end [2025-01-30 15:06:24] Production.INFO: ProcessCDR(1,14364467,1,1,2) [2025-01-30 15:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364467', 'tblTempUsageDetail_20' ) start [2025-01-30 15:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364467', 'tblTempUsageDetail_20' ) end [2025-01-30 15:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:06:30] Production.INFO: ==5165== Releasing lock... [2025-01-30 15:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:06:30] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:07:05 [end_date_ymd] => 2025-01-30 15:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:07:05' and `end` < '2025-01-30 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-30 15:07:23] Production.INFO: count ==5177 [2025-01-30 15:07:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:07:05 - End Time 2025-01-30 15:07:05 [2025-01-30 15:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364472', 'tblTempUsageDetail_20' ) start [2025-01-30 15:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364472', 'tblTempUsageDetail_20' ) end [2025-01-30 15:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364472', 'tblTempVendorCDR_20' ) start [2025-01-30 15:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364472', 'tblTempVendorCDR_20' ) end [2025-01-30 15:07:26] Production.INFO: ProcessCDR(1,14364472,1,1,2) [2025-01-30 15:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364472', 'tblTempUsageDetail_20' ) start [2025-01-30 15:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364472', 'tblTempUsageDetail_20' ) end [2025-01-30 15:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:07:31] Production.INFO: ==5242== Releasing lock... [2025-01-30 15:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:07:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:08:05 [end_date_ymd] => 2025-01-30 15:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:08:05' and `end` < '2025-01-30 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-30 15:08:21] Production.INFO: count ==5155 [2025-01-30 15:08:24] Production.ERROR: pbx CDR StartTime 2025-01-30 12:08:05 - End Time 2025-01-30 15:08:05 [2025-01-30 15:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364477', 'tblTempUsageDetail_20' ) start [2025-01-30 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364477', 'tblTempUsageDetail_20' ) end [2025-01-30 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364477', 'tblTempVendorCDR_20' ) start [2025-01-30 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364477', 'tblTempVendorCDR_20' ) end [2025-01-30 15:08:24] Production.INFO: ProcessCDR(1,14364477,1,1,2) [2025-01-30 15:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364477', 'tblTempUsageDetail_20' ) start [2025-01-30 15:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364477', 'tblTempUsageDetail_20' ) end [2025-01-30 15:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:08:29] Production.INFO: ==5433== Releasing lock... [2025-01-30 15:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:08:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:09:05 [end_date_ymd] => 2025-01-30 15:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:09:05' and `end` < '2025-01-30 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-30 15:09:19] Production.INFO: count ==5155 [2025-01-30 15:09:21] Production.ERROR: pbx CDR StartTime 2025-01-30 12:09:05 - End Time 2025-01-30 15:09:05 [2025-01-30 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364482', 'tblTempUsageDetail_20' ) start [2025-01-30 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364482', 'tblTempUsageDetail_20' ) end [2025-01-30 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364482', 'tblTempVendorCDR_20' ) start [2025-01-30 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364482', 'tblTempVendorCDR_20' ) end [2025-01-30 15:09:21] Production.INFO: ProcessCDR(1,14364482,1,1,2) [2025-01-30 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364482', 'tblTempUsageDetail_20' ) start [2025-01-30 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364482', 'tblTempUsageDetail_20' ) end [2025-01-30 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:09:27] Production.INFO: ==5506== Releasing lock... [2025-01-30 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:09:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:10:06 [end_date_ymd] => 2025-01-30 15:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 12:10:06' and `end` < '2025-01-30 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-30 15:10:21] Production.INFO: count ==5160 [2025-01-30 15:10:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:10:06 - End Time 2025-01-30 15:10:06 [2025-01-30 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364488', 'tblTempUsageDetail_20' ) start [2025-01-30 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364488', 'tblTempUsageDetail_20' ) end [2025-01-30 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364488', 'tblTempVendorCDR_20' ) start [2025-01-30 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364488', 'tblTempVendorCDR_20' ) end [2025-01-30 15:10:24] Production.INFO: ProcessCDR(1,14364488,1,1,2) [2025-01-30 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364488', 'tblTempUsageDetail_20' ) start [2025-01-30 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364488', 'tblTempUsageDetail_20' ) end [2025-01-30 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:10:29] Production.INFO: ==5580== Releasing lock... [2025-01-30 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:10:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:11:06 [end_date_ymd] => 2025-01-30 15:11:06 [RateCDR] => 1 ) [2025-01-30 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:11:06' and `end` < '2025-01-30 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:11:21] Production.INFO: count ==5130 [2025-01-30 15:11:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:11:06 - End Time 2025-01-30 15:11:06 [2025-01-30 15:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364493', 'tblTempUsageDetail_20' ) start [2025-01-30 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364493', 'tblTempUsageDetail_20' ) end [2025-01-30 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364493', 'tblTempVendorCDR_20' ) start [2025-01-30 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364493', 'tblTempVendorCDR_20' ) end [2025-01-30 15:11:23] Production.INFO: ProcessCDR(1,14364493,1,1,2) [2025-01-30 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364493', 'tblTempUsageDetail_20' ) start [2025-01-30 15:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364493', 'tblTempUsageDetail_20' ) end [2025-01-30 15:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:11:29] Production.INFO: ==5659== Releasing lock... [2025-01-30 15:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:11:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:12:05 [end_date_ymd] => 2025-01-30 15:12:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:12:05' and `end` < '2025-01-30 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-30 15:12:19] Production.INFO: count ==5133 [2025-01-30 15:12:21] Production.ERROR: pbx CDR StartTime 2025-01-30 12:12:05 - End Time 2025-01-30 15:12:05 [2025-01-30 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364498', 'tblTempUsageDetail_20' ) start [2025-01-30 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364498', 'tblTempUsageDetail_20' ) end [2025-01-30 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364498', 'tblTempVendorCDR_20' ) start [2025-01-30 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364498', 'tblTempVendorCDR_20' ) end [2025-01-30 15:12:22] Production.INFO: ProcessCDR(1,14364498,1,1,2) [2025-01-30 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364498', 'tblTempUsageDetail_20' ) start [2025-01-30 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364498', 'tblTempUsageDetail_20' ) end [2025-01-30 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:12:27] Production.INFO: ==5808== Releasing lock... [2025-01-30 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:12:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:13:06 [end_date_ymd] => 2025-01-30 15:13:06 [RateCDR] => 1 ) [2025-01-30 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:13:06' and `end` < '2025-01-30 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:13:20] Production.INFO: count ==5158 [2025-01-30 15:13:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:13:06 - End Time 2025-01-30 15:13:06 [2025-01-30 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364503', 'tblTempUsageDetail_20' ) start [2025-01-30 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364503', 'tblTempUsageDetail_20' ) end [2025-01-30 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364503', 'tblTempVendorCDR_20' ) start [2025-01-30 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364503', 'tblTempVendorCDR_20' ) end [2025-01-30 15:13:22] Production.INFO: ProcessCDR(1,14364503,1,1,2) [2025-01-30 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364503', 'tblTempUsageDetail_20' ) start [2025-01-30 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364503', 'tblTempUsageDetail_20' ) end [2025-01-30 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:13:28] Production.INFO: ==5880== Releasing lock... [2025-01-30 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:13:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:14:05 [end_date_ymd] => 2025-01-30 15:14:05 [RateCDR] => 1 ) [2025-01-30 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:14:05' and `end` < '2025-01-30 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:14:19] Production.INFO: count ==5150 [2025-01-30 15:14:21] Production.ERROR: pbx CDR StartTime 2025-01-30 12:14:05 - End Time 2025-01-30 15:14:05 [2025-01-30 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364508', 'tblTempUsageDetail_20' ) start [2025-01-30 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364508', 'tblTempUsageDetail_20' ) end [2025-01-30 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364508', 'tblTempVendorCDR_20' ) start [2025-01-30 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364508', 'tblTempVendorCDR_20' ) end [2025-01-30 15:14:22] Production.INFO: ProcessCDR(1,14364508,1,1,2) [2025-01-30 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364508', 'tblTempUsageDetail_20' ) start [2025-01-30 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364508', 'tblTempUsageDetail_20' ) end [2025-01-30 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:14:27] Production.INFO: ==5950== Releasing lock... [2025-01-30 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:14:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:15:06 [end_date_ymd] => 2025-01-30 15:15:06 [RateCDR] => 1 ) [2025-01-30 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:15:06' and `end` < '2025-01-30 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:15:20] Production.INFO: count ==5165 [2025-01-30 15:15:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:15:06 - End Time 2025-01-30 15:15:06 [2025-01-30 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364513', 'tblTempUsageDetail_20' ) start [2025-01-30 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364513', 'tblTempUsageDetail_20' ) end [2025-01-30 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364513', 'tblTempVendorCDR_20' ) start [2025-01-30 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364513', 'tblTempVendorCDR_20' ) end [2025-01-30 15:15:22] Production.INFO: ProcessCDR(1,14364513,1,1,2) [2025-01-30 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364513', 'tblTempUsageDetail_20' ) start [2025-01-30 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364513', 'tblTempUsageDetail_20' ) end [2025-01-30 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:15:28] Production.INFO: ==6101== Releasing lock... [2025-01-30 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:15:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:16:06 [end_date_ymd] => 2025-01-30 15:16:06 [RateCDR] => 1 ) [2025-01-30 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:16:06' and `end` < '2025-01-30 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:16:22] Production.INFO: count ==5180 [2025-01-30 15:16:24] Production.ERROR: pbx CDR StartTime 2025-01-30 12:16:06 - End Time 2025-01-30 15:16:06 [2025-01-30 15:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364518', 'tblTempUsageDetail_20' ) start [2025-01-30 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364518', 'tblTempUsageDetail_20' ) end [2025-01-30 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364518', 'tblTempVendorCDR_20' ) start [2025-01-30 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364518', 'tblTempVendorCDR_20' ) end [2025-01-30 15:16:24] Production.INFO: ProcessCDR(1,14364518,1,1,2) [2025-01-30 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364518', 'tblTempUsageDetail_20' ) start [2025-01-30 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364518', 'tblTempUsageDetail_20' ) end [2025-01-30 15:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:16:30] Production.INFO: ==6173== Releasing lock... [2025-01-30 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:16:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:17:06 [end_date_ymd] => 2025-01-30 15:17:06 [RateCDR] => 1 ) [2025-01-30 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:17:06' and `end` < '2025-01-30 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:17:26] Production.INFO: count ==5174 [2025-01-30 15:17:29] Production.ERROR: pbx CDR StartTime 2025-01-30 12:17:06 - End Time 2025-01-30 15:17:06 [2025-01-30 15:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364523', 'tblTempUsageDetail_20' ) start [2025-01-30 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364523', 'tblTempUsageDetail_20' ) end [2025-01-30 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364523', 'tblTempVendorCDR_20' ) start [2025-01-30 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364523', 'tblTempVendorCDR_20' ) end [2025-01-30 15:17:29] Production.INFO: ProcessCDR(1,14364523,1,1,2) [2025-01-30 15:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364523', 'tblTempUsageDetail_20' ) start [2025-01-30 15:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364523', 'tblTempUsageDetail_20' ) end [2025-01-30 15:17:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:17:35] Production.INFO: ==6245== Releasing lock... [2025-01-30 15:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:17:35] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:18:05 [end_date_ymd] => 2025-01-30 15:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:18:05' and `end` < '2025-01-30 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-30 15:18:23] Production.INFO: count ==5210 [2025-01-30 15:18:25] Production.ERROR: pbx CDR StartTime 2025-01-30 12:18:05 - End Time 2025-01-30 15:18:05 [2025-01-30 15:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364528', 'tblTempUsageDetail_20' ) start [2025-01-30 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364528', 'tblTempUsageDetail_20' ) end [2025-01-30 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364528', 'tblTempVendorCDR_20' ) start [2025-01-30 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364528', 'tblTempVendorCDR_20' ) end [2025-01-30 15:18:26] Production.INFO: ProcessCDR(1,14364528,1,1,2) [2025-01-30 15:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364528', 'tblTempUsageDetail_20' ) start [2025-01-30 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364528', 'tblTempUsageDetail_20' ) end [2025-01-30 15:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:18:31] Production.INFO: ==6315== Releasing lock... [2025-01-30 15:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:18:31] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:19:05 [end_date_ymd] => 2025-01-30 15:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:19:05' and `end` < '2025-01-30 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-30 15:19:19] Production.INFO: count ==5227 [2025-01-30 15:19:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:19:05 - End Time 2025-01-30 15:19:05 [2025-01-30 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364533', 'tblTempUsageDetail_20' ) start [2025-01-30 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364533', 'tblTempUsageDetail_20' ) end [2025-01-30 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364533', 'tblTempVendorCDR_20' ) start [2025-01-30 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364533', 'tblTempVendorCDR_20' ) end [2025-01-30 15:19:22] Production.INFO: ProcessCDR(1,14364533,1,1,2) [2025-01-30 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364533', 'tblTempUsageDetail_20' ) start [2025-01-30 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364533', 'tblTempUsageDetail_20' ) end [2025-01-30 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:19:28] Production.INFO: ==6389== Releasing lock... [2025-01-30 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:19:28] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:20:06 [end_date_ymd] => 2025-01-30 15:20:06 [RateCDR] => 1 ) [2025-01-30 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:20:06' and `end` < '2025-01-30 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:20:24] Production.INFO: count ==5256 [2025-01-30 15:20:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:20:06 - End Time 2025-01-30 15:20:06 [2025-01-30 15:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364539', 'tblTempUsageDetail_20' ) start [2025-01-30 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364539', 'tblTempUsageDetail_20' ) end [2025-01-30 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364539', 'tblTempVendorCDR_20' ) start [2025-01-30 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364539', 'tblTempVendorCDR_20' ) end [2025-01-30 15:20:27] Production.INFO: ProcessCDR(1,14364539,1,1,2) [2025-01-30 15:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364539', 'tblTempUsageDetail_20' ) start [2025-01-30 15:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364539', 'tblTempUsageDetail_20' ) end [2025-01-30 15:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:20:32] Production.INFO: ==6464== Releasing lock... [2025-01-30 15:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:20:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:21:06 [end_date_ymd] => 2025-01-30 15:21:06 [RateCDR] => 1 ) [2025-01-30 15: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-30 12:21:06' and `end` < '2025-01-30 15: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-30 15:21:19] Production.INFO: count ==5277 [2025-01-30 15:21:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:21:06 - End Time 2025-01-30 15:21:06 [2025-01-30 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364544', 'tblTempUsageDetail_20' ) start [2025-01-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364544', 'tblTempUsageDetail_20' ) end [2025-01-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364544', 'tblTempVendorCDR_20' ) start [2025-01-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364544', 'tblTempVendorCDR_20' ) end [2025-01-30 15:21:22] Production.INFO: ProcessCDR(1,14364544,1,1,2) [2025-01-30 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364544', 'tblTempUsageDetail_20' ) start [2025-01-30 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364544', 'tblTempUsageDetail_20' ) end [2025-01-30 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:21:26] Production.INFO: ==6538== Releasing lock... [2025-01-30 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:21:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:22:05 [end_date_ymd] => 2025-01-30 15:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:22:05' and `end` < '2025-01-30 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-30 15:22:19] Production.INFO: count ==5271 [2025-01-30 15:22:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:22:05 - End Time 2025-01-30 15:22:05 [2025-01-30 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364549', 'tblTempUsageDetail_20' ) start [2025-01-30 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364549', 'tblTempUsageDetail_20' ) end [2025-01-30 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364549', 'tblTempVendorCDR_20' ) start [2025-01-30 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364549', 'tblTempVendorCDR_20' ) end [2025-01-30 15:22:22] Production.INFO: ProcessCDR(1,14364549,1,1,2) [2025-01-30 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364549', 'tblTempUsageDetail_20' ) start [2025-01-30 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364549', 'tblTempUsageDetail_20' ) end [2025-01-30 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:22:27] Production.INFO: ==6614== Releasing lock... [2025-01-30 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:22:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:23:05 [end_date_ymd] => 2025-01-30 15:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:23:05' and `end` < '2025-01-30 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-30 15:23:19] Production.INFO: count ==5282 [2025-01-30 15:23:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:23:05 - End Time 2025-01-30 15:23:05 [2025-01-30 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364554', 'tblTempUsageDetail_20' ) start [2025-01-30 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364554', 'tblTempUsageDetail_20' ) end [2025-01-30 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364554', 'tblTempVendorCDR_20' ) start [2025-01-30 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364554', 'tblTempVendorCDR_20' ) end [2025-01-30 15:23:22] Production.INFO: ProcessCDR(1,14364554,1,1,2) [2025-01-30 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364554', 'tblTempUsageDetail_20' ) start [2025-01-30 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364554', 'tblTempUsageDetail_20' ) end [2025-01-30 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:23:27] Production.INFO: ==6725== Releasing lock... [2025-01-30 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:23:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:24:06 [end_date_ymd] => 2025-01-30 15:24:06 [RateCDR] => 1 ) [2025-01-30 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:24:06' and `end` < '2025-01-30 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:24:32] Production.INFO: count ==5274 [2025-01-30 15:24:35] Production.ERROR: pbx CDR StartTime 2025-01-30 12:24:06 - End Time 2025-01-30 15:24:06 [2025-01-30 15:24:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364559', 'tblTempUsageDetail_20' ) start [2025-01-30 15:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364559', 'tblTempUsageDetail_20' ) end [2025-01-30 15:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364559', 'tblTempVendorCDR_20' ) start [2025-01-30 15:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364559', 'tblTempVendorCDR_20' ) end [2025-01-30 15:24:35] Production.INFO: ProcessCDR(1,14364559,1,1,2) [2025-01-30 15:24:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:24:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:24:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:24:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364559', 'tblTempUsageDetail_20' ) start [2025-01-30 15:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364559', 'tblTempUsageDetail_20' ) end [2025-01-30 15:24:40] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:24:40] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:24:40] Production.INFO: ==6795== Releasing lock... [2025-01-30 15:24:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:24:40] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:25:05 [end_date_ymd] => 2025-01-30 15:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:25:05' and `end` < '2025-01-30 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-30 15:25:28] Production.INFO: count ==5265 [2025-01-30 15:25:30] Production.ERROR: pbx CDR StartTime 2025-01-30 12:25:05 - End Time 2025-01-30 15:25:05 [2025-01-30 15:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364564', 'tblTempUsageDetail_20' ) start [2025-01-30 15:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364564', 'tblTempUsageDetail_20' ) end [2025-01-30 15:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364564', 'tblTempVendorCDR_20' ) start [2025-01-30 15:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364564', 'tblTempVendorCDR_20' ) end [2025-01-30 15:25:30] Production.INFO: ProcessCDR(1,14364564,1,1,2) [2025-01-30 15:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364564', 'tblTempUsageDetail_20' ) start [2025-01-30 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364564', 'tblTempUsageDetail_20' ) end [2025-01-30 15:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:25:35] Production.INFO: ==6865== Releasing lock... [2025-01-30 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:25:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:26:05 [end_date_ymd] => 2025-01-30 15:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:26:05' and `end` < '2025-01-30 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-30 15:26:24] Production.INFO: count ==5255 [2025-01-30 15:26:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:26:05 - End Time 2025-01-30 15:26:05 [2025-01-30 15:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364569', 'tblTempUsageDetail_20' ) start [2025-01-30 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364569', 'tblTempUsageDetail_20' ) end [2025-01-30 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364569', 'tblTempVendorCDR_20' ) start [2025-01-30 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364569', 'tblTempVendorCDR_20' ) end [2025-01-30 15:26:26] Production.INFO: ProcessCDR(1,14364569,1,1,2) [2025-01-30 15:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364569', 'tblTempUsageDetail_20' ) start [2025-01-30 15:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364569', 'tblTempUsageDetail_20' ) end [2025-01-30 15:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:26:32] Production.INFO: ==6937== Releasing lock... [2025-01-30 15:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:26:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:27:06 [end_date_ymd] => 2025-01-30 15:27:06 [RateCDR] => 1 ) [2025-01-30 15: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-30 12:27:06' and `end` < '2025-01-30 15: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-30 15:27:20] Production.INFO: count ==5254 [2025-01-30 15:27:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:27:06 - End Time 2025-01-30 15:27:06 [2025-01-30 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364574', 'tblTempUsageDetail_20' ) start [2025-01-30 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364574', 'tblTempUsageDetail_20' ) end [2025-01-30 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364574', 'tblTempVendorCDR_20' ) start [2025-01-30 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364574', 'tblTempVendorCDR_20' ) end [2025-01-30 15:27:22] Production.INFO: ProcessCDR(1,14364574,1,1,2) [2025-01-30 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364574', 'tblTempUsageDetail_20' ) start [2025-01-30 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364574', 'tblTempUsageDetail_20' ) end [2025-01-30 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:27:27] Production.INFO: ==7008== Releasing lock... [2025-01-30 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:27:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:28:05 [end_date_ymd] => 2025-01-30 15:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:28:05' and `end` < '2025-01-30 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-30 15:28:27] Production.INFO: count ==5267 [2025-01-30 15:28:30] Production.ERROR: pbx CDR StartTime 2025-01-30 12:28:05 - End Time 2025-01-30 15:28:05 [2025-01-30 15:28:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364579', 'tblTempUsageDetail_20' ) start [2025-01-30 15:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364579', 'tblTempUsageDetail_20' ) end [2025-01-30 15:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364579', 'tblTempVendorCDR_20' ) start [2025-01-30 15:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364579', 'tblTempVendorCDR_20' ) end [2025-01-30 15:28:30] Production.INFO: ProcessCDR(1,14364579,1,1,2) [2025-01-30 15:28:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:28:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:28:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364579', 'tblTempUsageDetail_20' ) start [2025-01-30 15:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364579', 'tblTempUsageDetail_20' ) end [2025-01-30 15:28:35] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:28:35] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:28:35] Production.INFO: ==7080== Releasing lock... [2025-01-30 15:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:28:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:29:06 [end_date_ymd] => 2025-01-30 15:29:06 [RateCDR] => 1 ) [2025-01-30 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:29:06' and `end` < '2025-01-30 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:29:24] Production.INFO: count ==5270 [2025-01-30 15:29:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:29:06 - End Time 2025-01-30 15:29:06 [2025-01-30 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364584', 'tblTempUsageDetail_20' ) start [2025-01-30 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364584', 'tblTempUsageDetail_20' ) end [2025-01-30 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364584', 'tblTempVendorCDR_20' ) start [2025-01-30 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364584', 'tblTempVendorCDR_20' ) end [2025-01-30 15:29:26] Production.INFO: ProcessCDR(1,14364584,1,1,2) [2025-01-30 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364584', 'tblTempUsageDetail_20' ) start [2025-01-30 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364584', 'tblTempUsageDetail_20' ) end [2025-01-30 15:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:29:32] Production.INFO: ==7155== Releasing lock... [2025-01-30 15:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:29:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:30:06 [end_date_ymd] => 2025-01-30 15:30:06 [RateCDR] => 1 ) [2025-01-30 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-30 12:30:06' and `end` < '2025-01-30 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-30 15:30:21] Production.INFO: count ==5265 [2025-01-30 15:30:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:30:06 - End Time 2025-01-30 15:30:06 [2025-01-30 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364590', 'tblTempUsageDetail_20' ) start [2025-01-30 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364590', 'tblTempUsageDetail_20' ) end [2025-01-30 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364590', 'tblTempVendorCDR_20' ) start [2025-01-30 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364590', 'tblTempVendorCDR_20' ) end [2025-01-30 15:30:23] Production.INFO: ProcessCDR(1,14364590,1,1,2) [2025-01-30 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364590', 'tblTempUsageDetail_20' ) start [2025-01-30 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364590', 'tblTempUsageDetail_20' ) end [2025-01-30 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:30:28] Production.INFO: ==7229== Releasing lock... [2025-01-30 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:30:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:31:06 [end_date_ymd] => 2025-01-30 15:31:06 [RateCDR] => 1 ) [2025-01-30 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:31:06' and `end` < '2025-01-30 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:31:25] Production.INFO: count ==5294 [2025-01-30 15:31:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:31:06 - End Time 2025-01-30 15:31:06 [2025-01-30 15:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364595', 'tblTempUsageDetail_20' ) start [2025-01-30 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364595', 'tblTempUsageDetail_20' ) end [2025-01-30 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364595', 'tblTempVendorCDR_20' ) start [2025-01-30 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364595', 'tblTempVendorCDR_20' ) end [2025-01-30 15:31:27] Production.INFO: ProcessCDR(1,14364595,1,1,2) [2025-01-30 15:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364595', 'tblTempUsageDetail_20' ) start [2025-01-30 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364595', 'tblTempUsageDetail_20' ) end [2025-01-30 15:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:31:33] Production.INFO: ==7301== Releasing lock... [2025-01-30 15:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:31:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:32:05 [end_date_ymd] => 2025-01-30 15:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:32:05' and `end` < '2025-01-30 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-30 15:32:32] Production.INFO: count ==5299 [2025-01-30 15:32:34] Production.ERROR: pbx CDR StartTime 2025-01-30 12:32:05 - End Time 2025-01-30 15:32:05 [2025-01-30 15:32:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364600', 'tblTempUsageDetail_20' ) start [2025-01-30 15:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364600', 'tblTempUsageDetail_20' ) end [2025-01-30 15:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364600', 'tblTempVendorCDR_20' ) start [2025-01-30 15:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364600', 'tblTempVendorCDR_20' ) end [2025-01-30 15:32:35] Production.INFO: ProcessCDR(1,14364600,1,1,2) [2025-01-30 15:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:32:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:32:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364600', 'tblTempUsageDetail_20' ) start [2025-01-30 15:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364600', 'tblTempUsageDetail_20' ) end [2025-01-30 15:32:40] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:32:40] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:32:40] Production.INFO: ==7370== Releasing lock... [2025-01-30 15:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:32:40] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:33:06 [end_date_ymd] => 2025-01-30 15:33:06 [RateCDR] => 1 ) [2025-01-30 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:33:06' and `end` < '2025-01-30 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:33:24] Production.INFO: count ==5291 [2025-01-30 15:33:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:33:06 - End Time 2025-01-30 15:33:06 [2025-01-30 15:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364605', 'tblTempUsageDetail_20' ) start [2025-01-30 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364605', 'tblTempUsageDetail_20' ) end [2025-01-30 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364605', 'tblTempVendorCDR_20' ) start [2025-01-30 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364605', 'tblTempVendorCDR_20' ) end [2025-01-30 15:33:27] Production.INFO: ProcessCDR(1,14364605,1,1,2) [2025-01-30 15:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364605', 'tblTempUsageDetail_20' ) start [2025-01-30 15:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364605', 'tblTempUsageDetail_20' ) end [2025-01-30 15:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:33:32] Production.INFO: ==7439== Releasing lock... [2025-01-30 15:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:33:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:34:05 [end_date_ymd] => 2025-01-30 15:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:34:05' and `end` < '2025-01-30 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-30 15:34:19] Production.INFO: count ==5294 [2025-01-30 15:34:22] Production.ERROR: pbx CDR StartTime 2025-01-30 12:34:05 - End Time 2025-01-30 15:34:05 [2025-01-30 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364610', 'tblTempUsageDetail_20' ) start [2025-01-30 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364610', 'tblTempUsageDetail_20' ) end [2025-01-30 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364610', 'tblTempVendorCDR_20' ) start [2025-01-30 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364610', 'tblTempVendorCDR_20' ) end [2025-01-30 15:34:22] Production.INFO: ProcessCDR(1,14364610,1,1,2) [2025-01-30 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364610', 'tblTempUsageDetail_20' ) start [2025-01-30 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364610', 'tblTempUsageDetail_20' ) end [2025-01-30 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:34:27] Production.INFO: ==7515== Releasing lock... [2025-01-30 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:34:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:35:05 [end_date_ymd] => 2025-01-30 15:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:35:05' and `end` < '2025-01-30 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-30 15:35:24] Production.INFO: count ==5297 [2025-01-30 15:35:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:35:05 - End Time 2025-01-30 15:35:05 [2025-01-30 15:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364615', 'tblTempUsageDetail_20' ) start [2025-01-30 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364615', 'tblTempUsageDetail_20' ) end [2025-01-30 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364615', 'tblTempVendorCDR_20' ) start [2025-01-30 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364615', 'tblTempVendorCDR_20' ) end [2025-01-30 15:35:27] Production.INFO: ProcessCDR(1,14364615,1,1,2) [2025-01-30 15:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364615', 'tblTempUsageDetail_20' ) start [2025-01-30 15:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364615', 'tblTempUsageDetail_20' ) end [2025-01-30 15:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:35:33] Production.INFO: ==7591== Releasing lock... [2025-01-30 15:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:35:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:36:05 [end_date_ymd] => 2025-01-30 15:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:36:05' and `end` < '2025-01-30 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-30 15:36:24] Production.INFO: count ==5287 [2025-01-30 15:36:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:36:05 - End Time 2025-01-30 15:36:05 [2025-01-30 15:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364620', 'tblTempUsageDetail_20' ) start [2025-01-30 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364620', 'tblTempUsageDetail_20' ) end [2025-01-30 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364620', 'tblTempVendorCDR_20' ) start [2025-01-30 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364620', 'tblTempVendorCDR_20' ) end [2025-01-30 15:36:27] Production.INFO: ProcessCDR(1,14364620,1,1,2) [2025-01-30 15:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364620', 'tblTempUsageDetail_20' ) start [2025-01-30 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364620', 'tblTempUsageDetail_20' ) end [2025-01-30 15:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:36:32] Production.INFO: ==7663== Releasing lock... [2025-01-30 15:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:36:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:37:05 [end_date_ymd] => 2025-01-30 15:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:37:05' and `end` < '2025-01-30 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-30 15:37:23] Production.INFO: count ==5264 [2025-01-30 15:37:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:37:05 - End Time 2025-01-30 15:37:05 [2025-01-30 15:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364625', 'tblTempUsageDetail_20' ) start [2025-01-30 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364625', 'tblTempUsageDetail_20' ) end [2025-01-30 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364625', 'tblTempVendorCDR_20' ) start [2025-01-30 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364625', 'tblTempVendorCDR_20' ) end [2025-01-30 15:37:26] Production.INFO: ProcessCDR(1,14364625,1,1,2) [2025-01-30 15:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364625', 'tblTempUsageDetail_20' ) start [2025-01-30 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364625', 'tblTempUsageDetail_20' ) end [2025-01-30 15:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:37:32] Production.INFO: ==7760== Releasing lock... [2025-01-30 15:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:37:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:38:05 [end_date_ymd] => 2025-01-30 15:38:05 [RateCDR] => 1 ) [2025-01-30 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:38:05' and `end` < '2025-01-30 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:38:21] Production.INFO: count ==5238 [2025-01-30 15:38:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:38:05 - End Time 2025-01-30 15:38:05 [2025-01-30 15:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364630', 'tblTempUsageDetail_20' ) start [2025-01-30 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364630', 'tblTempUsageDetail_20' ) end [2025-01-30 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364630', 'tblTempVendorCDR_20' ) start [2025-01-30 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364630', 'tblTempVendorCDR_20' ) end [2025-01-30 15:38:23] Production.INFO: ProcessCDR(1,14364630,1,1,2) [2025-01-30 15:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364630', 'tblTempUsageDetail_20' ) start [2025-01-30 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364630', 'tblTempUsageDetail_20' ) end [2025-01-30 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:38:28] Production.INFO: ==7856== Releasing lock... [2025-01-30 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:38:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:39:06 [end_date_ymd] => 2025-01-30 15:39:06 [RateCDR] => 1 ) [2025-01-30 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:39:06' and `end` < '2025-01-30 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:39:20] Production.INFO: count ==5210 [2025-01-30 15:39:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:39:06 - End Time 2025-01-30 15:39:06 [2025-01-30 15:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364635', 'tblTempUsageDetail_20' ) start [2025-01-30 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364635', 'tblTempUsageDetail_20' ) end [2025-01-30 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364635', 'tblTempVendorCDR_20' ) start [2025-01-30 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364635', 'tblTempVendorCDR_20' ) end [2025-01-30 15:39:23] Production.INFO: ProcessCDR(1,14364635,1,1,2) [2025-01-30 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364635', 'tblTempUsageDetail_20' ) start [2025-01-30 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364635', 'tblTempUsageDetail_20' ) end [2025-01-30 15:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:39:28] Production.INFO: ==7966== Releasing lock... [2025-01-30 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:39:28] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:40:06 [end_date_ymd] => 2025-01-30 15:40:06 [RateCDR] => 1 ) [2025-01-30 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:40:06' and `end` < '2025-01-30 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:40:26] Production.INFO: count ==5200 [2025-01-30 15:40:29] Production.ERROR: pbx CDR StartTime 2025-01-30 12:40:06 - End Time 2025-01-30 15:40:06 [2025-01-30 15:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364640', 'tblTempUsageDetail_20' ) start [2025-01-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364640', 'tblTempUsageDetail_20' ) end [2025-01-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364640', 'tblTempVendorCDR_20' ) start [2025-01-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364640', 'tblTempVendorCDR_20' ) end [2025-01-30 15:40:29] Production.INFO: ProcessCDR(1,14364640,1,1,2) [2025-01-30 15:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364640', 'tblTempUsageDetail_20' ) start [2025-01-30 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364640', 'tblTempUsageDetail_20' ) end [2025-01-30 15:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:40:34] Production.INFO: ==8040== Releasing lock... [2025-01-30 15:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:40:34] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:41:06 [end_date_ymd] => 2025-01-30 15:41:06 [RateCDR] => 1 ) [2025-01-30 15:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:41:06' and `end` < '2025-01-30 15:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:41:35] Production.INFO: count ==5253 [2025-01-30 15:41:37] Production.ERROR: pbx CDR StartTime 2025-01-30 12:41:06 - End Time 2025-01-30 15:41:06 [2025-01-30 15:41:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:41:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364646', 'tblTempUsageDetail_20' ) start [2025-01-30 15:41:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364646', 'tblTempUsageDetail_20' ) end [2025-01-30 15:41:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364646', 'tblTempVendorCDR_20' ) start [2025-01-30 15:41:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364646', 'tblTempVendorCDR_20' ) end [2025-01-30 15:41:38] Production.INFO: ProcessCDR(1,14364646,1,1,2) [2025-01-30 15:41:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:41:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:41:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:41:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:41:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364646', 'tblTempUsageDetail_20' ) start [2025-01-30 15:41:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364646', 'tblTempUsageDetail_20' ) end [2025-01-30 15:41:43] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:41:44] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:41:44] Production.INFO: ==8118== Releasing lock... [2025-01-30 15:41:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:41:44] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:42:05 [end_date_ymd] => 2025-01-30 15:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:42:05' and `end` < '2025-01-30 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-30 15:42:29] Production.INFO: count ==5263 [2025-01-30 15:42:31] Production.ERROR: pbx CDR StartTime 2025-01-30 12:42:05 - End Time 2025-01-30 15:42:05 [2025-01-30 15:42:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364651', 'tblTempUsageDetail_20' ) start [2025-01-30 15:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364651', 'tblTempUsageDetail_20' ) end [2025-01-30 15:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364651', 'tblTempVendorCDR_20' ) start [2025-01-30 15:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364651', 'tblTempVendorCDR_20' ) end [2025-01-30 15:42:31] Production.INFO: ProcessCDR(1,14364651,1,1,2) [2025-01-30 15:42:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:42:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:42:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:42:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364651', 'tblTempUsageDetail_20' ) start [2025-01-30 15:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364651', 'tblTempUsageDetail_20' ) end [2025-01-30 15:42:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:42:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:42:36] Production.INFO: ==8191== Releasing lock... [2025-01-30 15:42:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:42:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:43:05 [end_date_ymd] => 2025-01-30 15:43:05 [RateCDR] => 1 ) [2025-01-30 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:43:05' and `end` < '2025-01-30 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:43:25] Production.INFO: count ==5245 [2025-01-30 15:43:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:43:05 - End Time 2025-01-30 15:43:05 [2025-01-30 15:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364656', 'tblTempUsageDetail_20' ) start [2025-01-30 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364656', 'tblTempUsageDetail_20' ) end [2025-01-30 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364656', 'tblTempVendorCDR_20' ) start [2025-01-30 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364656', 'tblTempVendorCDR_20' ) end [2025-01-30 15:43:28] Production.INFO: ProcessCDR(1,14364656,1,1,2) [2025-01-30 15:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364656', 'tblTempUsageDetail_20' ) start [2025-01-30 15:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364656', 'tblTempUsageDetail_20' ) end [2025-01-30 15:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:43:33] Production.INFO: ==8265== Releasing lock... [2025-01-30 15:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:43:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:44:05 [end_date_ymd] => 2025-01-30 15:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:44:05' and `end` < '2025-01-30 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-30 15:44:23] Production.INFO: count ==5230 [2025-01-30 15:44:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:44:05 - End Time 2025-01-30 15:44:05 [2025-01-30 15:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364661', 'tblTempUsageDetail_20' ) start [2025-01-30 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364661', 'tblTempUsageDetail_20' ) end [2025-01-30 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364661', 'tblTempVendorCDR_20' ) start [2025-01-30 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364661', 'tblTempVendorCDR_20' ) end [2025-01-30 15:44:26] Production.INFO: ProcessCDR(1,14364661,1,1,2) [2025-01-30 15:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364661', 'tblTempUsageDetail_20' ) start [2025-01-30 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364661', 'tblTempUsageDetail_20' ) end [2025-01-30 15:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:44:32] Production.INFO: ==8337== Releasing lock... [2025-01-30 15:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:44:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:45:05 [end_date_ymd] => 2025-01-30 15:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:45:05' and `end` < '2025-01-30 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-30 15:45:24] Production.INFO: count ==5205 [2025-01-30 15:45:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:45:05 - End Time 2025-01-30 15:45:05 [2025-01-30 15:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364666', 'tblTempUsageDetail_20' ) start [2025-01-30 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364666', 'tblTempUsageDetail_20' ) end [2025-01-30 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364666', 'tblTempVendorCDR_20' ) start [2025-01-30 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364666', 'tblTempVendorCDR_20' ) end [2025-01-30 15:45:27] Production.INFO: ProcessCDR(1,14364666,1,1,2) [2025-01-30 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364666', 'tblTempUsageDetail_20' ) start [2025-01-30 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364666', 'tblTempUsageDetail_20' ) end [2025-01-30 15:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:45:32] Production.INFO: ==8409== Releasing lock... [2025-01-30 15:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:45:32] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:46:05 [end_date_ymd] => 2025-01-30 15:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:46:05' and `end` < '2025-01-30 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-30 15:46:24] Production.INFO: count ==5203 [2025-01-30 15:46:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:46:05 - End Time 2025-01-30 15:46:05 [2025-01-30 15:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364671', 'tblTempUsageDetail_20' ) start [2025-01-30 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364671', 'tblTempUsageDetail_20' ) end [2025-01-30 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364671', 'tblTempVendorCDR_20' ) start [2025-01-30 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364671', 'tblTempVendorCDR_20' ) end [2025-01-30 15:46:26] Production.INFO: ProcessCDR(1,14364671,1,1,2) [2025-01-30 15:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364671', 'tblTempUsageDetail_20' ) start [2025-01-30 15:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364671', 'tblTempUsageDetail_20' ) end [2025-01-30 15:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:46:30] Production.INFO: ==8481== Releasing lock... [2025-01-30 15:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:46:30] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:47:06 [end_date_ymd] => 2025-01-30 15:47:06 [RateCDR] => 1 ) [2025-01-30 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:47:06' and `end` < '2025-01-30 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:47:27] Production.INFO: count ==5201 [2025-01-30 15:47:29] Production.ERROR: pbx CDR StartTime 2025-01-30 12:47:06 - End Time 2025-01-30 15:47:06 [2025-01-30 15:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364676', 'tblTempUsageDetail_20' ) start [2025-01-30 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364676', 'tblTempUsageDetail_20' ) end [2025-01-30 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364676', 'tblTempVendorCDR_20' ) start [2025-01-30 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364676', 'tblTempVendorCDR_20' ) end [2025-01-30 15:47:29] Production.INFO: ProcessCDR(1,14364676,1,1,2) [2025-01-30 15:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364676', 'tblTempUsageDetail_20' ) start [2025-01-30 15:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364676', 'tblTempUsageDetail_20' ) end [2025-01-30 15:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:47:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:47:34] Production.INFO: ==8555== Releasing lock... [2025-01-30 15:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:47:34] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:48:05 [end_date_ymd] => 2025-01-30 15:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:48:05' and `end` < '2025-01-30 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-30 15:48:25] Production.INFO: count ==5205 [2025-01-30 15:48:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:48:05 - End Time 2025-01-30 15:48:05 [2025-01-30 15:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364681', 'tblTempUsageDetail_20' ) start [2025-01-30 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364681', 'tblTempUsageDetail_20' ) end [2025-01-30 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364681', 'tblTempVendorCDR_20' ) start [2025-01-30 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364681', 'tblTempVendorCDR_20' ) end [2025-01-30 15:48:27] Production.INFO: ProcessCDR(1,14364681,1,1,2) [2025-01-30 15:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364681', 'tblTempUsageDetail_20' ) start [2025-01-30 15:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364681', 'tblTempUsageDetail_20' ) end [2025-01-30 15:48:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:48:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:48:33] Production.INFO: ==8632== Releasing lock... [2025-01-30 15:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:48:33] Production.INFO: 67 MB #Memory Used# [2025-01-30 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:49:05 [end_date_ymd] => 2025-01-30 15:49:05 [RateCDR] => 1 ) [2025-01-30 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:49:05' and `end` < '2025-01-30 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:49:29] Production.INFO: count ==5227 [2025-01-30 15:49:31] Production.ERROR: pbx CDR StartTime 2025-01-30 12:49:05 - End Time 2025-01-30 15:49:05 [2025-01-30 15:49:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364686', 'tblTempUsageDetail_20' ) start [2025-01-30 15:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364686', 'tblTempUsageDetail_20' ) end [2025-01-30 15:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364686', 'tblTempVendorCDR_20' ) start [2025-01-30 15:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364686', 'tblTempVendorCDR_20' ) end [2025-01-30 15:49:31] Production.INFO: ProcessCDR(1,14364686,1,1,2) [2025-01-30 15:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:49:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364686', 'tblTempUsageDetail_20' ) start [2025-01-30 15:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364686', 'tblTempUsageDetail_20' ) end [2025-01-30 15:49:37] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:49:37] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:49:37] Production.INFO: ==8710== Releasing lock... [2025-01-30 15:49:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:49:37] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:50:07 [end_date_ymd] => 2025-01-30 15:50:07 [RateCDR] => 1 ) [2025-01-30 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:50:07' and `end` < '2025-01-30 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:50:28] Production.INFO: count ==5237 [2025-01-30 15:50:30] Production.ERROR: pbx CDR StartTime 2025-01-30 12:50:07 - End Time 2025-01-30 15:50:07 [2025-01-30 15:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364692', 'tblTempUsageDetail_20' ) start [2025-01-30 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364692', 'tblTempUsageDetail_20' ) end [2025-01-30 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364692', 'tblTempVendorCDR_20' ) start [2025-01-30 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364692', 'tblTempVendorCDR_20' ) end [2025-01-30 15:50:30] Production.INFO: ProcessCDR(1,14364692,1,1,2) [2025-01-30 15:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364692', 'tblTempUsageDetail_20' ) start [2025-01-30 15:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364692', 'tblTempUsageDetail_20' ) end [2025-01-30 15:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:50:36] Production.INFO: ==8789== Releasing lock... [2025-01-30 15:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:50:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:51:05 [end_date_ymd] => 2025-01-30 15:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:51:05' and `end` < '2025-01-30 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-30 15:51:29] Production.INFO: count ==5306 [2025-01-30 15:51:31] Production.ERROR: pbx CDR StartTime 2025-01-30 12:51:05 - End Time 2025-01-30 15:51:05 [2025-01-30 15:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364697', 'tblTempUsageDetail_20' ) start [2025-01-30 15:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364697', 'tblTempUsageDetail_20' ) end [2025-01-30 15:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364697', 'tblTempVendorCDR_20' ) start [2025-01-30 15:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364697', 'tblTempVendorCDR_20' ) end [2025-01-30 15:51:32] Production.INFO: ProcessCDR(1,14364697,1,1,2) [2025-01-30 15:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364697', 'tblTempUsageDetail_20' ) start [2025-01-30 15:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364697', 'tblTempUsageDetail_20' ) end [2025-01-30 15:51:37] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:51:37] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:51:37] Production.INFO: ==8866== Releasing lock... [2025-01-30 15:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:51:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:52:06 [end_date_ymd] => 2025-01-30 15:52:06 [RateCDR] => 1 ) [2025-01-30 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:52:06' and `end` < '2025-01-30 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:52:24] Production.INFO: count ==5335 [2025-01-30 15:52:26] Production.ERROR: pbx CDR StartTime 2025-01-30 12:52:06 - End Time 2025-01-30 15:52:06 [2025-01-30 15:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364702', 'tblTempUsageDetail_20' ) start [2025-01-30 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364702', 'tblTempUsageDetail_20' ) end [2025-01-30 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364702', 'tblTempVendorCDR_20' ) start [2025-01-30 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364702', 'tblTempVendorCDR_20' ) end [2025-01-30 15:52:26] Production.INFO: ProcessCDR(1,14364702,1,1,2) [2025-01-30 15:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364702', 'tblTempUsageDetail_20' ) start [2025-01-30 15:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364702', 'tblTempUsageDetail_20' ) end [2025-01-30 15:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:52:31] Production.INFO: ==8939== Releasing lock... [2025-01-30 15:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:52:31] Production.INFO: 68 MB #Memory Used# [2025-01-30 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:53:05 [end_date_ymd] => 2025-01-30 15:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:53:05' and `end` < '2025-01-30 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-30 15:53:22] Production.INFO: count ==5331 [2025-01-30 15:53:24] Production.ERROR: pbx CDR StartTime 2025-01-30 12:53:05 - End Time 2025-01-30 15:53:05 [2025-01-30 15:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364707', 'tblTempUsageDetail_20' ) start [2025-01-30 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364707', 'tblTempUsageDetail_20' ) end [2025-01-30 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364707', 'tblTempVendorCDR_20' ) start [2025-01-30 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364707', 'tblTempVendorCDR_20' ) end [2025-01-30 15:53:24] Production.INFO: ProcessCDR(1,14364707,1,1,2) [2025-01-30 15:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364707', 'tblTempUsageDetail_20' ) start [2025-01-30 15:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364707', 'tblTempUsageDetail_20' ) end [2025-01-30 15:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:53:30] Production.INFO: ==9015== Releasing lock... [2025-01-30 15:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:53:30] Production.INFO: 68 MB #Memory Used# [2025-01-30 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:54:06 [end_date_ymd] => 2025-01-30 15:54:06 [RateCDR] => 1 ) [2025-01-30 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:54:06' and `end` < '2025-01-30 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:54:22] Production.INFO: count ==5316 [2025-01-30 15:54:24] Production.ERROR: pbx CDR StartTime 2025-01-30 12:54:06 - End Time 2025-01-30 15:54:06 [2025-01-30 15:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364712', 'tblTempUsageDetail_20' ) start [2025-01-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364712', 'tblTempUsageDetail_20' ) end [2025-01-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364712', 'tblTempVendorCDR_20' ) start [2025-01-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364712', 'tblTempVendorCDR_20' ) end [2025-01-30 15:54:24] Production.INFO: ProcessCDR(1,14364712,1,1,2) [2025-01-30 15:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364712', 'tblTempUsageDetail_20' ) start [2025-01-30 15:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364712', 'tblTempUsageDetail_20' ) end [2025-01-30 15:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:54:29] Production.INFO: ==9128== Releasing lock... [2025-01-30 15:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:54:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:55:05 [end_date_ymd] => 2025-01-30 15:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:55:05' and `end` < '2025-01-30 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-30 15:55:20] Production.INFO: count ==5315 [2025-01-30 15:55:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:55:05 - End Time 2025-01-30 15:55:05 [2025-01-30 15:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364717', 'tblTempUsageDetail_20' ) start [2025-01-30 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364717', 'tblTempUsageDetail_20' ) end [2025-01-30 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364717', 'tblTempVendorCDR_20' ) start [2025-01-30 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364717', 'tblTempVendorCDR_20' ) end [2025-01-30 15:55:23] Production.INFO: ProcessCDR(1,14364717,1,1,2) [2025-01-30 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364717', 'tblTempUsageDetail_20' ) start [2025-01-30 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364717', 'tblTempUsageDetail_20' ) end [2025-01-30 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:55:28] Production.INFO: ==9207== Releasing lock... [2025-01-30 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:55:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:56:06 [end_date_ymd] => 2025-01-30 15:56:06 [RateCDR] => 1 ) [2025-01-30 15: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-30 12:56:06' and `end` < '2025-01-30 15: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-30 15:56:25] Production.INFO: count ==5296 [2025-01-30 15:56:27] Production.ERROR: pbx CDR StartTime 2025-01-30 12:56:06 - End Time 2025-01-30 15:56:06 [2025-01-30 15:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364722', 'tblTempUsageDetail_20' ) start [2025-01-30 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364722', 'tblTempUsageDetail_20' ) end [2025-01-30 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364722', 'tblTempVendorCDR_20' ) start [2025-01-30 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364722', 'tblTempVendorCDR_20' ) end [2025-01-30 15:56:28] Production.INFO: ProcessCDR(1,14364722,1,1,2) [2025-01-30 15:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364722', 'tblTempUsageDetail_20' ) start [2025-01-30 15:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364722', 'tblTempUsageDetail_20' ) end [2025-01-30 15:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:56:31] Production.INFO: ==9282== Releasing lock... [2025-01-30 15:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:56:31] Production.INFO: 68 MB #Memory Used# [2025-01-30 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:57:05 [end_date_ymd] => 2025-01-30 15:57:05 [RateCDR] => 1 ) [2025-01-30 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 12:57:05' and `end` < '2025-01-30 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 15:57:20] Production.INFO: count ==5289 [2025-01-30 15:57:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:57:05 - End Time 2025-01-30 15:57:05 [2025-01-30 15:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364727', 'tblTempUsageDetail_20' ) start [2025-01-30 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364727', 'tblTempUsageDetail_20' ) end [2025-01-30 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364727', 'tblTempVendorCDR_20' ) start [2025-01-30 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364727', 'tblTempVendorCDR_20' ) end [2025-01-30 15:57:23] Production.INFO: ProcessCDR(1,14364727,1,1,2) [2025-01-30 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364727', 'tblTempUsageDetail_20' ) start [2025-01-30 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364727', 'tblTempUsageDetail_20' ) end [2025-01-30 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:57:28] Production.INFO: ==9356== Releasing lock... [2025-01-30 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:57:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:58:05 [end_date_ymd] => 2025-01-30 15:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:58:05' and `end` < '2025-01-30 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-30 15:58:20] Production.INFO: count ==5295 [2025-01-30 15:58:23] Production.ERROR: pbx CDR StartTime 2025-01-30 12:58:05 - End Time 2025-01-30 15:58:05 [2025-01-30 15:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364732', 'tblTempUsageDetail_20' ) start [2025-01-30 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364732', 'tblTempUsageDetail_20' ) end [2025-01-30 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364732', 'tblTempVendorCDR_20' ) start [2025-01-30 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364732', 'tblTempVendorCDR_20' ) end [2025-01-30 15:58:23] Production.INFO: ProcessCDR(1,14364732,1,1,2) [2025-01-30 15:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364732', 'tblTempUsageDetail_20' ) start [2025-01-30 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364732', 'tblTempUsageDetail_20' ) end [2025-01-30 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:58:28] Production.INFO: ==9426== Releasing lock... [2025-01-30 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:58:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 12:59:05 [end_date_ymd] => 2025-01-30 15:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 12:59:05' and `end` < '2025-01-30 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-30 15:59:23] Production.INFO: count ==5292 [2025-01-30 15:59:25] Production.ERROR: pbx CDR StartTime 2025-01-30 12:59:05 - End Time 2025-01-30 15:59:05 [2025-01-30 15:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364737', 'tblTempUsageDetail_20' ) start [2025-01-30 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364737', 'tblTempUsageDetail_20' ) end [2025-01-30 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364737', 'tblTempVendorCDR_20' ) start [2025-01-30 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364737', 'tblTempVendorCDR_20' ) end [2025-01-30 15:59:25] Production.INFO: ProcessCDR(1,14364737,1,1,2) [2025-01-30 15:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 15:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 15:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364737', 'tblTempUsageDetail_20' ) start [2025-01-30 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364737', 'tblTempUsageDetail_20' ) end [2025-01-30 15:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 15:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 15:59:31] Production.INFO: ==9500== Releasing lock... [2025-01-30 15:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 15:59:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:00:06 [end_date_ymd] => 2025-01-30 16:00:06 [RateCDR] => 1 ) [2025-01-30 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:00:06' and `end` < '2025-01-30 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:00:36] Production.INFO: count ==5291 [2025-01-30 16:00:39] Production.ERROR: pbx CDR StartTime 2025-01-30 13:00:06 - End Time 2025-01-30 16:00:06 [2025-01-30 16:00:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364743', 'tblTempUsageDetail_20' ) start [2025-01-30 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364743', 'tblTempUsageDetail_20' ) end [2025-01-30 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364743', 'tblTempVendorCDR_20' ) start [2025-01-30 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364743', 'tblTempVendorCDR_20' ) end [2025-01-30 16:00:39] Production.INFO: ProcessCDR(1,14364743,1,1,2) [2025-01-30 16:00:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:00:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:00:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:00:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364743', 'tblTempUsageDetail_20' ) start [2025-01-30 16:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364743', 'tblTempUsageDetail_20' ) end [2025-01-30 16:00:44] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:00:44] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:00:44] Production.INFO: ==9584== Releasing lock... [2025-01-30 16:00:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:00:44] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:01:05 [end_date_ymd] => 2025-01-30 16:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:01:05' and `end` < '2025-01-30 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-30 16:01:33] Production.INFO: count ==5324 [2025-01-30 16:01:35] Production.ERROR: pbx CDR StartTime 2025-01-30 13:01:05 - End Time 2025-01-30 16:01:05 [2025-01-30 16:01:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364748', 'tblTempUsageDetail_20' ) start [2025-01-30 16:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364748', 'tblTempUsageDetail_20' ) end [2025-01-30 16:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364748', 'tblTempVendorCDR_20' ) start [2025-01-30 16:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364748', 'tblTempVendorCDR_20' ) end [2025-01-30 16:01:35] Production.INFO: ProcessCDR(1,14364748,1,1,2) [2025-01-30 16:01:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:01:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:01:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:01:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364748', 'tblTempUsageDetail_20' ) start [2025-01-30 16:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364748', 'tblTempUsageDetail_20' ) end [2025-01-30 16:01:40] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:01:40] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:01:40] Production.INFO: ==9673== Releasing lock... [2025-01-30 16:01:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:01:40] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:02:06 [end_date_ymd] => 2025-01-30 16:02:06 [RateCDR] => 1 ) [2025-01-30 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:02:06' and `end` < '2025-01-30 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:02:24] Production.INFO: count ==5297 [2025-01-30 16:02:26] Production.ERROR: pbx CDR StartTime 2025-01-30 13:02:06 - End Time 2025-01-30 16:02:06 [2025-01-30 16:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364753', 'tblTempUsageDetail_20' ) start [2025-01-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364753', 'tblTempUsageDetail_20' ) end [2025-01-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364753', 'tblTempVendorCDR_20' ) start [2025-01-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364753', 'tblTempVendorCDR_20' ) end [2025-01-30 16:02:26] Production.INFO: ProcessCDR(1,14364753,1,1,2) [2025-01-30 16:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364753', 'tblTempUsageDetail_20' ) start [2025-01-30 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364753', 'tblTempUsageDetail_20' ) end [2025-01-30 16:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:02:31] Production.INFO: ==9746== Releasing lock... [2025-01-30 16:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:02:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:03:05 [end_date_ymd] => 2025-01-30 16:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:03:05' and `end` < '2025-01-30 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-30 16:03:22] Production.INFO: count ==5307 [2025-01-30 16:03:25] Production.ERROR: pbx CDR StartTime 2025-01-30 13:03:05 - End Time 2025-01-30 16:03:05 [2025-01-30 16:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364758', 'tblTempUsageDetail_20' ) start [2025-01-30 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364758', 'tblTempUsageDetail_20' ) end [2025-01-30 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364758', 'tblTempVendorCDR_20' ) start [2025-01-30 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364758', 'tblTempVendorCDR_20' ) end [2025-01-30 16:03:25] Production.INFO: ProcessCDR(1,14364758,1,1,2) [2025-01-30 16:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364758', 'tblTempUsageDetail_20' ) start [2025-01-30 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364758', 'tblTempUsageDetail_20' ) end [2025-01-30 16:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:03:30] Production.INFO: ==9821== Releasing lock... [2025-01-30 16:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:03:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-30 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:04:06 [end_date_ymd] => 2025-01-30 16:04:06 [RateCDR] => 1 ) [2025-01-30 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:04:06' and `end` < '2025-01-30 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:04:25] Production.INFO: count ==5274 [2025-01-30 16:04:27] Production.ERROR: pbx CDR StartTime 2025-01-30 13:04:06 - End Time 2025-01-30 16:04:06 [2025-01-30 16:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364763', 'tblTempUsageDetail_20' ) start [2025-01-30 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364763', 'tblTempUsageDetail_20' ) end [2025-01-30 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364763', 'tblTempVendorCDR_20' ) start [2025-01-30 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364763', 'tblTempVendorCDR_20' ) end [2025-01-30 16:04:27] Production.INFO: ProcessCDR(1,14364763,1,1,2) [2025-01-30 16:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364763', 'tblTempUsageDetail_20' ) start [2025-01-30 16:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364763', 'tblTempUsageDetail_20' ) end [2025-01-30 16:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:04:33] Production.INFO: ==9896== Releasing lock... [2025-01-30 16:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:04:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:05:05 [end_date_ymd] => 2025-01-30 16:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:05:05' and `end` < '2025-01-30 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-30 16:05:23] Production.INFO: count ==5275 [2025-01-30 16:05:26] Production.ERROR: pbx CDR StartTime 2025-01-30 13:05:05 - End Time 2025-01-30 16:05:05 [2025-01-30 16:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364768', 'tblTempUsageDetail_20' ) start [2025-01-30 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364768', 'tblTempUsageDetail_20' ) end [2025-01-30 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364768', 'tblTempVendorCDR_20' ) start [2025-01-30 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364768', 'tblTempVendorCDR_20' ) end [2025-01-30 16:05:26] Production.INFO: ProcessCDR(1,14364768,1,1,2) [2025-01-30 16:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364768', 'tblTempUsageDetail_20' ) start [2025-01-30 16:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364768', 'tblTempUsageDetail_20' ) end [2025-01-30 16:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:05:31] Production.INFO: ==9972== Releasing lock... [2025-01-30 16:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:05:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-30 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:06:05 [end_date_ymd] => 2025-01-30 16:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:06:05' and `end` < '2025-01-30 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-30 16:06:25] Production.INFO: count ==5265 [2025-01-30 16:06:27] Production.ERROR: pbx CDR StartTime 2025-01-30 13:06:05 - End Time 2025-01-30 16:06:05 [2025-01-30 16:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364773', 'tblTempUsageDetail_20' ) start [2025-01-30 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364773', 'tblTempUsageDetail_20' ) end [2025-01-30 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364773', 'tblTempVendorCDR_20' ) start [2025-01-30 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364773', 'tblTempVendorCDR_20' ) end [2025-01-30 16:06:28] Production.INFO: ProcessCDR(1,14364773,1,1,2) [2025-01-30 16:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364773', 'tblTempUsageDetail_20' ) start [2025-01-30 16:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364773', 'tblTempUsageDetail_20' ) end [2025-01-30 16:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:06:34] Production.INFO: ==10047== Releasing lock... [2025-01-30 16:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:06:34] Production.INFO: 68 MB #Memory Used# [2025-01-30 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:07:05 [end_date_ymd] => 2025-01-30 16:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:07:05' and `end` < '2025-01-30 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-30 16:07:24] Production.INFO: count ==5244 [2025-01-30 16:07:27] Production.ERROR: pbx CDR StartTime 2025-01-30 13:07:05 - End Time 2025-01-30 16:07:05 [2025-01-30 16:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364778', 'tblTempUsageDetail_20' ) start [2025-01-30 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364778', 'tblTempUsageDetail_20' ) end [2025-01-30 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364778', 'tblTempVendorCDR_20' ) start [2025-01-30 16:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364778', 'tblTempVendorCDR_20' ) end [2025-01-30 16:07:27] Production.INFO: ProcessCDR(1,14364778,1,1,2) [2025-01-30 16:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364778', 'tblTempUsageDetail_20' ) start [2025-01-30 16:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364778', 'tblTempUsageDetail_20' ) end [2025-01-30 16:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:07:32] Production.INFO: ==10124== Releasing lock... [2025-01-30 16:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:07:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:08:06 [end_date_ymd] => 2025-01-30 16:08:06 [RateCDR] => 1 ) [2025-01-30 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:08:06' and `end` < '2025-01-30 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:08:23] Production.INFO: count ==5229 [2025-01-30 16:08:26] Production.ERROR: pbx CDR StartTime 2025-01-30 13:08:06 - End Time 2025-01-30 16:08:06 [2025-01-30 16:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364783', 'tblTempUsageDetail_20' ) start [2025-01-30 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364783', 'tblTempUsageDetail_20' ) end [2025-01-30 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364783', 'tblTempVendorCDR_20' ) start [2025-01-30 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364783', 'tblTempVendorCDR_20' ) end [2025-01-30 16:08:26] Production.INFO: ProcessCDR(1,14364783,1,1,2) [2025-01-30 16:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364783', 'tblTempUsageDetail_20' ) start [2025-01-30 16:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364783', 'tblTempUsageDetail_20' ) end [2025-01-30 16:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:08:31] Production.INFO: ==10198== Releasing lock... [2025-01-30 16:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:08:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:09:06 [end_date_ymd] => 2025-01-30 16:09:06 [RateCDR] => 1 ) [2025-01-30 16: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-30 13:09:06' and `end` < '2025-01-30 16: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-30 16:09:23] Production.INFO: count ==5226 [2025-01-30 16:09:25] Production.ERROR: pbx CDR StartTime 2025-01-30 13:09:06 - End Time 2025-01-30 16:09:06 [2025-01-30 16:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364788', 'tblTempUsageDetail_20' ) start [2025-01-30 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364788', 'tblTempUsageDetail_20' ) end [2025-01-30 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364788', 'tblTempVendorCDR_20' ) start [2025-01-30 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364788', 'tblTempVendorCDR_20' ) end [2025-01-30 16:09:26] Production.INFO: ProcessCDR(1,14364788,1,1,2) [2025-01-30 16:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364788', 'tblTempUsageDetail_20' ) start [2025-01-30 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364788', 'tblTempUsageDetail_20' ) end [2025-01-30 16:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:09:31] Production.INFO: ==10275== Releasing lock... [2025-01-30 16:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:09:31] Production.INFO: 67 MB #Memory Used# [2025-01-30 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:10:06 [end_date_ymd] => 2025-01-30 16:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 13:10:06' and `end` < '2025-01-30 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-30 16:10:21] Production.INFO: count ==5220 [2025-01-30 16:10:24] Production.ERROR: pbx CDR StartTime 2025-01-30 13:10:06 - End Time 2025-01-30 16:10:06 [2025-01-30 16:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364794', 'tblTempUsageDetail_20' ) start [2025-01-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364794', 'tblTempUsageDetail_20' ) end [2025-01-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364794', 'tblTempVendorCDR_20' ) start [2025-01-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364794', 'tblTempVendorCDR_20' ) end [2025-01-30 16:10:24] Production.INFO: ProcessCDR(1,14364794,1,1,2) [2025-01-30 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364794', 'tblTempUsageDetail_20' ) start [2025-01-30 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364794', 'tblTempUsageDetail_20' ) end [2025-01-30 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:10:29] Production.INFO: ==10393== Releasing lock... [2025-01-30 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:10:29] Production.INFO: 67 MB #Memory Used# [2025-01-30 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:11:06 [end_date_ymd] => 2025-01-30 16:11:06 [RateCDR] => 1 ) [2025-01-30 16: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-30 13:11:06' and `end` < '2025-01-30 16: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-30 16:11:27] Production.INFO: count ==5236 [2025-01-30 16:11:29] Production.ERROR: pbx CDR StartTime 2025-01-30 13:11:06 - End Time 2025-01-30 16:11:06 [2025-01-30 16:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364799', 'tblTempUsageDetail_20' ) start [2025-01-30 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364799', 'tblTempUsageDetail_20' ) end [2025-01-30 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364799', 'tblTempVendorCDR_20' ) start [2025-01-30 16:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364799', 'tblTempVendorCDR_20' ) end [2025-01-30 16:11:29] Production.INFO: ProcessCDR(1,14364799,1,1,2) [2025-01-30 16:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364799', 'tblTempUsageDetail_20' ) start [2025-01-30 16:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364799', 'tblTempUsageDetail_20' ) end [2025-01-30 16:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:11:34] Production.INFO: ==10469== Releasing lock... [2025-01-30 16:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:11:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-30 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:12:05 [end_date_ymd] => 2025-01-30 16:12:05 [RateCDR] => 1 ) [2025-01-30 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:12:05' and `end` < '2025-01-30 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:12:24] Production.INFO: count ==5222 [2025-01-30 16:12:27] Production.ERROR: pbx CDR StartTime 2025-01-30 13:12:05 - End Time 2025-01-30 16:12:05 [2025-01-30 16:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364804', 'tblTempUsageDetail_20' ) start [2025-01-30 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364804', 'tblTempUsageDetail_20' ) end [2025-01-30 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364804', 'tblTempVendorCDR_20' ) start [2025-01-30 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364804', 'tblTempVendorCDR_20' ) end [2025-01-30 16:12:27] Production.INFO: ProcessCDR(1,14364804,1,1,2) [2025-01-30 16:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364804', 'tblTempUsageDetail_20' ) start [2025-01-30 16:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364804', 'tblTempUsageDetail_20' ) end [2025-01-30 16:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:12:32] Production.INFO: ==10544== Releasing lock... [2025-01-30 16:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:12:32] Production.INFO: 67 MB #Memory Used# [2025-01-30 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:13:06 [end_date_ymd] => 2025-01-30 16:13:06 [RateCDR] => 1 ) [2025-01-30 16:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:13:06' and `end` < '2025-01-30 16:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:13:23] Production.INFO: count ==5203 [2025-01-30 16:13:25] Production.ERROR: pbx CDR StartTime 2025-01-30 13:13:06 - End Time 2025-01-30 16:13:06 [2025-01-30 16:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364809', 'tblTempUsageDetail_20' ) start [2025-01-30 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364809', 'tblTempUsageDetail_20' ) end [2025-01-30 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364809', 'tblTempVendorCDR_20' ) start [2025-01-30 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364809', 'tblTempVendorCDR_20' ) end [2025-01-30 16:13:25] Production.INFO: ProcessCDR(1,14364809,1,1,2) [2025-01-30 16:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364809', 'tblTempUsageDetail_20' ) start [2025-01-30 16:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364809', 'tblTempUsageDetail_20' ) end [2025-01-30 16:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:13:30] Production.INFO: ==10620== Releasing lock... [2025-01-30 16:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:13:30] Production.INFO: 67 MB #Memory Used# [2025-01-30 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:14:05 [end_date_ymd] => 2025-01-30 16:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:14:05' and `end` < '2025-01-30 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-30 16:14:21] Production.INFO: count ==5169 [2025-01-30 16:14:24] Production.ERROR: pbx CDR StartTime 2025-01-30 13:14:05 - End Time 2025-01-30 16:14:05 [2025-01-30 16:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364814', 'tblTempUsageDetail_20' ) start [2025-01-30 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364814', 'tblTempUsageDetail_20' ) end [2025-01-30 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364814', 'tblTempVendorCDR_20' ) start [2025-01-30 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364814', 'tblTempVendorCDR_20' ) end [2025-01-30 16:14:24] Production.INFO: ProcessCDR(1,14364814,1,1,2) [2025-01-30 16:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364814', 'tblTempUsageDetail_20' ) start [2025-01-30 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364814', 'tblTempUsageDetail_20' ) end [2025-01-30 16:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:14:28] Production.INFO: ==10696== Releasing lock... [2025-01-30 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:14:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:15:05 [end_date_ymd] => 2025-01-30 16:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:15:05' and `end` < '2025-01-30 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-30 16:15:21] Production.INFO: count ==5123 [2025-01-30 16:15:23] Production.ERROR: pbx CDR StartTime 2025-01-30 13:15:05 - End Time 2025-01-30 16:15:05 [2025-01-30 16:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364819', 'tblTempUsageDetail_20' ) start [2025-01-30 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364819', 'tblTempUsageDetail_20' ) end [2025-01-30 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364819', 'tblTempVendorCDR_20' ) start [2025-01-30 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364819', 'tblTempVendorCDR_20' ) end [2025-01-30 16:15:23] Production.INFO: ProcessCDR(1,14364819,1,1,2) [2025-01-30 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364819', 'tblTempUsageDetail_20' ) start [2025-01-30 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364819', 'tblTempUsageDetail_20' ) end [2025-01-30 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:15:28] Production.INFO: ==10772== Releasing lock... [2025-01-30 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:15:28] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:16:05 [end_date_ymd] => 2025-01-30 16:16:05 [RateCDR] => 1 ) [2025-01-30 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:16:05' and `end` < '2025-01-30 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:16:20] Production.INFO: count ==5125 [2025-01-30 16:16:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:16:05 - End Time 2025-01-30 16:16:05 [2025-01-30 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364824', 'tblTempUsageDetail_20' ) start [2025-01-30 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364824', 'tblTempUsageDetail_20' ) end [2025-01-30 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364824', 'tblTempVendorCDR_20' ) start [2025-01-30 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364824', 'tblTempVendorCDR_20' ) end [2025-01-30 16:16:22] Production.INFO: ProcessCDR(1,14364824,1,1,2) [2025-01-30 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364824', 'tblTempUsageDetail_20' ) start [2025-01-30 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364824', 'tblTempUsageDetail_20' ) end [2025-01-30 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:16:27] Production.INFO: ==10853== Releasing lock... [2025-01-30 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:16:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:17:05 [end_date_ymd] => 2025-01-30 16:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:17:05' and `end` < '2025-01-30 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-30 16:17:25] Production.INFO: count ==5118 [2025-01-30 16:17:27] Production.ERROR: pbx CDR StartTime 2025-01-30 13:17:05 - End Time 2025-01-30 16:17:05 [2025-01-30 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364829', 'tblTempUsageDetail_20' ) start [2025-01-30 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364829', 'tblTempUsageDetail_20' ) end [2025-01-30 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364829', 'tblTempVendorCDR_20' ) start [2025-01-30 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364829', 'tblTempVendorCDR_20' ) end [2025-01-30 16:17:27] Production.INFO: ProcessCDR(1,14364829,1,1,2) [2025-01-30 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364829', 'tblTempUsageDetail_20' ) start [2025-01-30 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364829', 'tblTempUsageDetail_20' ) end [2025-01-30 16:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:17:32] Production.INFO: ==10925== Releasing lock... [2025-01-30 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:17:32] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:18:05 [end_date_ymd] => 2025-01-30 16:18:05 [RateCDR] => 1 ) [2025-01-30 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:18:05' and `end` < '2025-01-30 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:18:22] Production.INFO: count ==5089 [2025-01-30 16:18:24] Production.ERROR: pbx CDR StartTime 2025-01-30 13:18:05 - End Time 2025-01-30 16:18:05 [2025-01-30 16:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364834', 'tblTempUsageDetail_20' ) start [2025-01-30 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364834', 'tblTempUsageDetail_20' ) end [2025-01-30 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364834', 'tblTempVendorCDR_20' ) start [2025-01-30 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364834', 'tblTempVendorCDR_20' ) end [2025-01-30 16:18:24] Production.INFO: ProcessCDR(1,14364834,1,1,2) [2025-01-30 16:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364834', 'tblTempUsageDetail_20' ) start [2025-01-30 16:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364834', 'tblTempUsageDetail_20' ) end [2025-01-30 16:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:18:29] Production.INFO: ==11012== Releasing lock... [2025-01-30 16:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:18:29] Production.INFO: 66 MB #Memory Used# [2025-01-30 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:19:05 [end_date_ymd] => 2025-01-30 16:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:19:05' and `end` < '2025-01-30 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-30 16:19:19] Production.INFO: count ==5079 [2025-01-30 16:19:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:19:05 - End Time 2025-01-30 16:19:05 [2025-01-30 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364839', 'tblTempUsageDetail_20' ) start [2025-01-30 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364839', 'tblTempUsageDetail_20' ) end [2025-01-30 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364839', 'tblTempVendorCDR_20' ) start [2025-01-30 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364839', 'tblTempVendorCDR_20' ) end [2025-01-30 16:19:21] Production.INFO: ProcessCDR(1,14364839,1,1,2) [2025-01-30 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364839', 'tblTempUsageDetail_20' ) start [2025-01-30 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364839', 'tblTempUsageDetail_20' ) end [2025-01-30 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:19:26] Production.INFO: ==11091== Releasing lock... [2025-01-30 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:19:26] Production.INFO: 66 MB #Memory Used# [2025-01-30 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:20:06 [end_date_ymd] => 2025-01-30 16:20:06 [RateCDR] => 1 ) [2025-01-30 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:20:06' and `end` < '2025-01-30 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:20:36] Production.INFO: count ==5090 [2025-01-30 16:20:38] Production.ERROR: pbx CDR StartTime 2025-01-30 13:20:06 - End Time 2025-01-30 16:20:06 [2025-01-30 16:20:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364845', 'tblTempUsageDetail_20' ) start [2025-01-30 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364845', 'tblTempUsageDetail_20' ) end [2025-01-30 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364845', 'tblTempVendorCDR_20' ) start [2025-01-30 16:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364845', 'tblTempVendorCDR_20' ) end [2025-01-30 16:20:38] Production.INFO: ProcessCDR(1,14364845,1,1,2) [2025-01-30 16:20:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:20:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:20:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:20:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364845', 'tblTempUsageDetail_20' ) start [2025-01-30 16:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364845', 'tblTempUsageDetail_20' ) end [2025-01-30 16:20:43] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:20:43] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:20:43] Production.INFO: ==11176== Releasing lock... [2025-01-30 16:20:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:20:43] Production.INFO: 66 MB #Memory Used# [2025-01-30 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:21:05 [end_date_ymd] => 2025-01-30 16:21:05 [RateCDR] => 1 ) [2025-01-30 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:21:05' and `end` < '2025-01-30 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:21:25] Production.INFO: count ==5139 [2025-01-30 16:21:27] Production.ERROR: pbx CDR StartTime 2025-01-30 13:21:05 - End Time 2025-01-30 16:21:05 [2025-01-30 16:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364850', 'tblTempUsageDetail_20' ) start [2025-01-30 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364850', 'tblTempUsageDetail_20' ) end [2025-01-30 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364850', 'tblTempVendorCDR_20' ) start [2025-01-30 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364850', 'tblTempVendorCDR_20' ) end [2025-01-30 16:21:27] Production.INFO: ProcessCDR(1,14364850,1,1,2) [2025-01-30 16:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364850', 'tblTempUsageDetail_20' ) start [2025-01-30 16:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364850', 'tblTempUsageDetail_20' ) end [2025-01-30 16:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:21:32] Production.INFO: ==11249== Releasing lock... [2025-01-30 16:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:21:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:22:05 [end_date_ymd] => 2025-01-30 16:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:22:05' and `end` < '2025-01-30 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-30 16:22:21] Production.INFO: count ==5106 [2025-01-30 16:22:23] Production.ERROR: pbx CDR StartTime 2025-01-30 13:22:05 - End Time 2025-01-30 16:22:05 [2025-01-30 16:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364855', 'tblTempUsageDetail_20' ) start [2025-01-30 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364855', 'tblTempUsageDetail_20' ) end [2025-01-30 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364855', 'tblTempVendorCDR_20' ) start [2025-01-30 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364855', 'tblTempVendorCDR_20' ) end [2025-01-30 16:22:23] Production.INFO: ProcessCDR(1,14364855,1,1,2) [2025-01-30 16:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364855', 'tblTempUsageDetail_20' ) start [2025-01-30 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364855', 'tblTempUsageDetail_20' ) end [2025-01-30 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:22:27] Production.INFO: ==11324== Releasing lock... [2025-01-30 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:22:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:23:06 [end_date_ymd] => 2025-01-30 16:23:06 [RateCDR] => 1 ) [2025-01-30 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:23:06' and `end` < '2025-01-30 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:23:19] Production.INFO: count ==5117 [2025-01-30 16:23:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:23:06 - End Time 2025-01-30 16:23:06 [2025-01-30 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364860', 'tblTempUsageDetail_20' ) start [2025-01-30 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364860', 'tblTempUsageDetail_20' ) end [2025-01-30 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364860', 'tblTempVendorCDR_20' ) start [2025-01-30 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364860', 'tblTempVendorCDR_20' ) end [2025-01-30 16:23:22] Production.INFO: ProcessCDR(1,14364860,1,1,2) [2025-01-30 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364860', 'tblTempUsageDetail_20' ) start [2025-01-30 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364860', 'tblTempUsageDetail_20' ) end [2025-01-30 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:23:27] Production.INFO: ==11396== Releasing lock... [2025-01-30 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:23:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:24:05 [end_date_ymd] => 2025-01-30 16:24:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:24:05' and `end` < '2025-01-30 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-30 16:24:21] Production.INFO: count ==5116 [2025-01-30 16:24:23] Production.ERROR: pbx CDR StartTime 2025-01-30 13:24:05 - End Time 2025-01-30 16:24:05 [2025-01-30 16:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364865', 'tblTempUsageDetail_20' ) start [2025-01-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364865', 'tblTempUsageDetail_20' ) end [2025-01-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364865', 'tblTempVendorCDR_20' ) start [2025-01-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364865', 'tblTempVendorCDR_20' ) end [2025-01-30 16:24:23] Production.INFO: ProcessCDR(1,14364865,1,1,2) [2025-01-30 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364865', 'tblTempUsageDetail_20' ) start [2025-01-30 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364865', 'tblTempUsageDetail_20' ) end [2025-01-30 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:24:28] Production.INFO: ==11471== Releasing lock... [2025-01-30 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:24:28] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:25:05 [end_date_ymd] => 2025-01-30 16:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:25:05' and `end` < '2025-01-30 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-30 16:25:24] Production.INFO: count ==5116 [2025-01-30 16:25:26] Production.ERROR: pbx CDR StartTime 2025-01-30 13:25:05 - End Time 2025-01-30 16:25:05 [2025-01-30 16:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364870', 'tblTempUsageDetail_20' ) start [2025-01-30 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364870', 'tblTempUsageDetail_20' ) end [2025-01-30 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364870', 'tblTempVendorCDR_20' ) start [2025-01-30 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364870', 'tblTempVendorCDR_20' ) end [2025-01-30 16:25:26] Production.INFO: ProcessCDR(1,14364870,1,1,2) [2025-01-30 16:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364870', 'tblTempUsageDetail_20' ) start [2025-01-30 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364870', 'tblTempUsageDetail_20' ) end [2025-01-30 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:25:31] Production.INFO: ==11582== Releasing lock... [2025-01-30 16:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:25:31] Production.INFO: 66.25 MB #Memory Used# [2025-01-30 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:26:05 [end_date_ymd] => 2025-01-30 16:26:05 [RateCDR] => 1 ) [2025-01-30 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:26:05' and `end` < '2025-01-30 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:26:34] Production.INFO: count ==5159 [2025-01-30 16:26:36] Production.ERROR: pbx CDR StartTime 2025-01-30 13:26:05 - End Time 2025-01-30 16:26:05 [2025-01-30 16:26:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364875', 'tblTempUsageDetail_20' ) start [2025-01-30 16:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364875', 'tblTempUsageDetail_20' ) end [2025-01-30 16:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364875', 'tblTempVendorCDR_20' ) start [2025-01-30 16:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364875', 'tblTempVendorCDR_20' ) end [2025-01-30 16:26:37] Production.INFO: ProcessCDR(1,14364875,1,1,2) [2025-01-30 16:26:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:26:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:26:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:26:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:26:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364875', 'tblTempUsageDetail_20' ) start [2025-01-30 16:26:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364875', 'tblTempUsageDetail_20' ) end [2025-01-30 16:26:42] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:26:42] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:26:43] Production.INFO: ==11658== Releasing lock... [2025-01-30 16:26:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:26:43] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:27:05 [end_date_ymd] => 2025-01-30 16:27:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:27:05' and `end` < '2025-01-30 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-30 16:27:26] Production.INFO: count ==5179 [2025-01-30 16:27:28] Production.ERROR: pbx CDR StartTime 2025-01-30 13:27:05 - End Time 2025-01-30 16:27:05 [2025-01-30 16:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364880', 'tblTempUsageDetail_20' ) start [2025-01-30 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364880', 'tblTempUsageDetail_20' ) end [2025-01-30 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364880', 'tblTempVendorCDR_20' ) start [2025-01-30 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364880', 'tblTempVendorCDR_20' ) end [2025-01-30 16:27:29] Production.INFO: ProcessCDR(1,14364880,1,1,2) [2025-01-30 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364880', 'tblTempUsageDetail_20' ) start [2025-01-30 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364880', 'tblTempUsageDetail_20' ) end [2025-01-30 16:27:34] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:27:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:27:34] Production.INFO: ==11731== Releasing lock... [2025-01-30 16:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:27:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:28:05 [end_date_ymd] => 2025-01-30 16:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:28:05' and `end` < '2025-01-30 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-30 16:28:19] Production.INFO: count ==5174 [2025-01-30 16:28:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:28:05 - End Time 2025-01-30 16:28:05 [2025-01-30 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364885', 'tblTempUsageDetail_20' ) start [2025-01-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364885', 'tblTempUsageDetail_20' ) end [2025-01-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364885', 'tblTempVendorCDR_20' ) start [2025-01-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364885', 'tblTempVendorCDR_20' ) end [2025-01-30 16:28:21] Production.INFO: ProcessCDR(1,14364885,1,1,2) [2025-01-30 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364885', 'tblTempUsageDetail_20' ) start [2025-01-30 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364885', 'tblTempUsageDetail_20' ) end [2025-01-30 16:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:28:25] Production.INFO: ==11804== Releasing lock... [2025-01-30 16:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:28:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:29:05 [end_date_ymd] => 2025-01-30 16:29:05 [RateCDR] => 1 ) [2025-01-30 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:29:05' and `end` < '2025-01-30 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:29:26] Production.INFO: count ==5176 [2025-01-30 16:29:28] Production.ERROR: pbx CDR StartTime 2025-01-30 13:29:05 - End Time 2025-01-30 16:29:05 [2025-01-30 16:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364890', 'tblTempUsageDetail_20' ) start [2025-01-30 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364890', 'tblTempUsageDetail_20' ) end [2025-01-30 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364890', 'tblTempVendorCDR_20' ) start [2025-01-30 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364890', 'tblTempVendorCDR_20' ) end [2025-01-30 16:29:28] Production.INFO: ProcessCDR(1,14364890,1,1,2) [2025-01-30 16:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364890', 'tblTempUsageDetail_20' ) start [2025-01-30 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364890', 'tblTempUsageDetail_20' ) end [2025-01-30 16:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:29:33] Production.INFO: ==11877== Releasing lock... [2025-01-30 16:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:29:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:30:05 [end_date_ymd] => 2025-01-30 16:30:05 [RateCDR] => 1 ) [2025-01-30 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:30:05' and `end` < '2025-01-30 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:30:26] Production.INFO: count ==5169 [2025-01-30 16:30:28] Production.ERROR: pbx CDR StartTime 2025-01-30 13:30:05 - End Time 2025-01-30 16:30:05 [2025-01-30 16:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364896', 'tblTempUsageDetail_20' ) start [2025-01-30 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364896', 'tblTempUsageDetail_20' ) end [2025-01-30 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364896', 'tblTempVendorCDR_20' ) start [2025-01-30 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364896', 'tblTempVendorCDR_20' ) end [2025-01-30 16:30:28] Production.INFO: ProcessCDR(1,14364896,1,1,2) [2025-01-30 16:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364896', 'tblTempUsageDetail_20' ) start [2025-01-30 16:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364896', 'tblTempUsageDetail_20' ) end [2025-01-30 16:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:30:34] Production.INFO: ==11954== Releasing lock... [2025-01-30 16:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:30:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:31:05 [end_date_ymd] => 2025-01-30 16:31:05 [RateCDR] => 1 ) [2025-01-30 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:31:05' and `end` < '2025-01-30 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:31:24] Production.INFO: count ==5160 [2025-01-30 16:31:26] Production.ERROR: pbx CDR StartTime 2025-01-30 13:31:05 - End Time 2025-01-30 16:31:05 [2025-01-30 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364901', 'tblTempUsageDetail_20' ) start [2025-01-30 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364901', 'tblTempUsageDetail_20' ) end [2025-01-30 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364901', 'tblTempVendorCDR_20' ) start [2025-01-30 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364901', 'tblTempVendorCDR_20' ) end [2025-01-30 16:31:26] Production.INFO: ProcessCDR(1,14364901,1,1,2) [2025-01-30 16:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364901', 'tblTempUsageDetail_20' ) start [2025-01-30 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364901', 'tblTempUsageDetail_20' ) end [2025-01-30 16:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:31:31] Production.INFO: ==12032== Releasing lock... [2025-01-30 16:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:31:31] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:32:05 [end_date_ymd] => 2025-01-30 16:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:32:05' and `end` < '2025-01-30 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-30 16:32:21] Production.INFO: count ==5177 [2025-01-30 16:32:24] Production.ERROR: pbx CDR StartTime 2025-01-30 13:32:05 - End Time 2025-01-30 16:32:05 [2025-01-30 16:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364906', 'tblTempUsageDetail_20' ) start [2025-01-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364906', 'tblTempUsageDetail_20' ) end [2025-01-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364906', 'tblTempVendorCDR_20' ) start [2025-01-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364906', 'tblTempVendorCDR_20' ) end [2025-01-30 16:32:24] Production.INFO: ProcessCDR(1,14364906,1,1,2) [2025-01-30 16:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364906', 'tblTempUsageDetail_20' ) start [2025-01-30 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364906', 'tblTempUsageDetail_20' ) end [2025-01-30 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:32:28] Production.INFO: ==12103== Releasing lock... [2025-01-30 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:32:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-30 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:33:05 [end_date_ymd] => 2025-01-30 16:33:05 [RateCDR] => 1 ) [2025-01-30 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:33:05' and `end` < '2025-01-30 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:33:19] Production.INFO: count ==5153 [2025-01-30 16:33:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:33:05 - End Time 2025-01-30 16:33:05 [2025-01-30 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364911', 'tblTempUsageDetail_20' ) start [2025-01-30 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364911', 'tblTempUsageDetail_20' ) end [2025-01-30 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364911', 'tblTempVendorCDR_20' ) start [2025-01-30 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364911', 'tblTempVendorCDR_20' ) end [2025-01-30 16:33:21] Production.INFO: ProcessCDR(1,14364911,1,1,2) [2025-01-30 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364911', 'tblTempUsageDetail_20' ) start [2025-01-30 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364911', 'tblTempUsageDetail_20' ) end [2025-01-30 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:33:26] Production.INFO: ==12182== Releasing lock... [2025-01-30 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:33:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:34:05 [end_date_ymd] => 2025-01-30 16:34:05 [RateCDR] => 1 ) [2025-01-30 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:34:05' and `end` < '2025-01-30 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:34:19] Production.INFO: count ==5138 [2025-01-30 16:34:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:34:05 - End Time 2025-01-30 16:34:05 [2025-01-30 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364916', 'tblTempUsageDetail_20' ) start [2025-01-30 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364916', 'tblTempUsageDetail_20' ) end [2025-01-30 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364916', 'tblTempVendorCDR_20' ) start [2025-01-30 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364916', 'tblTempVendorCDR_20' ) end [2025-01-30 16:34:21] Production.INFO: ProcessCDR(1,14364916,1,1,2) [2025-01-30 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364916', 'tblTempUsageDetail_20' ) start [2025-01-30 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364916', 'tblTempUsageDetail_20' ) end [2025-01-30 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:34:26] Production.INFO: ==12261== Releasing lock... [2025-01-30 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:34:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-30 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:35:05 [end_date_ymd] => 2025-01-30 16:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:35:05' and `end` < '2025-01-30 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-30 16:35:21] Production.INFO: count ==5084 [2025-01-30 16:35:23] Production.ERROR: pbx CDR StartTime 2025-01-30 13:35:05 - End Time 2025-01-30 16:35:05 [2025-01-30 16:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364921', 'tblTempUsageDetail_20' ) start [2025-01-30 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364921', 'tblTempUsageDetail_20' ) end [2025-01-30 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364921', 'tblTempVendorCDR_20' ) start [2025-01-30 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364921', 'tblTempVendorCDR_20' ) end [2025-01-30 16:35:23] Production.INFO: ProcessCDR(1,14364921,1,1,2) [2025-01-30 16:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364921', 'tblTempUsageDetail_20' ) start [2025-01-30 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364921', 'tblTempUsageDetail_20' ) end [2025-01-30 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:35:28] Production.INFO: ==12335== Releasing lock... [2025-01-30 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:35:28] Production.INFO: 66 MB #Memory Used# [2025-01-30 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:36:05 [end_date_ymd] => 2025-01-30 16:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:36:05' and `end` < '2025-01-30 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-30 16:36:19] Production.INFO: count ==5055 [2025-01-30 16:36:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:36:05 - End Time 2025-01-30 16:36:05 [2025-01-30 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364926', 'tblTempUsageDetail_20' ) start [2025-01-30 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364926', 'tblTempUsageDetail_20' ) end [2025-01-30 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364926', 'tblTempVendorCDR_20' ) start [2025-01-30 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364926', 'tblTempVendorCDR_20' ) end [2025-01-30 16:36:21] Production.INFO: ProcessCDR(1,14364926,1,1,2) [2025-01-30 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364926', 'tblTempUsageDetail_20' ) start [2025-01-30 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364926', 'tblTempUsageDetail_20' ) end [2025-01-30 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:36:26] Production.INFO: ==12406== Releasing lock... [2025-01-30 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:36:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:37:04 [end_date_ymd] => 2025-01-30 16:37:04 [RateCDR] => 1 ) [2025-01-30 16: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-30 13:37:04' and `end` < '2025-01-30 16: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-30 16:37:22] Production.INFO: count ==5037 [2025-01-30 16:37:24] Production.ERROR: pbx CDR StartTime 2025-01-30 13:37:04 - End Time 2025-01-30 16:37:04 [2025-01-30 16:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364931', 'tblTempUsageDetail_20' ) start [2025-01-30 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364931', 'tblTempUsageDetail_20' ) end [2025-01-30 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364931', 'tblTempVendorCDR_20' ) start [2025-01-30 16:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364931', 'tblTempVendorCDR_20' ) end [2025-01-30 16:37:24] Production.INFO: ProcessCDR(1,14364931,1,1,2) [2025-01-30 16:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364931', 'tblTempUsageDetail_20' ) start [2025-01-30 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364931', 'tblTempUsageDetail_20' ) end [2025-01-30 16:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:37:29] Production.INFO: ==12480== Releasing lock... [2025-01-30 16:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:37:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:38:05 [end_date_ymd] => 2025-01-30 16:38:05 [RateCDR] => 1 ) [2025-01-30 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:38:05' and `end` < '2025-01-30 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:38:22] Production.INFO: count ==5032 [2025-01-30 16:38:24] Production.ERROR: pbx CDR StartTime 2025-01-30 13:38:05 - End Time 2025-01-30 16:38:05 [2025-01-30 16:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364936', 'tblTempUsageDetail_20' ) start [2025-01-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364936', 'tblTempUsageDetail_20' ) end [2025-01-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364936', 'tblTempVendorCDR_20' ) start [2025-01-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364936', 'tblTempVendorCDR_20' ) end [2025-01-30 16:38:24] Production.INFO: ProcessCDR(1,14364936,1,1,2) [2025-01-30 16:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364936', 'tblTempUsageDetail_20' ) start [2025-01-30 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364936', 'tblTempUsageDetail_20' ) end [2025-01-30 16:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:38:29] Production.INFO: ==12556== Releasing lock... [2025-01-30 16:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:38:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:39:05 [end_date_ymd] => 2025-01-30 16:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:39:05' and `end` < '2025-01-30 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-30 16:39:19] Production.INFO: count ==5029 [2025-01-30 16:39:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:39:05 - End Time 2025-01-30 16:39:05 [2025-01-30 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364941', 'tblTempUsageDetail_20' ) start [2025-01-30 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364941', 'tblTempUsageDetail_20' ) end [2025-01-30 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364941', 'tblTempVendorCDR_20' ) start [2025-01-30 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364941', 'tblTempVendorCDR_20' ) end [2025-01-30 16:39:21] Production.INFO: ProcessCDR(1,14364941,1,1,2) [2025-01-30 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364941', 'tblTempUsageDetail_20' ) start [2025-01-30 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364941', 'tblTempUsageDetail_20' ) end [2025-01-30 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:39:25] Production.INFO: ==12630== Releasing lock... [2025-01-30 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:39:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:40:06 [end_date_ymd] => 2025-01-30 16:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 13:40:06' and `end` < '2025-01-30 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-30 16:40:20] Production.INFO: count ==5022 [2025-01-30 16:40:23] Production.ERROR: pbx CDR StartTime 2025-01-30 13:40:06 - End Time 2025-01-30 16:40:06 [2025-01-30 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364947', 'tblTempUsageDetail_20' ) start [2025-01-30 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364947', 'tblTempUsageDetail_20' ) end [2025-01-30 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364947', 'tblTempVendorCDR_20' ) start [2025-01-30 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364947', 'tblTempVendorCDR_20' ) end [2025-01-30 16:40:23] Production.INFO: ProcessCDR(1,14364947,1,1,2) [2025-01-30 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364947', 'tblTempUsageDetail_20' ) start [2025-01-30 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364947', 'tblTempUsageDetail_20' ) end [2025-01-30 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:40:26] Production.INFO: ==12706== Releasing lock... [2025-01-30 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:40:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:41:05 [end_date_ymd] => 2025-01-30 16:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:41:05' and `end` < '2025-01-30 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-30 16:41:19] Production.INFO: count ==5016 [2025-01-30 16:41:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:41:05 - End Time 2025-01-30 16:41:05 [2025-01-30 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364952', 'tblTempUsageDetail_20' ) start [2025-01-30 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364952', 'tblTempUsageDetail_20' ) end [2025-01-30 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364952', 'tblTempVendorCDR_20' ) start [2025-01-30 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364952', 'tblTempVendorCDR_20' ) end [2025-01-30 16:41:21] Production.INFO: ProcessCDR(1,14364952,1,1,2) [2025-01-30 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364952', 'tblTempUsageDetail_20' ) start [2025-01-30 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364952', 'tblTempUsageDetail_20' ) end [2025-01-30 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:41:26] Production.INFO: ==12819== Releasing lock... [2025-01-30 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:41:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:42:06 [end_date_ymd] => 2025-01-30 16:42:06 [RateCDR] => 1 ) [2025-01-30 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:42:06' and `end` < '2025-01-30 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:42:19] Production.INFO: count ==5026 [2025-01-30 16:42:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:42:06 - End Time 2025-01-30 16:42:06 [2025-01-30 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364957', 'tblTempUsageDetail_20' ) start [2025-01-30 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364957', 'tblTempUsageDetail_20' ) end [2025-01-30 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364957', 'tblTempVendorCDR_20' ) start [2025-01-30 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364957', 'tblTempVendorCDR_20' ) end [2025-01-30 16:42:22] Production.INFO: ProcessCDR(1,14364957,1,1,2) [2025-01-30 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364957', 'tblTempUsageDetail_20' ) start [2025-01-30 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364957', 'tblTempUsageDetail_20' ) end [2025-01-30 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:42:26] Production.INFO: ==12894== Releasing lock... [2025-01-30 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:42:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:43:04 [end_date_ymd] => 2025-01-30 16:43:04 [RateCDR] => 1 ) [2025-01-30 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-30 13:43:04' and `end` < '2025-01-30 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-30 16:43:18] Production.INFO: count ==5038 [2025-01-30 16:43:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:43:04 - End Time 2025-01-30 16:43:04 [2025-01-30 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364962', 'tblTempUsageDetail_20' ) start [2025-01-30 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364962', 'tblTempUsageDetail_20' ) end [2025-01-30 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364962', 'tblTempVendorCDR_20' ) start [2025-01-30 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364962', 'tblTempVendorCDR_20' ) end [2025-01-30 16:43:21] Production.INFO: ProcessCDR(1,14364962,1,1,2) [2025-01-30 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364962', 'tblTempUsageDetail_20' ) start [2025-01-30 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364962', 'tblTempUsageDetail_20' ) end [2025-01-30 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:43:27] Production.INFO: ==12966== Releasing lock... [2025-01-30 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:43:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:44:06 [end_date_ymd] => 2025-01-30 16:44:06 [RateCDR] => 1 ) [2025-01-30 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:44:06' and `end` < '2025-01-30 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:44:24] Production.INFO: count ==5033 [2025-01-30 16:44:26] Production.ERROR: pbx CDR StartTime 2025-01-30 13:44:06 - End Time 2025-01-30 16:44:06 [2025-01-30 16:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364967', 'tblTempUsageDetail_20' ) start [2025-01-30 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364967', 'tblTempUsageDetail_20' ) end [2025-01-30 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364967', 'tblTempVendorCDR_20' ) start [2025-01-30 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364967', 'tblTempVendorCDR_20' ) end [2025-01-30 16:44:26] Production.INFO: ProcessCDR(1,14364967,1,1,2) [2025-01-30 16:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364967', 'tblTempUsageDetail_20' ) start [2025-01-30 16:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364967', 'tblTempUsageDetail_20' ) end [2025-01-30 16:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:44:32] Production.INFO: ==13039== Releasing lock... [2025-01-30 16:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:44:32] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:45:05 [end_date_ymd] => 2025-01-30 16:45:05 [RateCDR] => 1 ) [2025-01-30 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:45:05' and `end` < '2025-01-30 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:45:20] Production.INFO: count ==5040 [2025-01-30 16:45:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:45:05 - End Time 2025-01-30 16:45:05 [2025-01-30 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364972', 'tblTempUsageDetail_20' ) start [2025-01-30 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364972', 'tblTempUsageDetail_20' ) end [2025-01-30 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364972', 'tblTempVendorCDR_20' ) start [2025-01-30 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364972', 'tblTempVendorCDR_20' ) end [2025-01-30 16:45:23] Production.INFO: ProcessCDR(1,14364972,1,1,2) [2025-01-30 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364972', 'tblTempUsageDetail_20' ) start [2025-01-30 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364972', 'tblTempUsageDetail_20' ) end [2025-01-30 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:45:28] Production.INFO: ==13110== Releasing lock... [2025-01-30 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:45:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:46:06 [end_date_ymd] => 2025-01-30 16:46:06 [RateCDR] => 1 ) [2025-01-30 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:46:06' and `end` < '2025-01-30 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:46:23] Production.INFO: count ==5044 [2025-01-30 16:46:25] Production.ERROR: pbx CDR StartTime 2025-01-30 13:46:06 - End Time 2025-01-30 16:46:06 [2025-01-30 16:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364977', 'tblTempUsageDetail_20' ) start [2025-01-30 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364977', 'tblTempUsageDetail_20' ) end [2025-01-30 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364977', 'tblTempVendorCDR_20' ) start [2025-01-30 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364977', 'tblTempVendorCDR_20' ) end [2025-01-30 16:46:25] Production.INFO: ProcessCDR(1,14364977,1,1,2) [2025-01-30 16:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364977', 'tblTempUsageDetail_20' ) start [2025-01-30 16:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364977', 'tblTempUsageDetail_20' ) end [2025-01-30 16:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:46:30] Production.INFO: ==13183== Releasing lock... [2025-01-30 16:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:46:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:47:04 [end_date_ymd] => 2025-01-30 16:47:04 [RateCDR] => 1 ) [2025-01-30 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-30 13:47:04' and `end` < '2025-01-30 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-30 16:47:18] Production.INFO: count ==5041 [2025-01-30 16:47:20] Production.ERROR: pbx CDR StartTime 2025-01-30 13:47:04 - End Time 2025-01-30 16:47:04 [2025-01-30 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364982', 'tblTempUsageDetail_20' ) start [2025-01-30 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364982', 'tblTempUsageDetail_20' ) end [2025-01-30 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364982', 'tblTempVendorCDR_20' ) start [2025-01-30 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364982', 'tblTempVendorCDR_20' ) end [2025-01-30 16:47:21] Production.INFO: ProcessCDR(1,14364982,1,1,2) [2025-01-30 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364982', 'tblTempUsageDetail_20' ) start [2025-01-30 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364982', 'tblTempUsageDetail_20' ) end [2025-01-30 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:47:26] Production.INFO: ==13260== Releasing lock... [2025-01-30 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:47:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-30 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:48:05 [end_date_ymd] => 2025-01-30 16:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:48:05' and `end` < '2025-01-30 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-30 16:48:20] Production.INFO: count ==5012 [2025-01-30 16:48:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:48:05 - End Time 2025-01-30 16:48:05 [2025-01-30 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364987', 'tblTempUsageDetail_20' ) start [2025-01-30 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364987', 'tblTempUsageDetail_20' ) end [2025-01-30 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364987', 'tblTempVendorCDR_20' ) start [2025-01-30 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364987', 'tblTempVendorCDR_20' ) end [2025-01-30 16:48:22] Production.INFO: ProcessCDR(1,14364987,1,1,2) [2025-01-30 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364987', 'tblTempUsageDetail_20' ) start [2025-01-30 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364987', 'tblTempUsageDetail_20' ) end [2025-01-30 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:48:27] Production.INFO: ==13334== Releasing lock... [2025-01-30 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:48:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:49:06 [end_date_ymd] => 2025-01-30 16:49:06 [RateCDR] => 1 ) [2025-01-30 16:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:49:06' and `end` < '2025-01-30 16: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-30 16:49:25] Production.INFO: count ==4996 [2025-01-30 16:49:27] Production.ERROR: pbx CDR StartTime 2025-01-30 13:49:06 - End Time 2025-01-30 16:49:06 [2025-01-30 16:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364992', 'tblTempUsageDetail_20' ) start [2025-01-30 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364992', 'tblTempUsageDetail_20' ) end [2025-01-30 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364992', 'tblTempVendorCDR_20' ) start [2025-01-30 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364992', 'tblTempVendorCDR_20' ) end [2025-01-30 16:49:27] Production.INFO: ProcessCDR(1,14364992,1,1,2) [2025-01-30 16:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364992', 'tblTempUsageDetail_20' ) start [2025-01-30 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364992', 'tblTempUsageDetail_20' ) end [2025-01-30 16:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:49:32] Production.INFO: ==13414== Releasing lock... [2025-01-30 16:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:49:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-30 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:50:06 [end_date_ymd] => 2025-01-30 16:50:06 [RateCDR] => 1 ) [2025-01-30 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:50:06' and `end` < '2025-01-30 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:50:26] Production.INFO: count ==4991 [2025-01-30 16:50:28] Production.ERROR: pbx CDR StartTime 2025-01-30 13:50:06 - End Time 2025-01-30 16:50:06 [2025-01-30 16:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364998', 'tblTempUsageDetail_20' ) start [2025-01-30 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14364998', 'tblTempUsageDetail_20' ) end [2025-01-30 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364998', 'tblTempVendorCDR_20' ) start [2025-01-30 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14364998', 'tblTempVendorCDR_20' ) end [2025-01-30 16:50:28] Production.INFO: ProcessCDR(1,14364998,1,1,2) [2025-01-30 16:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14364998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14364998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14364998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14364998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364998', 'tblTempUsageDetail_20' ) start [2025-01-30 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14364998', 'tblTempUsageDetail_20' ) end [2025-01-30 16:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:50:33] Production.INFO: ==13490== Releasing lock... [2025-01-30 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:50:33] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:51:06 [end_date_ymd] => 2025-01-30 16:51:06 [RateCDR] => 1 ) [2025-01-30 16:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:51:06' and `end` < '2025-01-30 16:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:51:21] Production.INFO: count ==4975 [2025-01-30 16:51:23] Production.ERROR: pbx CDR StartTime 2025-01-30 13:51:06 - End Time 2025-01-30 16:51:06 [2025-01-30 16:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365003', 'tblTempUsageDetail_20' ) start [2025-01-30 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365003', 'tblTempUsageDetail_20' ) end [2025-01-30 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365003', 'tblTempVendorCDR_20' ) start [2025-01-30 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365003', 'tblTempVendorCDR_20' ) end [2025-01-30 16:51:23] Production.INFO: ProcessCDR(1,14365003,1,1,2) [2025-01-30 16:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365003', 'tblTempUsageDetail_20' ) start [2025-01-30 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365003', 'tblTempUsageDetail_20' ) end [2025-01-30 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:51:28] Production.INFO: ==13568== Releasing lock... [2025-01-30 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:51:28] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:52:05 [end_date_ymd] => 2025-01-30 16:52:05 [RateCDR] => 1 ) [2025-01-30 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:52:05' and `end` < '2025-01-30 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:52:19] Production.INFO: count ==4974 [2025-01-30 16:52:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:52:05 - End Time 2025-01-30 16:52:05 [2025-01-30 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365008', 'tblTempUsageDetail_20' ) start [2025-01-30 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365008', 'tblTempUsageDetail_20' ) end [2025-01-30 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365008', 'tblTempVendorCDR_20' ) start [2025-01-30 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365008', 'tblTempVendorCDR_20' ) end [2025-01-30 16:52:22] Production.INFO: ProcessCDR(1,14365008,1,1,2) [2025-01-30 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365008', 'tblTempUsageDetail_20' ) start [2025-01-30 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365008', 'tblTempUsageDetail_20' ) end [2025-01-30 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:52:27] Production.INFO: ==13642== Releasing lock... [2025-01-30 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:52:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:53:06 [end_date_ymd] => 2025-01-30 16:53:06 [RateCDR] => 1 ) [2025-01-30 16:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:53:06' and `end` < '2025-01-30 16:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:53:20] Production.INFO: count ==4977 [2025-01-30 16:53:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:53:06 - End Time 2025-01-30 16:53:06 [2025-01-30 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365013', 'tblTempUsageDetail_20' ) start [2025-01-30 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365013', 'tblTempUsageDetail_20' ) end [2025-01-30 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365013', 'tblTempVendorCDR_20' ) start [2025-01-30 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365013', 'tblTempVendorCDR_20' ) end [2025-01-30 16:53:23] Production.INFO: ProcessCDR(1,14365013,1,1,2) [2025-01-30 16:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365013', 'tblTempUsageDetail_20' ) start [2025-01-30 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365013', 'tblTempUsageDetail_20' ) end [2025-01-30 16:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:53:28] Production.INFO: ==13719== Releasing lock... [2025-01-30 16:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:53:28] Production.INFO: 65.25 MB #Memory Used# [2025-01-30 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:54:06 [end_date_ymd] => 2025-01-30 16:54:06 [RateCDR] => 1 ) [2025-01-30 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:54:06' and `end` < '2025-01-30 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:54:20] Production.INFO: count ==4951 [2025-01-30 16:54:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:54:06 - End Time 2025-01-30 16:54:06 [2025-01-30 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365018', 'tblTempUsageDetail_20' ) start [2025-01-30 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365018', 'tblTempUsageDetail_20' ) end [2025-01-30 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365018', 'tblTempVendorCDR_20' ) start [2025-01-30 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365018', 'tblTempVendorCDR_20' ) end [2025-01-30 16:54:22] Production.INFO: ProcessCDR(1,14365018,1,1,2) [2025-01-30 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365018', 'tblTempUsageDetail_20' ) start [2025-01-30 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365018', 'tblTempUsageDetail_20' ) end [2025-01-30 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:54:26] Production.INFO: ==13795== Releasing lock... [2025-01-30 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:54:26] Production.INFO: 65 MB #Memory Used# [2025-01-30 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:55:05 [end_date_ymd] => 2025-01-30 16:55:05 [RateCDR] => 1 ) [2025-01-30 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:55:05' and `end` < '2025-01-30 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:55:23] Production.INFO: count ==4950 [2025-01-30 16:55:25] Production.ERROR: pbx CDR StartTime 2025-01-30 13:55:05 - End Time 2025-01-30 16:55:05 [2025-01-30 16:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365023', 'tblTempUsageDetail_20' ) start [2025-01-30 16:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365023', 'tblTempUsageDetail_20' ) end [2025-01-30 16:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365023', 'tblTempVendorCDR_20' ) start [2025-01-30 16:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365023', 'tblTempVendorCDR_20' ) end [2025-01-30 16:55:25] Production.INFO: ProcessCDR(1,14365023,1,1,2) [2025-01-30 16:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365023', 'tblTempUsageDetail_20' ) start [2025-01-30 16:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365023', 'tblTempUsageDetail_20' ) end [2025-01-30 16:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:55:31] Production.INFO: ==13868== Releasing lock... [2025-01-30 16:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:55:31] Production.INFO: 65 MB #Memory Used# [2025-01-30 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:56:06 [end_date_ymd] => 2025-01-30 16:56:06 [RateCDR] => 1 ) [2025-01-30 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-30 13:56:06' and `end` < '2025-01-30 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-30 16:56:19] Production.INFO: count ==4935 [2025-01-30 16:56:22] Production.ERROR: pbx CDR StartTime 2025-01-30 13:56:06 - End Time 2025-01-30 16:56:06 [2025-01-30 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365028', 'tblTempUsageDetail_20' ) start [2025-01-30 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365028', 'tblTempUsageDetail_20' ) end [2025-01-30 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365028', 'tblTempVendorCDR_20' ) start [2025-01-30 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365028', 'tblTempVendorCDR_20' ) end [2025-01-30 16:56:22] Production.INFO: ProcessCDR(1,14365028,1,1,2) [2025-01-30 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365028', 'tblTempUsageDetail_20' ) start [2025-01-30 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365028', 'tblTempUsageDetail_20' ) end [2025-01-30 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:56:26] Production.INFO: ==13982== Releasing lock... [2025-01-30 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:56:26] Production.INFO: 65 MB #Memory Used# [2025-01-30 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:57:05 [end_date_ymd] => 2025-01-30 16:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:57:05' and `end` < '2025-01-30 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-30 16:57:19] Production.INFO: count ==4900 [2025-01-30 16:57:21] Production.ERROR: pbx CDR StartTime 2025-01-30 13:57:05 - End Time 2025-01-30 16:57:05 [2025-01-30 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365033', 'tblTempUsageDetail_20' ) start [2025-01-30 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365033', 'tblTempUsageDetail_20' ) end [2025-01-30 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365033', 'tblTempVendorCDR_20' ) start [2025-01-30 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365033', 'tblTempVendorCDR_20' ) end [2025-01-30 16:57:22] Production.INFO: ProcessCDR(1,14365033,1,1,2) [2025-01-30 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365033', 'tblTempUsageDetail_20' ) start [2025-01-30 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365033', 'tblTempUsageDetail_20' ) end [2025-01-30 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:57:27] Production.INFO: ==14055== Releasing lock... [2025-01-30 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:57:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-30 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:58:06 [end_date_ymd] => 2025-01-30 16:58:06 [RateCDR] => 1 ) [2025-01-30 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 13:58:06' and `end` < '2025-01-30 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 16:58:23] Production.INFO: count ==4879 [2025-01-30 16:58:25] Production.ERROR: pbx CDR StartTime 2025-01-30 13:58:06 - End Time 2025-01-30 16:58:06 [2025-01-30 16:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365038', 'tblTempUsageDetail_20' ) start [2025-01-30 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365038', 'tblTempUsageDetail_20' ) end [2025-01-30 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365038', 'tblTempVendorCDR_20' ) start [2025-01-30 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365038', 'tblTempVendorCDR_20' ) end [2025-01-30 16:58:26] Production.INFO: ProcessCDR(1,14365038,1,1,2) [2025-01-30 16:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365038', 'tblTempUsageDetail_20' ) start [2025-01-30 16:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365038', 'tblTempUsageDetail_20' ) end [2025-01-30 16:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:58:31] Production.INFO: ==14137== Releasing lock... [2025-01-30 16:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:58:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-30 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 13:59:05 [end_date_ymd] => 2025-01-30 16:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 13:59:05' and `end` < '2025-01-30 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-30 16:59:21] Production.INFO: count ==4856 [2025-01-30 16:59:23] Production.ERROR: pbx CDR StartTime 2025-01-30 13:59:05 - End Time 2025-01-30 16:59:05 [2025-01-30 16:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365043', 'tblTempUsageDetail_20' ) start [2025-01-30 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365043', 'tblTempUsageDetail_20' ) end [2025-01-30 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365043', 'tblTempVendorCDR_20' ) start [2025-01-30 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365043', 'tblTempVendorCDR_20' ) end [2025-01-30 16:59:23] Production.INFO: ProcessCDR(1,14365043,1,1,2) [2025-01-30 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 16:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365043', 'tblTempUsageDetail_20' ) start [2025-01-30 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365043', 'tblTempUsageDetail_20' ) end [2025-01-30 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 16:59:28] Production.INFO: ==14209== Releasing lock... [2025-01-30 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 16:59:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:00:07 [end_date_ymd] => 2025-01-30 17:00:07 [RateCDR] => 1 ) [2025-01-30 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:00:07' and `end` < '2025-01-30 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:00:21] Production.INFO: count ==4834 [2025-01-30 17:00:23] Production.ERROR: pbx CDR StartTime 2025-01-30 14:00:07 - End Time 2025-01-30 17:00:07 [2025-01-30 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365049', 'tblTempUsageDetail_20' ) start [2025-01-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365049', 'tblTempUsageDetail_20' ) end [2025-01-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365049', 'tblTempVendorCDR_20' ) start [2025-01-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365049', 'tblTempVendorCDR_20' ) end [2025-01-30 17:00:23] Production.INFO: ProcessCDR(1,14365049,1,1,2) [2025-01-30 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365049', 'tblTempUsageDetail_20' ) start [2025-01-30 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365049', 'tblTempUsageDetail_20' ) end [2025-01-30 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:00:26] Production.INFO: ==14288== Releasing lock... [2025-01-30 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:00:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-30 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:01:05 [end_date_ymd] => 2025-01-30 17:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:01:05' and `end` < '2025-01-30 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-30 17:01:19] Production.INFO: count ==4810 [2025-01-30 17:01:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:01:05 - End Time 2025-01-30 17:01:05 [2025-01-30 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365054', 'tblTempUsageDetail_20' ) start [2025-01-30 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365054', 'tblTempUsageDetail_20' ) end [2025-01-30 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365054', 'tblTempVendorCDR_20' ) start [2025-01-30 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365054', 'tblTempVendorCDR_20' ) end [2025-01-30 17:01:22] Production.INFO: ProcessCDR(1,14365054,1,1,2) [2025-01-30 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365054', 'tblTempUsageDetail_20' ) start [2025-01-30 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365054', 'tblTempUsageDetail_20' ) end [2025-01-30 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:01:27] Production.INFO: ==14425== Releasing lock... [2025-01-30 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:01:27] Production.INFO: 64 MB #Memory Used# [2025-01-30 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:02:06 [end_date_ymd] => 2025-01-30 17:02:06 [RateCDR] => 1 ) [2025-01-30 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:02:06' and `end` < '2025-01-30 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:02:25] Production.INFO: count ==4815 [2025-01-30 17:02:27] Production.ERROR: pbx CDR StartTime 2025-01-30 14:02:06 - End Time 2025-01-30 17:02:06 [2025-01-30 17:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365059', 'tblTempUsageDetail_20' ) start [2025-01-30 17:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365059', 'tblTempUsageDetail_20' ) end [2025-01-30 17:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365059', 'tblTempVendorCDR_20' ) start [2025-01-30 17:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365059', 'tblTempVendorCDR_20' ) end [2025-01-30 17:02:28] Production.INFO: ProcessCDR(1,14365059,1,1,2) [2025-01-30 17:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365059', 'tblTempUsageDetail_20' ) start [2025-01-30 17:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365059', 'tblTempUsageDetail_20' ) end [2025-01-30 17:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:02:32] Production.INFO: ==14535== Releasing lock... [2025-01-30 17:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:02:32] Production.INFO: 64 MB #Memory Used# [2025-01-30 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:03:05 [end_date_ymd] => 2025-01-30 17:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:03:05' and `end` < '2025-01-30 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-30 17:03:22] Production.INFO: count ==4796 [2025-01-30 17:03:24] Production.ERROR: pbx CDR StartTime 2025-01-30 14:03:05 - End Time 2025-01-30 17:03:05 [2025-01-30 17:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365064', 'tblTempUsageDetail_20' ) start [2025-01-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365064', 'tblTempUsageDetail_20' ) end [2025-01-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365064', 'tblTempVendorCDR_20' ) start [2025-01-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365064', 'tblTempVendorCDR_20' ) end [2025-01-30 17:03:24] Production.INFO: ProcessCDR(1,14365064,1,1,2) [2025-01-30 17:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365064', 'tblTempUsageDetail_20' ) start [2025-01-30 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365064', 'tblTempUsageDetail_20' ) end [2025-01-30 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:03:27] Production.INFO: ==14617== Releasing lock... [2025-01-30 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:03:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:04:06 [end_date_ymd] => 2025-01-30 17:04:06 [RateCDR] => 1 ) [2025-01-30 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-30 14:04:06' and `end` < '2025-01-30 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-30 17:04:21] Production.INFO: count ==4767 [2025-01-30 17:04:23] Production.ERROR: pbx CDR StartTime 2025-01-30 14:04:06 - End Time 2025-01-30 17:04:06 [2025-01-30 17:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365069', 'tblTempUsageDetail_20' ) start [2025-01-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365069', 'tblTempUsageDetail_20' ) end [2025-01-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365069', 'tblTempVendorCDR_20' ) start [2025-01-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365069', 'tblTempVendorCDR_20' ) end [2025-01-30 17:04:23] Production.INFO: ProcessCDR(1,14365069,1,1,2) [2025-01-30 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365069', 'tblTempUsageDetail_20' ) start [2025-01-30 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365069', 'tblTempUsageDetail_20' ) end [2025-01-30 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:04:28] Production.INFO: ==14692== Releasing lock... [2025-01-30 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:04:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:05:05 [end_date_ymd] => 2025-01-30 17:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:05:05' and `end` < '2025-01-30 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-30 17:05:26] Production.INFO: count ==4743 [2025-01-30 17:05:28] Production.ERROR: pbx CDR StartTime 2025-01-30 14:05:05 - End Time 2025-01-30 17:05:05 [2025-01-30 17:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365074', 'tblTempUsageDetail_20' ) start [2025-01-30 17:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365074', 'tblTempUsageDetail_20' ) end [2025-01-30 17:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365074', 'tblTempVendorCDR_20' ) start [2025-01-30 17:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365074', 'tblTempVendorCDR_20' ) end [2025-01-30 17:05:28] Production.INFO: ProcessCDR(1,14365074,1,1,2) [2025-01-30 17:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365074', 'tblTempUsageDetail_20' ) start [2025-01-30 17:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365074', 'tblTempUsageDetail_20' ) end [2025-01-30 17:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:05:33] Production.INFO: ==14764== Releasing lock... [2025-01-30 17:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:05:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:06:06 [end_date_ymd] => 2025-01-30 17:06:06 [RateCDR] => 1 ) [2025-01-30 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-30 14:06:06' and `end` < '2025-01-30 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-30 17:06:22] Production.INFO: count ==4714 [2025-01-30 17:06:24] Production.ERROR: pbx CDR StartTime 2025-01-30 14:06:06 - End Time 2025-01-30 17:06:06 [2025-01-30 17:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365079', 'tblTempUsageDetail_20' ) start [2025-01-30 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365079', 'tblTempUsageDetail_20' ) end [2025-01-30 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365079', 'tblTempVendorCDR_20' ) start [2025-01-30 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365079', 'tblTempVendorCDR_20' ) end [2025-01-30 17:06:25] Production.INFO: ProcessCDR(1,14365079,1,1,2) [2025-01-30 17:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365079', 'tblTempUsageDetail_20' ) start [2025-01-30 17:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365079', 'tblTempUsageDetail_20' ) end [2025-01-30 17:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:06:30] Production.INFO: ==14836== Releasing lock... [2025-01-30 17:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:06:30] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:07:05 [end_date_ymd] => 2025-01-30 17:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:07:05' and `end` < '2025-01-30 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-30 17:07:25] Production.INFO: count ==4737 [2025-01-30 17:07:27] Production.ERROR: pbx CDR StartTime 2025-01-30 14:07:05 - End Time 2025-01-30 17:07:05 [2025-01-30 17:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365084', 'tblTempUsageDetail_20' ) start [2025-01-30 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365084', 'tblTempUsageDetail_20' ) end [2025-01-30 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365084', 'tblTempVendorCDR_20' ) start [2025-01-30 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365084', 'tblTempVendorCDR_20' ) end [2025-01-30 17:07:27] Production.INFO: ProcessCDR(1,14365084,1,1,2) [2025-01-30 17:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365084', 'tblTempUsageDetail_20' ) start [2025-01-30 17:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365084', 'tblTempUsageDetail_20' ) end [2025-01-30 17:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:07:32] Production.INFO: ==14910== Releasing lock... [2025-01-30 17:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:07:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:08:05 [end_date_ymd] => 2025-01-30 17:08:05 [RateCDR] => 1 ) [2025-01-30 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:08:05' and `end` < '2025-01-30 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:08:22] Production.INFO: count ==4791 [2025-01-30 17:08:24] Production.ERROR: pbx CDR StartTime 2025-01-30 14:08:05 - End Time 2025-01-30 17:08:05 [2025-01-30 17:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365089', 'tblTempUsageDetail_20' ) start [2025-01-30 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365089', 'tblTempUsageDetail_20' ) end [2025-01-30 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365089', 'tblTempVendorCDR_20' ) start [2025-01-30 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365089', 'tblTempVendorCDR_20' ) end [2025-01-30 17:08:25] Production.INFO: ProcessCDR(1,14365089,1,1,2) [2025-01-30 17:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365089', 'tblTempUsageDetail_20' ) start [2025-01-30 17:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365089', 'tblTempUsageDetail_20' ) end [2025-01-30 17:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:08:30] Production.INFO: ==14984== Releasing lock... [2025-01-30 17:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:08:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:09:05 [end_date_ymd] => 2025-01-30 17:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:09:05' and `end` < '2025-01-30 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-30 17:09:19] Production.INFO: count ==4773 [2025-01-30 17:09:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:09:05 - End Time 2025-01-30 17:09:05 [2025-01-30 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365094', 'tblTempUsageDetail_20' ) start [2025-01-30 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365094', 'tblTempUsageDetail_20' ) end [2025-01-30 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365094', 'tblTempVendorCDR_20' ) start [2025-01-30 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365094', 'tblTempVendorCDR_20' ) end [2025-01-30 17:09:21] Production.INFO: ProcessCDR(1,14365094,1,1,2) [2025-01-30 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365094', 'tblTempUsageDetail_20' ) start [2025-01-30 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365094', 'tblTempUsageDetail_20' ) end [2025-01-30 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:09:26] Production.INFO: ==15057== Releasing lock... [2025-01-30 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:09:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-30 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:10:06 [end_date_ymd] => 2025-01-30 17:10:06 [RateCDR] => 1 ) [2025-01-30 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-30 14:10:06' and `end` < '2025-01-30 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-30 17:10:20] Production.INFO: count ==4758 [2025-01-30 17:10:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:10:06 - End Time 2025-01-30 17:10:06 [2025-01-30 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365100', 'tblTempUsageDetail_20' ) start [2025-01-30 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365100', 'tblTempUsageDetail_20' ) end [2025-01-30 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365100', 'tblTempVendorCDR_20' ) start [2025-01-30 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365100', 'tblTempVendorCDR_20' ) end [2025-01-30 17:10:22] Production.INFO: ProcessCDR(1,14365100,1,1,2) [2025-01-30 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365100', 'tblTempUsageDetail_20' ) start [2025-01-30 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365100', 'tblTempUsageDetail_20' ) end [2025-01-30 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:10:27] Production.INFO: ==15133== Releasing lock... [2025-01-30 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:10:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-30 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:11:05 [end_date_ymd] => 2025-01-30 17:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:11:05' and `end` < '2025-01-30 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-30 17:11:20] Production.INFO: count ==4715 [2025-01-30 17:11:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:11:05 - End Time 2025-01-30 17:11:05 [2025-01-30 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365105', 'tblTempUsageDetail_20' ) start [2025-01-30 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365105', 'tblTempUsageDetail_20' ) end [2025-01-30 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365105', 'tblTempVendorCDR_20' ) start [2025-01-30 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365105', 'tblTempVendorCDR_20' ) end [2025-01-30 17:11:23] Production.INFO: ProcessCDR(1,14365105,1,1,2) [2025-01-30 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365105', 'tblTempUsageDetail_20' ) start [2025-01-30 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365105', 'tblTempUsageDetail_20' ) end [2025-01-30 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:11:28] Production.INFO: ==15209== Releasing lock... [2025-01-30 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:11:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:12:05 [end_date_ymd] => 2025-01-30 17:12:05 [RateCDR] => 1 ) [2025-01-30 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:12:05' and `end` < '2025-01-30 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:12:19] Production.INFO: count ==4696 [2025-01-30 17:12:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:12:05 - End Time 2025-01-30 17:12:05 [2025-01-30 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365110', 'tblTempUsageDetail_20' ) start [2025-01-30 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365110', 'tblTempUsageDetail_20' ) end [2025-01-30 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365110', 'tblTempVendorCDR_20' ) start [2025-01-30 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365110', 'tblTempVendorCDR_20' ) end [2025-01-30 17:12:21] Production.INFO: ProcessCDR(1,14365110,1,1,2) [2025-01-30 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365110', 'tblTempUsageDetail_20' ) start [2025-01-30 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365110', 'tblTempUsageDetail_20' ) end [2025-01-30 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:12:26] Production.INFO: ==15323== Releasing lock... [2025-01-30 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:12:26] Production.INFO: 63 MB #Memory Used# [2025-01-30 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:13:05 [end_date_ymd] => 2025-01-30 17:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:13:05' and `end` < '2025-01-30 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-30 17:13:21] Production.INFO: count ==4709 [2025-01-30 17:13:23] Production.ERROR: pbx CDR StartTime 2025-01-30 14:13:05 - End Time 2025-01-30 17:13:05 [2025-01-30 17:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365115', 'tblTempUsageDetail_20' ) start [2025-01-30 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365115', 'tblTempUsageDetail_20' ) end [2025-01-30 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365115', 'tblTempVendorCDR_20' ) start [2025-01-30 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365115', 'tblTempVendorCDR_20' ) end [2025-01-30 17:13:23] Production.INFO: ProcessCDR(1,14365115,1,1,2) [2025-01-30 17:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365115', 'tblTempUsageDetail_20' ) start [2025-01-30 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365115', 'tblTempUsageDetail_20' ) end [2025-01-30 17:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:13:28] Production.INFO: ==15395== Releasing lock... [2025-01-30 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:13:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-30 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:14:06 [end_date_ymd] => 2025-01-30 17:14:06 [RateCDR] => 1 ) [2025-01-30 17: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-30 14:14:06' and `end` < '2025-01-30 17: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-30 17:14:19] Production.INFO: count ==4683 [2025-01-30 17:14:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:14:06 - End Time 2025-01-30 17:14:06 [2025-01-30 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365120', 'tblTempUsageDetail_20' ) start [2025-01-30 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365120', 'tblTempUsageDetail_20' ) end [2025-01-30 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365120', 'tblTempVendorCDR_20' ) start [2025-01-30 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365120', 'tblTempVendorCDR_20' ) end [2025-01-30 17:14:21] Production.INFO: ProcessCDR(1,14365120,1,1,2) [2025-01-30 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365120', 'tblTempUsageDetail_20' ) start [2025-01-30 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365120', 'tblTempUsageDetail_20' ) end [2025-01-30 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:14:26] Production.INFO: ==15471== Releasing lock... [2025-01-30 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:14:26] Production.INFO: 63 MB #Memory Used# [2025-01-30 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:15:06 [end_date_ymd] => 2025-01-30 17:15:06 [RateCDR] => 1 ) [2025-01-30 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:15:06' and `end` < '2025-01-30 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:15:20] Production.INFO: count ==4671 [2025-01-30 17:15:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:15:06 - End Time 2025-01-30 17:15:06 [2025-01-30 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365125', 'tblTempUsageDetail_20' ) start [2025-01-30 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365125', 'tblTempUsageDetail_20' ) end [2025-01-30 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365125', 'tblTempVendorCDR_20' ) start [2025-01-30 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365125', 'tblTempVendorCDR_20' ) end [2025-01-30 17:15:22] Production.INFO: ProcessCDR(1,14365125,1,1,2) [2025-01-30 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365125', 'tblTempUsageDetail_20' ) start [2025-01-30 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365125', 'tblTempUsageDetail_20' ) end [2025-01-30 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:15:25] Production.INFO: ==15541== Releasing lock... [2025-01-30 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:15:25] Production.INFO: 63 MB #Memory Used# [2025-01-30 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:16:05 [end_date_ymd] => 2025-01-30 17:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:16:05' and `end` < '2025-01-30 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-30 17:16:19] Production.INFO: count ==4664 [2025-01-30 17:16:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:16:05 - End Time 2025-01-30 17:16:05 [2025-01-30 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365130', 'tblTempUsageDetail_20' ) start [2025-01-30 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365130', 'tblTempUsageDetail_20' ) end [2025-01-30 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365130', 'tblTempVendorCDR_20' ) start [2025-01-30 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365130', 'tblTempVendorCDR_20' ) end [2025-01-30 17:16:21] Production.INFO: ProcessCDR(1,14365130,1,1,2) [2025-01-30 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365130', 'tblTempUsageDetail_20' ) start [2025-01-30 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365130', 'tblTempUsageDetail_20' ) end [2025-01-30 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:16:25] Production.INFO: ==15616== Releasing lock... [2025-01-30 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:16:25] Production.INFO: 63 MB #Memory Used# [2025-01-30 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:17:06 [end_date_ymd] => 2025-01-30 17:17:06 [RateCDR] => 1 ) [2025-01-30 17: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-30 14:17:06' and `end` < '2025-01-30 17: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-30 17:17:21] Production.INFO: count ==4675 [2025-01-30 17:17:23] Production.ERROR: pbx CDR StartTime 2025-01-30 14:17:06 - End Time 2025-01-30 17:17:06 [2025-01-30 17:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365135', 'tblTempUsageDetail_20' ) start [2025-01-30 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365135', 'tblTempUsageDetail_20' ) end [2025-01-30 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365135', 'tblTempVendorCDR_20' ) start [2025-01-30 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365135', 'tblTempVendorCDR_20' ) end [2025-01-30 17:17:23] Production.INFO: ProcessCDR(1,14365135,1,1,2) [2025-01-30 17:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365135', 'tblTempUsageDetail_20' ) start [2025-01-30 17:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365135', 'tblTempUsageDetail_20' ) end [2025-01-30 17:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:17:28] Production.INFO: ==15693== Releasing lock... [2025-01-30 17:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:17:28] Production.INFO: 63 MB #Memory Used# [2025-01-30 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:18:06 [end_date_ymd] => 2025-01-30 17:18:06 [RateCDR] => 1 ) [2025-01-30 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:18:06' and `end` < '2025-01-30 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:18:20] Production.INFO: count ==4664 [2025-01-30 17:18:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:18:06 - End Time 2025-01-30 17:18:06 [2025-01-30 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365140', 'tblTempUsageDetail_20' ) start [2025-01-30 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365140', 'tblTempUsageDetail_20' ) end [2025-01-30 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365140', 'tblTempVendorCDR_20' ) start [2025-01-30 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365140', 'tblTempVendorCDR_20' ) end [2025-01-30 17:18:22] Production.INFO: ProcessCDR(1,14365140,1,1,2) [2025-01-30 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365140', 'tblTempUsageDetail_20' ) start [2025-01-30 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365140', 'tblTempUsageDetail_20' ) end [2025-01-30 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:18:27] Production.INFO: ==15775== Releasing lock... [2025-01-30 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:18:27] Production.INFO: 63 MB #Memory Used# [2025-01-30 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:19:05 [end_date_ymd] => 2025-01-30 17:19:05 [RateCDR] => 1 ) [2025-01-30 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:19:05' and `end` < '2025-01-30 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:19:19] Production.INFO: count ==4640 [2025-01-30 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:19:05 - End Time 2025-01-30 17:19:05 [2025-01-30 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365145', 'tblTempUsageDetail_20' ) start [2025-01-30 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365145', 'tblTempUsageDetail_20' ) end [2025-01-30 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365145', 'tblTempVendorCDR_20' ) start [2025-01-30 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365145', 'tblTempVendorCDR_20' ) end [2025-01-30 17:19:21] Production.INFO: ProcessCDR(1,14365145,1,1,2) [2025-01-30 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365145', 'tblTempUsageDetail_20' ) start [2025-01-30 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365145', 'tblTempUsageDetail_20' ) end [2025-01-30 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:19:26] Production.INFO: ==15851== Releasing lock... [2025-01-30 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:19:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-30 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:20:06 [end_date_ymd] => 2025-01-30 17:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 14:20:06' and `end` < '2025-01-30 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-30 17:20:20] Production.INFO: count ==4611 [2025-01-30 17:20:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:20:06 - End Time 2025-01-30 17:20:06 [2025-01-30 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365151', 'tblTempUsageDetail_20' ) start [2025-01-30 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365151', 'tblTempUsageDetail_20' ) end [2025-01-30 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365151', 'tblTempVendorCDR_20' ) start [2025-01-30 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365151', 'tblTempVendorCDR_20' ) end [2025-01-30 17:20:22] Production.INFO: ProcessCDR(1,14365151,1,1,2) [2025-01-30 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365151', 'tblTempUsageDetail_20' ) start [2025-01-30 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365151', 'tblTempUsageDetail_20' ) end [2025-01-30 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:20:27] Production.INFO: ==15925== Releasing lock... [2025-01-30 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:20:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-30 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:21:06 [end_date_ymd] => 2025-01-30 17:21:06 [RateCDR] => 1 ) [2025-01-30 17: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-30 14:21:06' and `end` < '2025-01-30 17: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-30 17:21:19] Production.INFO: count ==4578 [2025-01-30 17:21:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:21:06 - End Time 2025-01-30 17:21:06 [2025-01-30 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365156', 'tblTempUsageDetail_20' ) start [2025-01-30 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365156', 'tblTempUsageDetail_20' ) end [2025-01-30 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365156', 'tblTempVendorCDR_20' ) start [2025-01-30 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365156', 'tblTempVendorCDR_20' ) end [2025-01-30 17:21:21] Production.INFO: ProcessCDR(1,14365156,1,1,2) [2025-01-30 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365156', 'tblTempUsageDetail_20' ) start [2025-01-30 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365156', 'tblTempUsageDetail_20' ) end [2025-01-30 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:21:26] Production.INFO: ==16001== Releasing lock... [2025-01-30 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:21:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-30 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:22:06 [end_date_ymd] => 2025-01-30 17:22:06 [RateCDR] => 1 ) [2025-01-30 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:22:06' and `end` < '2025-01-30 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:22:19] Production.INFO: count ==4566 [2025-01-30 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:22:06 - End Time 2025-01-30 17:22:06 [2025-01-30 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365161', 'tblTempUsageDetail_20' ) start [2025-01-30 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365161', 'tblTempUsageDetail_20' ) end [2025-01-30 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365161', 'tblTempVendorCDR_20' ) start [2025-01-30 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365161', 'tblTempVendorCDR_20' ) end [2025-01-30 17:22:21] Production.INFO: ProcessCDR(1,14365161,1,1,2) [2025-01-30 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365161', 'tblTempUsageDetail_20' ) start [2025-01-30 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365161', 'tblTempUsageDetail_20' ) end [2025-01-30 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:22:26] Production.INFO: ==16072== Releasing lock... [2025-01-30 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:22:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-30 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:23:06 [end_date_ymd] => 2025-01-30 17:23:06 [RateCDR] => 1 ) [2025-01-30 17: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-30 14:23:06' and `end` < '2025-01-30 17: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-30 17:23:19] Production.INFO: count ==4551 [2025-01-30 17:23:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:23:06 - End Time 2025-01-30 17:23:06 [2025-01-30 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365166', 'tblTempUsageDetail_20' ) start [2025-01-30 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365166', 'tblTempUsageDetail_20' ) end [2025-01-30 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365166', 'tblTempVendorCDR_20' ) start [2025-01-30 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365166', 'tblTempVendorCDR_20' ) end [2025-01-30 17:23:21] Production.INFO: ProcessCDR(1,14365166,1,1,2) [2025-01-30 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365166', 'tblTempUsageDetail_20' ) start [2025-01-30 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365166', 'tblTempUsageDetail_20' ) end [2025-01-30 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:23:26] Production.INFO: ==16147== Releasing lock... [2025-01-30 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:23:26] Production.INFO: 62 MB #Memory Used# [2025-01-30 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:24:06 [end_date_ymd] => 2025-01-30 17:24:06 [RateCDR] => 1 ) [2025-01-30 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:24:06' and `end` < '2025-01-30 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:24:20] Production.INFO: count ==4528 [2025-01-30 17:24:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:24:06 - End Time 2025-01-30 17:24:06 [2025-01-30 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365171', 'tblTempUsageDetail_20' ) start [2025-01-30 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365171', 'tblTempUsageDetail_20' ) end [2025-01-30 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365171', 'tblTempVendorCDR_20' ) start [2025-01-30 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365171', 'tblTempVendorCDR_20' ) end [2025-01-30 17:24:22] Production.INFO: ProcessCDR(1,14365171,1,1,2) [2025-01-30 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365171', 'tblTempUsageDetail_20' ) start [2025-01-30 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365171', 'tblTempUsageDetail_20' ) end [2025-01-30 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:24:27] Production.INFO: ==16222== Releasing lock... [2025-01-30 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:24:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-30 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:25:05 [end_date_ymd] => 2025-01-30 17:25:05 [RateCDR] => 1 ) [2025-01-30 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:25:05' and `end` < '2025-01-30 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:25:19] Production.INFO: count ==4486 [2025-01-30 17:25:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:25:05 - End Time 2025-01-30 17:25:05 [2025-01-30 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365176', 'tblTempUsageDetail_20' ) start [2025-01-30 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365176', 'tblTempUsageDetail_20' ) end [2025-01-30 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365176', 'tblTempVendorCDR_20' ) start [2025-01-30 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365176', 'tblTempVendorCDR_20' ) end [2025-01-30 17:25:21] Production.INFO: ProcessCDR(1,14365176,1,1,2) [2025-01-30 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365176', 'tblTempUsageDetail_20' ) start [2025-01-30 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365176', 'tblTempUsageDetail_20' ) end [2025-01-30 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:25:24] Production.INFO: ==16292== Releasing lock... [2025-01-30 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:25:24] Production.INFO: 61.5 MB #Memory Used# [2025-01-30 17:26:19] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:26:19 [end_date_ymd] => 2025-01-30 17:26:19 [RateCDR] => 1 ) [2025-01-30 17:26:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:26:19' and `end` < '2025-01-30 17:26:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:26:33] Production.INFO: count ==4452 [2025-01-30 17:27:26] Production.ERROR: pbx CDR StartTime 2025-01-30 14:26:19 - End Time 2025-01-30 17:26:19 [2025-01-30 17:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365181', 'tblTempUsageDetail_20' ) start [2025-01-30 17:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365181', 'tblTempUsageDetail_20' ) end [2025-01-30 17:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365181', 'tblTempVendorCDR_20' ) start [2025-01-30 17:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365181', 'tblTempVendorCDR_20' ) end [2025-01-30 17:27:31] Production.INFO: ProcessCDR(1,14365181,1,1,2) [2025-01-30 17:27:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:27:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:27:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:28:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:28:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365181', 'tblTempUsageDetail_20' ) start [2025-01-30 17:28:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365181', 'tblTempUsageDetail_20' ) end [2025-01-30 17:28:06] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:28:06] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:28:09] Production.INFO: ==16366== Releasing lock... [2025-01-30 17:28:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:28:09] Production.INFO: 61.25 MB #Memory Used# [2025-01-30 17:29:18] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:29:18 [end_date_ymd] => 2025-01-30 17:29:18 [RateCDR] => 1 ) [2025-01-30 17:29:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:29:18' and `end` < '2025-01-30 17:29:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:29:32] Production.INFO: count ==4385 [2025-01-30 17:30:11] Production.ERROR: pbx CDR StartTime 2025-01-30 14:29:18 - End Time 2025-01-30 17:29:18 [2025-01-30 17:30:11] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:30:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365193', 'tblTempUsageDetail_20' ) start [2025-01-30 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365193', 'tblTempUsageDetail_20' ) end [2025-01-30 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365193', 'tblTempVendorCDR_20' ) start [2025-01-30 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365193', 'tblTempVendorCDR_20' ) end [2025-01-30 17:30:18] Production.INFO: ProcessCDR(1,14365193,1,1,2) [2025-01-30 17:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:30:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365193', 'tblTempUsageDetail_20' ) start [2025-01-30 17:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365193', 'tblTempUsageDetail_20' ) end [2025-01-30 17:30:44] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:30:44] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:30:44] Production.INFO: ==16604== Releasing lock... [2025-01-30 17:30:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:30:44] Production.INFO: 60.75 MB #Memory Used# [2025-01-30 17:31:11] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:31:11 [end_date_ymd] => 2025-01-30 17:31:11 [RateCDR] => 1 ) [2025-01-30 17:31:11] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:31:11' and `end` < '2025-01-30 17:31:11' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:31:29] Production.INFO: count ==4381 [2025-01-30 17:31:31] Production.ERROR: pbx CDR StartTime 2025-01-30 14:31:11 - End Time 2025-01-30 17:31:11 [2025-01-30 17:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365201', 'tblTempUsageDetail_20' ) start [2025-01-30 17:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365201', 'tblTempUsageDetail_20' ) end [2025-01-30 17:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365201', 'tblTempVendorCDR_20' ) start [2025-01-30 17:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365201', 'tblTempVendorCDR_20' ) end [2025-01-30 17:31:31] Production.INFO: ProcessCDR(1,14365201,1,1,2) [2025-01-30 17:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365201', 'tblTempUsageDetail_20' ) start [2025-01-30 17:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365201', 'tblTempUsageDetail_20' ) end [2025-01-30 17:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:31:37] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:31:37] Production.INFO: ==16743== Releasing lock... [2025-01-30 17:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:31:37] Production.INFO: 60.75 MB #Memory Used# [2025-01-30 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:32:05 [end_date_ymd] => 2025-01-30 17:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:32:05' and `end` < '2025-01-30 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-30 17:32:20] Production.INFO: count ==4356 [2025-01-30 17:32:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:32:05 - End Time 2025-01-30 17:32:05 [2025-01-30 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365206', 'tblTempUsageDetail_20' ) start [2025-01-30 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365206', 'tblTempUsageDetail_20' ) end [2025-01-30 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365206', 'tblTempVendorCDR_20' ) start [2025-01-30 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365206', 'tblTempVendorCDR_20' ) end [2025-01-30 17:32:22] Production.INFO: ProcessCDR(1,14365206,1,1,2) [2025-01-30 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365206', 'tblTempUsageDetail_20' ) start [2025-01-30 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365206', 'tblTempUsageDetail_20' ) end [2025-01-30 17:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:32:28] Production.INFO: ==16820== Releasing lock... [2025-01-30 17:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:32:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-30 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:33:06 [end_date_ymd] => 2025-01-30 17:33:06 [RateCDR] => 1 ) [2025-01-30 17:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:33:06' and `end` < '2025-01-30 17:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:33:21] Production.INFO: count ==4354 [2025-01-30 17:33:23] Production.ERROR: pbx CDR StartTime 2025-01-30 14:33:06 - End Time 2025-01-30 17:33:06 [2025-01-30 17:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365211', 'tblTempUsageDetail_20' ) start [2025-01-30 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365211', 'tblTempUsageDetail_20' ) end [2025-01-30 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365211', 'tblTempVendorCDR_20' ) start [2025-01-30 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365211', 'tblTempVendorCDR_20' ) end [2025-01-30 17:33:23] Production.INFO: ProcessCDR(1,14365211,1,1,2) [2025-01-30 17:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365211', 'tblTempUsageDetail_20' ) start [2025-01-30 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365211', 'tblTempUsageDetail_20' ) end [2025-01-30 17:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:33:28] Production.INFO: ==16894== Releasing lock... [2025-01-30 17:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:33:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-30 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:34:05 [end_date_ymd] => 2025-01-30 17:34:05 [RateCDR] => 1 ) [2025-01-30 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:34:05' and `end` < '2025-01-30 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:34:21] Production.INFO: count ==4346 [2025-01-30 17:34:23] Production.ERROR: pbx CDR StartTime 2025-01-30 14:34:05 - End Time 2025-01-30 17:34:05 [2025-01-30 17:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365216', 'tblTempUsageDetail_20' ) start [2025-01-30 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365216', 'tblTempUsageDetail_20' ) end [2025-01-30 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365216', 'tblTempVendorCDR_20' ) start [2025-01-30 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365216', 'tblTempVendorCDR_20' ) end [2025-01-30 17:34:23] Production.INFO: ProcessCDR(1,14365216,1,1,2) [2025-01-30 17:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365216', 'tblTempUsageDetail_20' ) start [2025-01-30 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365216', 'tblTempUsageDetail_20' ) end [2025-01-30 17:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:34:29] Production.INFO: ==16965== Releasing lock... [2025-01-30 17:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:34:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-30 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:35:06 [end_date_ymd] => 2025-01-30 17:35:06 [RateCDR] => 1 ) [2025-01-30 17:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:35:06' and `end` < '2025-01-30 17:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:35:20] Production.INFO: count ==4298 [2025-01-30 17:35:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:35:06 - End Time 2025-01-30 17:35:06 [2025-01-30 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365221', 'tblTempUsageDetail_20' ) start [2025-01-30 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365221', 'tblTempUsageDetail_20' ) end [2025-01-30 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365221', 'tblTempVendorCDR_20' ) start [2025-01-30 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365221', 'tblTempVendorCDR_20' ) end [2025-01-30 17:35:22] Production.INFO: ProcessCDR(1,14365221,1,1,2) [2025-01-30 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365221', 'tblTempUsageDetail_20' ) start [2025-01-30 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365221', 'tblTempUsageDetail_20' ) end [2025-01-30 17:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:35:28] Production.INFO: ==17037== Releasing lock... [2025-01-30 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:35:28] Production.INFO: 60.25 MB #Memory Used# [2025-01-30 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:36:06 [end_date_ymd] => 2025-01-30 17:36:06 [RateCDR] => 1 ) [2025-01-30 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:36:06' and `end` < '2025-01-30 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:36:20] Production.INFO: count ==4281 [2025-01-30 17:36:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:36:06 - End Time 2025-01-30 17:36:06 [2025-01-30 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365226', 'tblTempUsageDetail_20' ) start [2025-01-30 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365226', 'tblTempUsageDetail_20' ) end [2025-01-30 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365226', 'tblTempVendorCDR_20' ) start [2025-01-30 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365226', 'tblTempVendorCDR_20' ) end [2025-01-30 17:36:21] Production.INFO: ProcessCDR(1,14365226,1,1,2) [2025-01-30 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365226', 'tblTempUsageDetail_20' ) start [2025-01-30 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365226', 'tblTempUsageDetail_20' ) end [2025-01-30 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:36:25] Production.INFO: ==17108== Releasing lock... [2025-01-30 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:36:25] Production.INFO: 60 MB #Memory Used# [2025-01-30 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:37:05 [end_date_ymd] => 2025-01-30 17:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:37:05' and `end` < '2025-01-30 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-30 17:37:20] Production.INFO: count ==4267 [2025-01-30 17:37:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:37:05 - End Time 2025-01-30 17:37:05 [2025-01-30 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365231', 'tblTempUsageDetail_20' ) start [2025-01-30 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365231', 'tblTempUsageDetail_20' ) end [2025-01-30 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365231', 'tblTempVendorCDR_20' ) start [2025-01-30 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365231', 'tblTempVendorCDR_20' ) end [2025-01-30 17:37:22] Production.INFO: ProcessCDR(1,14365231,1,1,2) [2025-01-30 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365231', 'tblTempUsageDetail_20' ) start [2025-01-30 17:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365231', 'tblTempUsageDetail_20' ) end [2025-01-30 17:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:37:28] Production.INFO: ==17186== Releasing lock... [2025-01-30 17:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:37:28] Production.INFO: 60 MB #Memory Used# [2025-01-30 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:38:06 [end_date_ymd] => 2025-01-30 17:38:06 [RateCDR] => 1 ) [2025-01-30 17: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-30 14:38:06' and `end` < '2025-01-30 17: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-30 17:38:19] Production.INFO: count ==4255 [2025-01-30 17:38:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:38:06 - End Time 2025-01-30 17:38:06 [2025-01-30 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365236', 'tblTempUsageDetail_20' ) start [2025-01-30 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365236', 'tblTempUsageDetail_20' ) end [2025-01-30 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365236', 'tblTempVendorCDR_20' ) start [2025-01-30 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365236', 'tblTempVendorCDR_20' ) end [2025-01-30 17:38:21] Production.INFO: ProcessCDR(1,14365236,1,1,2) [2025-01-30 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365236', 'tblTempUsageDetail_20' ) start [2025-01-30 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365236', 'tblTempUsageDetail_20' ) end [2025-01-30 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:38:26] Production.INFO: ==17259== Releasing lock... [2025-01-30 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:38:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-30 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:39:05 [end_date_ymd] => 2025-01-30 17:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:39:05' and `end` < '2025-01-30 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-30 17:39:19] Production.INFO: count ==4262 [2025-01-30 17:39:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:39:05 - End Time 2025-01-30 17:39:05 [2025-01-30 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365241', 'tblTempUsageDetail_20' ) start [2025-01-30 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365241', 'tblTempUsageDetail_20' ) end [2025-01-30 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365241', 'tblTempVendorCDR_20' ) start [2025-01-30 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365241', 'tblTempVendorCDR_20' ) end [2025-01-30 17:39:21] Production.INFO: ProcessCDR(1,14365241,1,1,2) [2025-01-30 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365241', 'tblTempUsageDetail_20' ) start [2025-01-30 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365241', 'tblTempUsageDetail_20' ) end [2025-01-30 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:39:25] Production.INFO: ==17331== Releasing lock... [2025-01-30 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:39:25] Production.INFO: 60 MB #Memory Used# [2025-01-30 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:40:07 [end_date_ymd] => 2025-01-30 17:40:07 [RateCDR] => 1 ) [2025-01-30 17: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-30 14:40:07' and `end` < '2025-01-30 17: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-30 17:40:20] Production.INFO: count ==4253 [2025-01-30 17:40:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:40:07 - End Time 2025-01-30 17:40:07 [2025-01-30 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365247', 'tblTempUsageDetail_20' ) start [2025-01-30 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365247', 'tblTempUsageDetail_20' ) end [2025-01-30 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365247', 'tblTempVendorCDR_20' ) start [2025-01-30 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365247', 'tblTempVendorCDR_20' ) end [2025-01-30 17:40:22] Production.INFO: ProcessCDR(1,14365247,1,1,2) [2025-01-30 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365247', 'tblTempUsageDetail_20' ) start [2025-01-30 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365247', 'tblTempUsageDetail_20' ) end [2025-01-30 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:40:27] Production.INFO: ==17405== Releasing lock... [2025-01-30 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:40:27] Production.INFO: 60 MB #Memory Used# [2025-01-30 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:41:05 [end_date_ymd] => 2025-01-30 17:41:05 [RateCDR] => 1 ) [2025-01-30 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:41:05' and `end` < '2025-01-30 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:41:19] Production.INFO: count ==4187 [2025-01-30 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-30 14:41:05 - End Time 2025-01-30 17:41:05 [2025-01-30 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365252', 'tblTempUsageDetail_20' ) start [2025-01-30 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365252', 'tblTempUsageDetail_20' ) end [2025-01-30 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365252', 'tblTempVendorCDR_20' ) start [2025-01-30 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365252', 'tblTempVendorCDR_20' ) end [2025-01-30 17:41:21] Production.INFO: ProcessCDR(1,14365252,1,1,2) [2025-01-30 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365252', 'tblTempUsageDetail_20' ) start [2025-01-30 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365252', 'tblTempUsageDetail_20' ) end [2025-01-30 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:41:26] Production.INFO: ==17479== Releasing lock... [2025-01-30 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:41:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:42:06 [end_date_ymd] => 2025-01-30 17:42:06 [RateCDR] => 1 ) [2025-01-30 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:42:06' and `end` < '2025-01-30 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:42:21] Production.INFO: count ==4176 [2025-01-30 17:42:23] Production.ERROR: pbx CDR StartTime 2025-01-30 14:42:06 - End Time 2025-01-30 17:42:06 [2025-01-30 17:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365257', 'tblTempUsageDetail_20' ) start [2025-01-30 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365257', 'tblTempUsageDetail_20' ) end [2025-01-30 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365257', 'tblTempVendorCDR_20' ) start [2025-01-30 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365257', 'tblTempVendorCDR_20' ) end [2025-01-30 17:42:23] Production.INFO: ProcessCDR(1,14365257,1,1,2) [2025-01-30 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365257', 'tblTempUsageDetail_20' ) start [2025-01-30 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365257', 'tblTempUsageDetail_20' ) end [2025-01-30 17:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:42:28] Production.INFO: ==17589== Releasing lock... [2025-01-30 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:42:28] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:43:05 [end_date_ymd] => 2025-01-30 17:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:43:05' and `end` < '2025-01-30 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-30 17:43:20] Production.INFO: count ==4184 [2025-01-30 17:43:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:43:05 - End Time 2025-01-30 17:43:05 [2025-01-30 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365262', 'tblTempUsageDetail_20' ) start [2025-01-30 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365262', 'tblTempUsageDetail_20' ) end [2025-01-30 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365262', 'tblTempVendorCDR_20' ) start [2025-01-30 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365262', 'tblTempVendorCDR_20' ) end [2025-01-30 17:43:22] Production.INFO: ProcessCDR(1,14365262,1,1,2) [2025-01-30 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365262', 'tblTempUsageDetail_20' ) start [2025-01-30 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365262', 'tblTempUsageDetail_20' ) end [2025-01-30 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:43:27] Production.INFO: ==17660== Releasing lock... [2025-01-30 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:43:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:44:06 [end_date_ymd] => 2025-01-30 17:44:06 [RateCDR] => 1 ) [2025-01-30 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:44:06' and `end` < '2025-01-30 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:44:20] Production.INFO: count ==4180 [2025-01-30 17:44:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:44:06 - End Time 2025-01-30 17:44:06 [2025-01-30 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365267', 'tblTempUsageDetail_20' ) start [2025-01-30 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365267', 'tblTempUsageDetail_20' ) end [2025-01-30 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365267', 'tblTempVendorCDR_20' ) start [2025-01-30 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365267', 'tblTempVendorCDR_20' ) end [2025-01-30 17:44:22] Production.INFO: ProcessCDR(1,14365267,1,1,2) [2025-01-30 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365267', 'tblTempUsageDetail_20' ) start [2025-01-30 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365267', 'tblTempUsageDetail_20' ) end [2025-01-30 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:44:26] Production.INFO: ==17731== Releasing lock... [2025-01-30 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:44:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:45:05 [end_date_ymd] => 2025-01-30 17:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:45:05' and `end` < '2025-01-30 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-30 17:45:19] Production.INFO: count ==4176 [2025-01-30 17:45:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:45:05 - End Time 2025-01-30 17:45:05 [2025-01-30 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365272', 'tblTempUsageDetail_20' ) start [2025-01-30 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365272', 'tblTempUsageDetail_20' ) end [2025-01-30 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365272', 'tblTempVendorCDR_20' ) start [2025-01-30 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365272', 'tblTempVendorCDR_20' ) end [2025-01-30 17:45:21] Production.INFO: ProcessCDR(1,14365272,1,1,2) [2025-01-30 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365272', 'tblTempUsageDetail_20' ) start [2025-01-30 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365272', 'tblTempUsageDetail_20' ) end [2025-01-30 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:45:25] Production.INFO: ==17802== Releasing lock... [2025-01-30 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:45:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-30 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:46:05 [end_date_ymd] => 2025-01-30 17:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:46:05' and `end` < '2025-01-30 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-30 17:46:20] Production.INFO: count ==4151 [2025-01-30 17:46:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:46:05 - End Time 2025-01-30 17:46:05 [2025-01-30 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365277', 'tblTempUsageDetail_20' ) start [2025-01-30 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365277', 'tblTempUsageDetail_20' ) end [2025-01-30 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365277', 'tblTempVendorCDR_20' ) start [2025-01-30 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365277', 'tblTempVendorCDR_20' ) end [2025-01-30 17:46:22] Production.INFO: ProcessCDR(1,14365277,1,1,2) [2025-01-30 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365277', 'tblTempUsageDetail_20' ) start [2025-01-30 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365277', 'tblTempUsageDetail_20' ) end [2025-01-30 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:46:25] Production.INFO: ==17873== Releasing lock... [2025-01-30 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:46:25] Production.INFO: 59 MB #Memory Used# [2025-01-30 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:47:05 [end_date_ymd] => 2025-01-30 17:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:47:05' and `end` < '2025-01-30 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-30 17:47:18] Production.INFO: count ==4127 [2025-01-30 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-30 14:47:05 - End Time 2025-01-30 17:47:05 [2025-01-30 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365282', 'tblTempUsageDetail_20' ) start [2025-01-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365282', 'tblTempUsageDetail_20' ) end [2025-01-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365282', 'tblTempVendorCDR_20' ) start [2025-01-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365282', 'tblTempVendorCDR_20' ) end [2025-01-30 17:47:20] Production.INFO: ProcessCDR(1,14365282,1,1,2) [2025-01-30 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365282', 'tblTempUsageDetail_20' ) start [2025-01-30 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365282', 'tblTempUsageDetail_20' ) end [2025-01-30 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:47:24] Production.INFO: ==17944== Releasing lock... [2025-01-30 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:47:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-30 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:48:06 [end_date_ymd] => 2025-01-30 17:48:06 [RateCDR] => 1 ) [2025-01-30 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:48:06' and `end` < '2025-01-30 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:48:19] Production.INFO: count ==4133 [2025-01-30 17:48:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:48:06 - End Time 2025-01-30 17:48:06 [2025-01-30 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365287', 'tblTempUsageDetail_20' ) start [2025-01-30 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365287', 'tblTempUsageDetail_20' ) end [2025-01-30 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365287', 'tblTempVendorCDR_20' ) start [2025-01-30 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365287', 'tblTempVendorCDR_20' ) end [2025-01-30 17:48:21] Production.INFO: ProcessCDR(1,14365287,1,1,2) [2025-01-30 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365287', 'tblTempUsageDetail_20' ) start [2025-01-30 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365287', 'tblTempUsageDetail_20' ) end [2025-01-30 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:48:27] Production.INFO: ==18014== Releasing lock... [2025-01-30 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:48:27] Production.INFO: 59 MB #Memory Used# [2025-01-30 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:49:06 [end_date_ymd] => 2025-01-30 17:49:06 [RateCDR] => 1 ) [2025-01-30 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:49:06' and `end` < '2025-01-30 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:49:19] Production.INFO: count ==4102 [2025-01-30 17:49:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:49:06 - End Time 2025-01-30 17:49:06 [2025-01-30 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365292', 'tblTempUsageDetail_20' ) start [2025-01-30 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365292', 'tblTempUsageDetail_20' ) end [2025-01-30 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365292', 'tblTempVendorCDR_20' ) start [2025-01-30 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365292', 'tblTempVendorCDR_20' ) end [2025-01-30 17:49:21] Production.INFO: ProcessCDR(1,14365292,1,1,2) [2025-01-30 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365292', 'tblTempUsageDetail_20' ) start [2025-01-30 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365292', 'tblTempUsageDetail_20' ) end [2025-01-30 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:49:25] Production.INFO: ==18086== Releasing lock... [2025-01-30 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:49:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-30 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:50:06 [end_date_ymd] => 2025-01-30 17:50:06 [RateCDR] => 1 ) [2025-01-30 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:50:06' and `end` < '2025-01-30 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:50:20] Production.INFO: count ==4069 [2025-01-30 17:50:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:50:06 - End Time 2025-01-30 17:50:06 [2025-01-30 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365297', 'tblTempUsageDetail_20' ) start [2025-01-30 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365297', 'tblTempUsageDetail_20' ) end [2025-01-30 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365297', 'tblTempVendorCDR_20' ) start [2025-01-30 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365297', 'tblTempVendorCDR_20' ) end [2025-01-30 17:50:22] Production.INFO: ProcessCDR(1,14365297,1,1,2) [2025-01-30 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365297', 'tblTempUsageDetail_20' ) start [2025-01-30 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365297', 'tblTempUsageDetail_20' ) end [2025-01-30 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:50:27] Production.INFO: ==18159== Releasing lock... [2025-01-30 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:50:27] Production.INFO: 58.25 MB #Memory Used# [2025-01-30 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:51:06 [end_date_ymd] => 2025-01-30 17:51:06 [RateCDR] => 1 ) [2025-01-30 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:51:06' and `end` < '2025-01-30 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:51:19] Production.INFO: count ==4009 [2025-01-30 17:51:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:51:06 - End Time 2025-01-30 17:51:06 [2025-01-30 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365303', 'tblTempUsageDetail_20' ) start [2025-01-30 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365303', 'tblTempUsageDetail_20' ) end [2025-01-30 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365303', 'tblTempVendorCDR_20' ) start [2025-01-30 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365303', 'tblTempVendorCDR_20' ) end [2025-01-30 17:51:21] Production.INFO: ProcessCDR(1,14365303,1,1,2) [2025-01-30 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365303', 'tblTempUsageDetail_20' ) start [2025-01-30 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365303', 'tblTempUsageDetail_20' ) end [2025-01-30 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:51:25] Production.INFO: ==18235== Releasing lock... [2025-01-30 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:51:25] Production.INFO: 58 MB #Memory Used# [2025-01-30 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:52:06 [end_date_ymd] => 2025-01-30 17:52:06 [RateCDR] => 1 ) [2025-01-30 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:52:06' and `end` < '2025-01-30 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:52:19] Production.INFO: count ==3993 [2025-01-30 17:52:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:52:06 - End Time 2025-01-30 17:52:06 [2025-01-30 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365308', 'tblTempUsageDetail_20' ) start [2025-01-30 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365308', 'tblTempUsageDetail_20' ) end [2025-01-30 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365308', 'tblTempVendorCDR_20' ) start [2025-01-30 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365308', 'tblTempVendorCDR_20' ) end [2025-01-30 17:52:21] Production.INFO: ProcessCDR(1,14365308,1,1,2) [2025-01-30 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365308', 'tblTempUsageDetail_20' ) start [2025-01-30 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365308', 'tblTempUsageDetail_20' ) end [2025-01-30 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:52:26] Production.INFO: ==18306== Releasing lock... [2025-01-30 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:52:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:53:06 [end_date_ymd] => 2025-01-30 17:53:06 [RateCDR] => 1 ) [2025-01-30 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:53:06' and `end` < '2025-01-30 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:53:21] Production.INFO: count ==3977 [2025-01-30 17:53:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:53:06 - End Time 2025-01-30 17:53:06 [2025-01-30 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365313', 'tblTempUsageDetail_20' ) start [2025-01-30 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365313', 'tblTempUsageDetail_20' ) end [2025-01-30 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365313', 'tblTempVendorCDR_20' ) start [2025-01-30 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365313', 'tblTempVendorCDR_20' ) end [2025-01-30 17:53:22] Production.INFO: ProcessCDR(1,14365313,1,1,2) [2025-01-30 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365313', 'tblTempUsageDetail_20' ) start [2025-01-30 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365313', 'tblTempUsageDetail_20' ) end [2025-01-30 17:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:53:28] Production.INFO: ==18378== Releasing lock... [2025-01-30 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:53:28] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:54:06 [end_date_ymd] => 2025-01-30 17:54:06 [RateCDR] => 1 ) [2025-01-30 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:54:06' and `end` < '2025-01-30 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:54:21] Production.INFO: count ==3980 [2025-01-30 17:54:22] Production.ERROR: pbx CDR StartTime 2025-01-30 14:54:06 - End Time 2025-01-30 17:54:06 [2025-01-30 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365318', 'tblTempUsageDetail_20' ) start [2025-01-30 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365318', 'tblTempUsageDetail_20' ) end [2025-01-30 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365318', 'tblTempVendorCDR_20' ) start [2025-01-30 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365318', 'tblTempVendorCDR_20' ) end [2025-01-30 17:54:22] Production.INFO: ProcessCDR(1,14365318,1,1,2) [2025-01-30 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365318', 'tblTempUsageDetail_20' ) start [2025-01-30 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365318', 'tblTempUsageDetail_20' ) end [2025-01-30 17:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:54:28] Production.INFO: ==18448== Releasing lock... [2025-01-30 17:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:54:28] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:55:05 [end_date_ymd] => 2025-01-30 17:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:55:05' and `end` < '2025-01-30 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-30 17:55:19] Production.INFO: count ==3985 [2025-01-30 17:55:20] Production.ERROR: pbx CDR StartTime 2025-01-30 14:55:05 - End Time 2025-01-30 17:55:05 [2025-01-30 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365323', 'tblTempUsageDetail_20' ) start [2025-01-30 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365323', 'tblTempUsageDetail_20' ) end [2025-01-30 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365323', 'tblTempVendorCDR_20' ) start [2025-01-30 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365323', 'tblTempVendorCDR_20' ) end [2025-01-30 17:55:21] Production.INFO: ProcessCDR(1,14365323,1,1,2) [2025-01-30 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365323', 'tblTempUsageDetail_20' ) start [2025-01-30 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365323', 'tblTempUsageDetail_20' ) end [2025-01-30 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:55:26] Production.INFO: ==18520== Releasing lock... [2025-01-30 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:55:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-30 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:56:06 [end_date_ymd] => 2025-01-30 17:56:06 [RateCDR] => 1 ) [2025-01-30 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:56:06' and `end` < '2025-01-30 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:56:20] Production.INFO: count ==3990 [2025-01-30 17:56:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:56:06 - End Time 2025-01-30 17:56:06 [2025-01-30 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365328', 'tblTempUsageDetail_20' ) start [2025-01-30 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365328', 'tblTempUsageDetail_20' ) end [2025-01-30 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365328', 'tblTempVendorCDR_20' ) start [2025-01-30 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365328', 'tblTempVendorCDR_20' ) end [2025-01-30 17:56:22] Production.INFO: ProcessCDR(1,14365328,1,1,2) [2025-01-30 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365328', 'tblTempUsageDetail_20' ) start [2025-01-30 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365328', 'tblTempUsageDetail_20' ) end [2025-01-30 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:56:27] Production.INFO: ==18601== Releasing lock... [2025-01-30 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:56:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:57:06 [end_date_ymd] => 2025-01-30 17:57:06 [RateCDR] => 1 ) [2025-01-30 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:57:06' and `end` < '2025-01-30 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:57:19] Production.INFO: count ==3985 [2025-01-30 17:57:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:57:06 - End Time 2025-01-30 17:57:06 [2025-01-30 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365333', 'tblTempUsageDetail_20' ) start [2025-01-30 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365333', 'tblTempUsageDetail_20' ) end [2025-01-30 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365333', 'tblTempVendorCDR_20' ) start [2025-01-30 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365333', 'tblTempVendorCDR_20' ) end [2025-01-30 17:57:21] Production.INFO: ProcessCDR(1,14365333,1,1,2) [2025-01-30 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365333', 'tblTempUsageDetail_20' ) start [2025-01-30 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365333', 'tblTempUsageDetail_20' ) end [2025-01-30 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:57:26] Production.INFO: ==18672== Releasing lock... [2025-01-30 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:57:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:58:06 [end_date_ymd] => 2025-01-30 17:58:06 [RateCDR] => 1 ) [2025-01-30 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 14:58:06' and `end` < '2025-01-30 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 17:58:20] Production.INFO: count ==4000 [2025-01-30 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:58:06 - End Time 2025-01-30 17:58:06 [2025-01-30 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365338', 'tblTempUsageDetail_20' ) start [2025-01-30 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365338', 'tblTempUsageDetail_20' ) end [2025-01-30 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365338', 'tblTempVendorCDR_20' ) start [2025-01-30 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365338', 'tblTempVendorCDR_20' ) end [2025-01-30 17:58:21] Production.INFO: ProcessCDR(1,14365338,1,1,2) [2025-01-30 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365338', 'tblTempUsageDetail_20' ) start [2025-01-30 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365338', 'tblTempUsageDetail_20' ) end [2025-01-30 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:58:25] Production.INFO: ==18784== Releasing lock... [2025-01-30 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:58:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 14:59:05 [end_date_ymd] => 2025-01-30 17:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 14:59:05' and `end` < '2025-01-30 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-30 17:59:19] Production.INFO: count ==4005 [2025-01-30 17:59:21] Production.ERROR: pbx CDR StartTime 2025-01-30 14:59:05 - End Time 2025-01-30 17:59:05 [2025-01-30 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365343', 'tblTempUsageDetail_20' ) start [2025-01-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365343', 'tblTempUsageDetail_20' ) end [2025-01-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365343', 'tblTempVendorCDR_20' ) start [2025-01-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365343', 'tblTempVendorCDR_20' ) end [2025-01-30 17:59:21] Production.INFO: ProcessCDR(1,14365343,1,1,2) [2025-01-30 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365343', 'tblTempUsageDetail_20' ) start [2025-01-30 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365343', 'tblTempUsageDetail_20' ) end [2025-01-30 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 17:59:25] Production.INFO: ==18855== Releasing lock... [2025-01-30 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 17:59:25] Production.INFO: 58 MB #Memory Used# [2025-01-30 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:00:07 [end_date_ymd] => 2025-01-30 18:00:07 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:00:07' and `end` < '2025-01-30 18: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-30 18:00:20] Production.INFO: count ==4024 [2025-01-30 18:00:22] Production.ERROR: pbx CDR StartTime 2025-01-30 15:00:07 - End Time 2025-01-30 18:00:07 [2025-01-30 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365349', 'tblTempUsageDetail_20' ) start [2025-01-30 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365349', 'tblTempUsageDetail_20' ) end [2025-01-30 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365349', 'tblTempVendorCDR_20' ) start [2025-01-30 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365349', 'tblTempVendorCDR_20' ) end [2025-01-30 18:00:22] Production.INFO: ProcessCDR(1,14365349,1,1,2) [2025-01-30 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365349', 'tblTempUsageDetail_20' ) start [2025-01-30 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365349', 'tblTempUsageDetail_20' ) end [2025-01-30 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:00:26] Production.INFO: ==18929== Releasing lock... [2025-01-30 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:00:26] Production.INFO: 58 MB #Memory Used# [2025-01-30 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:01:05 [end_date_ymd] => 2025-01-30 18:01:05 [RateCDR] => 1 ) [2025-01-30 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:01:05' and `end` < '2025-01-30 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:01:19] Production.INFO: count ==3988 [2025-01-30 18:01:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:01:05 - End Time 2025-01-30 18:01:05 [2025-01-30 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365354', 'tblTempUsageDetail_20' ) start [2025-01-30 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365354', 'tblTempUsageDetail_20' ) end [2025-01-30 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365354', 'tblTempVendorCDR_20' ) start [2025-01-30 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365354', 'tblTempVendorCDR_20' ) end [2025-01-30 18:01:20] Production.INFO: ProcessCDR(1,14365354,1,1,2) [2025-01-30 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365354', 'tblTempUsageDetail_20' ) start [2025-01-30 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365354', 'tblTempUsageDetail_20' ) end [2025-01-30 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:01:25] Production.INFO: ==19014== Releasing lock... [2025-01-30 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:01:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:02:06 [end_date_ymd] => 2025-01-30 18:02:06 [RateCDR] => 1 ) [2025-01-30 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:02:06' and `end` < '2025-01-30 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:02:19] Production.INFO: count ==3981 [2025-01-30 18:02:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:02:06 - End Time 2025-01-30 18:02:06 [2025-01-30 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365359', 'tblTempUsageDetail_20' ) start [2025-01-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365359', 'tblTempUsageDetail_20' ) end [2025-01-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365359', 'tblTempVendorCDR_20' ) start [2025-01-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365359', 'tblTempVendorCDR_20' ) end [2025-01-30 18:02:21] Production.INFO: ProcessCDR(1,14365359,1,1,2) [2025-01-30 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365359', 'tblTempUsageDetail_20' ) start [2025-01-30 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365359', 'tblTempUsageDetail_20' ) end [2025-01-30 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:02:26] Production.INFO: ==19095== Releasing lock... [2025-01-30 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:02:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:03:05 [end_date_ymd] => 2025-01-30 18:03:05 [RateCDR] => 1 ) [2025-01-30 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:03:05' and `end` < '2025-01-30 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:03:19] Production.INFO: count ==3980 [2025-01-30 18:03:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:03:05 - End Time 2025-01-30 18:03:05 [2025-01-30 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365364', 'tblTempUsageDetail_20' ) start [2025-01-30 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365364', 'tblTempUsageDetail_20' ) end [2025-01-30 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365364', 'tblTempVendorCDR_20' ) start [2025-01-30 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365364', 'tblTempVendorCDR_20' ) end [2025-01-30 18:03:21] Production.INFO: ProcessCDR(1,14365364,1,1,2) [2025-01-30 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365364', 'tblTempUsageDetail_20' ) start [2025-01-30 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365364', 'tblTempUsageDetail_20' ) end [2025-01-30 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:03:26] Production.INFO: ==19164== Releasing lock... [2025-01-30 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:03:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:04:06 [end_date_ymd] => 2025-01-30 18:04:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:04:06' and `end` < '2025-01-30 18: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-30 18:04:20] Production.INFO: count ==3978 [2025-01-30 18:04:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:04:06 - End Time 2025-01-30 18:04:06 [2025-01-30 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365369', 'tblTempUsageDetail_20' ) start [2025-01-30 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365369', 'tblTempUsageDetail_20' ) end [2025-01-30 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365369', 'tblTempVendorCDR_20' ) start [2025-01-30 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365369', 'tblTempVendorCDR_20' ) end [2025-01-30 18:04:21] Production.INFO: ProcessCDR(1,14365369,1,1,2) [2025-01-30 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365369', 'tblTempUsageDetail_20' ) start [2025-01-30 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365369', 'tblTempUsageDetail_20' ) end [2025-01-30 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:04:27] Production.INFO: ==19237== Releasing lock... [2025-01-30 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:04:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:05:06 [end_date_ymd] => 2025-01-30 18:05:06 [RateCDR] => 1 ) [2025-01-30 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:05:06' and `end` < '2025-01-30 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:05:24] Production.INFO: count ==3977 [2025-01-30 18:05:25] Production.ERROR: pbx CDR StartTime 2025-01-30 15:05:06 - End Time 2025-01-30 18:05:06 [2025-01-30 18:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365374', 'tblTempUsageDetail_20' ) start [2025-01-30 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365374', 'tblTempUsageDetail_20' ) end [2025-01-30 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365374', 'tblTempVendorCDR_20' ) start [2025-01-30 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365374', 'tblTempVendorCDR_20' ) end [2025-01-30 18:05:25] Production.INFO: ProcessCDR(1,14365374,1,1,2) [2025-01-30 18:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365374', 'tblTempUsageDetail_20' ) start [2025-01-30 18:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365374', 'tblTempUsageDetail_20' ) end [2025-01-30 18:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:05:30] Production.INFO: ==19307== Releasing lock... [2025-01-30 18:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:05:30] Production.INFO: 57.75 MB #Memory Used# [2025-01-30 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:06:05 [end_date_ymd] => 2025-01-30 18:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:06:05' and `end` < '2025-01-30 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-30 18:06:21] Production.INFO: count ==3957 [2025-01-30 18:06:23] Production.ERROR: pbx CDR StartTime 2025-01-30 15:06:05 - End Time 2025-01-30 18:06:05 [2025-01-30 18:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365379', 'tblTempUsageDetail_20' ) start [2025-01-30 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365379', 'tblTempUsageDetail_20' ) end [2025-01-30 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365379', 'tblTempVendorCDR_20' ) start [2025-01-30 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365379', 'tblTempVendorCDR_20' ) end [2025-01-30 18:06:23] Production.INFO: ProcessCDR(1,14365379,1,1,2) [2025-01-30 18:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365379', 'tblTempUsageDetail_20' ) start [2025-01-30 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365379', 'tblTempUsageDetail_20' ) end [2025-01-30 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:06:28] Production.INFO: ==19378== Releasing lock... [2025-01-30 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:06:28] Production.INFO: 57.5 MB #Memory Used# [2025-01-30 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:07:06 [end_date_ymd] => 2025-01-30 18:07:06 [RateCDR] => 1 ) [2025-01-30 18:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:07:06' and `end` < '2025-01-30 18:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:07:19] Production.INFO: count ==3956 [2025-01-30 18:07:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:07:06 - End Time 2025-01-30 18:07:06 [2025-01-30 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365384', 'tblTempUsageDetail_20' ) start [2025-01-30 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365384', 'tblTempUsageDetail_20' ) end [2025-01-30 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365384', 'tblTempVendorCDR_20' ) start [2025-01-30 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365384', 'tblTempVendorCDR_20' ) end [2025-01-30 18:07:21] Production.INFO: ProcessCDR(1,14365384,1,1,2) [2025-01-30 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365384', 'tblTempUsageDetail_20' ) start [2025-01-30 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365384', 'tblTempUsageDetail_20' ) end [2025-01-30 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:07:26] Production.INFO: ==19452== Releasing lock... [2025-01-30 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:07:26] Production.INFO: 57.5 MB #Memory Used# [2025-01-30 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:08:06 [end_date_ymd] => 2025-01-30 18:08:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:08:06' and `end` < '2025-01-30 18: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-30 18:08:19] Production.INFO: count ==3942 [2025-01-30 18:08:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:08:06 - End Time 2025-01-30 18:08:06 [2025-01-30 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365389', 'tblTempUsageDetail_20' ) start [2025-01-30 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365389', 'tblTempUsageDetail_20' ) end [2025-01-30 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365389', 'tblTempVendorCDR_20' ) start [2025-01-30 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365389', 'tblTempVendorCDR_20' ) end [2025-01-30 18:08:21] Production.INFO: ProcessCDR(1,14365389,1,1,2) [2025-01-30 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365389', 'tblTempUsageDetail_20' ) start [2025-01-30 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365389', 'tblTempUsageDetail_20' ) end [2025-01-30 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:08:24] Production.INFO: ==19525== Releasing lock... [2025-01-30 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:08:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-30 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:09:06 [end_date_ymd] => 2025-01-30 18:09:06 [RateCDR] => 1 ) [2025-01-30 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-30 15:09:06' and `end` < '2025-01-30 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-30 18:09:19] Production.INFO: count ==3934 [2025-01-30 18:09:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:09:06 - End Time 2025-01-30 18:09:06 [2025-01-30 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365394', 'tblTempUsageDetail_20' ) start [2025-01-30 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365394', 'tblTempUsageDetail_20' ) end [2025-01-30 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365394', 'tblTempVendorCDR_20' ) start [2025-01-30 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365394', 'tblTempVendorCDR_20' ) end [2025-01-30 18:09:21] Production.INFO: ProcessCDR(1,14365394,1,1,2) [2025-01-30 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365394', 'tblTempUsageDetail_20' ) start [2025-01-30 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365394', 'tblTempUsageDetail_20' ) end [2025-01-30 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:09:26] Production.INFO: ==19594== Releasing lock... [2025-01-30 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:09:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:10:05 [end_date_ymd] => 2025-01-30 18:10:05 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:10:05' and `end` < '2025-01-30 18: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-30 18:10:18] Production.INFO: count ==3920 [2025-01-30 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:10:05 - End Time 2025-01-30 18:10:05 [2025-01-30 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365398', 'tblTempUsageDetail_20' ) start [2025-01-30 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365398', 'tblTempUsageDetail_20' ) end [2025-01-30 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365398', 'tblTempVendorCDR_20' ) start [2025-01-30 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365398', 'tblTempVendorCDR_20' ) end [2025-01-30 18:10:20] Production.INFO: ProcessCDR(1,14365398,1,1,2) [2025-01-30 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365398', 'tblTempUsageDetail_20' ) start [2025-01-30 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365398', 'tblTempUsageDetail_20' ) end [2025-01-30 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:10:25] Production.INFO: ==19667== Releasing lock... [2025-01-30 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:10:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:11:06 [end_date_ymd] => 2025-01-30 18:11:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:11:06' and `end` < '2025-01-30 18: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-30 18:11:19] Production.INFO: count ==3930 [2025-01-30 18:11:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:11:06 - End Time 2025-01-30 18:11:06 [2025-01-30 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365405', 'tblTempUsageDetail_20' ) start [2025-01-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365405', 'tblTempUsageDetail_20' ) end [2025-01-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365405', 'tblTempVendorCDR_20' ) start [2025-01-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365405', 'tblTempVendorCDR_20' ) end [2025-01-30 18:11:21] Production.INFO: ProcessCDR(1,14365405,1,1,2) [2025-01-30 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365405', 'tblTempUsageDetail_20' ) start [2025-01-30 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365405', 'tblTempUsageDetail_20' ) end [2025-01-30 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:11:24] Production.INFO: ==19759== Releasing lock... [2025-01-30 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:11:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:12:05 [end_date_ymd] => 2025-01-30 18:12:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:12:05' and `end` < '2025-01-30 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-30 18:12:19] Production.INFO: count ==3914 [2025-01-30 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:12:05 - End Time 2025-01-30 18:12:05 [2025-01-30 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365410', 'tblTempUsageDetail_20' ) start [2025-01-30 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365410', 'tblTempUsageDetail_20' ) end [2025-01-30 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365410', 'tblTempVendorCDR_20' ) start [2025-01-30 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365410', 'tblTempVendorCDR_20' ) end [2025-01-30 18:12:21] Production.INFO: ProcessCDR(1,14365410,1,1,2) [2025-01-30 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365410', 'tblTempUsageDetail_20' ) start [2025-01-30 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365410', 'tblTempUsageDetail_20' ) end [2025-01-30 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:12:24] Production.INFO: ==19836== Releasing lock... [2025-01-30 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:12:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-30 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:13:06 [end_date_ymd] => 2025-01-30 18:13:06 [RateCDR] => 1 ) [2025-01-30 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:13:06' and `end` < '2025-01-30 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:13:23] Production.INFO: count ==3891 [2025-01-30 18:13:25] Production.ERROR: pbx CDR StartTime 2025-01-30 15:13:06 - End Time 2025-01-30 18:13:06 [2025-01-30 18:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365415', 'tblTempUsageDetail_20' ) start [2025-01-30 18:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365415', 'tblTempUsageDetail_20' ) end [2025-01-30 18:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365415', 'tblTempVendorCDR_20' ) start [2025-01-30 18:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365415', 'tblTempVendorCDR_20' ) end [2025-01-30 18:13:25] Production.INFO: ProcessCDR(1,14365415,1,1,2) [2025-01-30 18:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365415', 'tblTempUsageDetail_20' ) start [2025-01-30 18:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365415', 'tblTempUsageDetail_20' ) end [2025-01-30 18:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:13:30] Production.INFO: ==19950== Releasing lock... [2025-01-30 18:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:13:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-30 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:14:05 [end_date_ymd] => 2025-01-30 18:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:14:05' and `end` < '2025-01-30 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-30 18:14:20] Production.INFO: count ==3866 [2025-01-30 18:14:22] Production.ERROR: pbx CDR StartTime 2025-01-30 15:14:05 - End Time 2025-01-30 18:14:05 [2025-01-30 18:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365420', 'tblTempUsageDetail_20' ) start [2025-01-30 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365420', 'tblTempUsageDetail_20' ) end [2025-01-30 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365420', 'tblTempVendorCDR_20' ) start [2025-01-30 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365420', 'tblTempVendorCDR_20' ) end [2025-01-30 18:14:22] Production.INFO: ProcessCDR(1,14365420,1,1,2) [2025-01-30 18:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365420', 'tblTempUsageDetail_20' ) start [2025-01-30 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365420', 'tblTempUsageDetail_20' ) end [2025-01-30 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:14:26] Production.INFO: ==20022== Releasing lock... [2025-01-30 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:14:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-30 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:15:06 [end_date_ymd] => 2025-01-30 18:15:06 [RateCDR] => 1 ) [2025-01-30 18:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:15:06' and `end` < '2025-01-30 18:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:15:19] Production.INFO: count ==3820 [2025-01-30 18:15:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:15:06 - End Time 2025-01-30 18:15:06 [2025-01-30 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365425', 'tblTempUsageDetail_20' ) start [2025-01-30 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365425', 'tblTempUsageDetail_20' ) end [2025-01-30 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365425', 'tblTempVendorCDR_20' ) start [2025-01-30 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365425', 'tblTempVendorCDR_20' ) end [2025-01-30 18:15:21] Production.INFO: ProcessCDR(1,14365425,1,1,2) [2025-01-30 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365425', 'tblTempUsageDetail_20' ) start [2025-01-30 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365425', 'tblTempUsageDetail_20' ) end [2025-01-30 18:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:15:26] Production.INFO: ==20097== Releasing lock... [2025-01-30 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:15:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-30 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:16:05 [end_date_ymd] => 2025-01-30 18:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:16:05' and `end` < '2025-01-30 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-30 18:16:19] Production.INFO: count ==3788 [2025-01-30 18:16:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:16:05 - End Time 2025-01-30 18:16:05 [2025-01-30 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365430', 'tblTempUsageDetail_20' ) start [2025-01-30 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365430', 'tblTempUsageDetail_20' ) end [2025-01-30 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365430', 'tblTempVendorCDR_20' ) start [2025-01-30 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365430', 'tblTempVendorCDR_20' ) end [2025-01-30 18:16:20] Production.INFO: ProcessCDR(1,14365430,1,1,2) [2025-01-30 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365430', 'tblTempUsageDetail_20' ) start [2025-01-30 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365430', 'tblTempUsageDetail_20' ) end [2025-01-30 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:16:26] Production.INFO: ==20180== Releasing lock... [2025-01-30 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:16:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-30 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:17:06 [end_date_ymd] => 2025-01-30 18:17:06 [RateCDR] => 1 ) [2025-01-30 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:17:06' and `end` < '2025-01-30 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:17:20] Production.INFO: count ==3774 [2025-01-30 18:17:22] Production.ERROR: pbx CDR StartTime 2025-01-30 15:17:06 - End Time 2025-01-30 18:17:06 [2025-01-30 18:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365435', 'tblTempUsageDetail_20' ) start [2025-01-30 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365435', 'tblTempUsageDetail_20' ) end [2025-01-30 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365435', 'tblTempVendorCDR_20' ) start [2025-01-30 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365435', 'tblTempVendorCDR_20' ) end [2025-01-30 18:17:22] Production.INFO: ProcessCDR(1,14365435,1,1,2) [2025-01-30 18:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365435', 'tblTempUsageDetail_20' ) start [2025-01-30 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365435', 'tblTempUsageDetail_20' ) end [2025-01-30 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:17:25] Production.INFO: ==20258== Releasing lock... [2025-01-30 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:17:25] Production.INFO: 56.5 MB #Memory Used# [2025-01-30 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:18:05 [end_date_ymd] => 2025-01-30 18:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:18:05' and `end` < '2025-01-30 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-30 18:18:19] Production.INFO: count ==3763 [2025-01-30 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:18:05 - End Time 2025-01-30 18:18:05 [2025-01-30 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365440', 'tblTempUsageDetail_20' ) start [2025-01-30 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365440', 'tblTempUsageDetail_20' ) end [2025-01-30 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365440', 'tblTempVendorCDR_20' ) start [2025-01-30 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365440', 'tblTempVendorCDR_20' ) end [2025-01-30 18:18:21] Production.INFO: ProcessCDR(1,14365440,1,1,2) [2025-01-30 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365440', 'tblTempUsageDetail_20' ) start [2025-01-30 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365440', 'tblTempUsageDetail_20' ) end [2025-01-30 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:18:24] Production.INFO: ==20333== Releasing lock... [2025-01-30 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:18:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-30 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:19:06 [end_date_ymd] => 2025-01-30 18:19:06 [RateCDR] => 1 ) [2025-01-30 18:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:19:06' and `end` < '2025-01-30 18:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:19:20] Production.INFO: count ==3759 [2025-01-30 18:19:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:19:06 - End Time 2025-01-30 18:19:06 [2025-01-30 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365445', 'tblTempUsageDetail_20' ) start [2025-01-30 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365445', 'tblTempUsageDetail_20' ) end [2025-01-30 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365445', 'tblTempVendorCDR_20' ) start [2025-01-30 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365445', 'tblTempVendorCDR_20' ) end [2025-01-30 18:19:21] Production.INFO: ProcessCDR(1,14365445,1,1,2) [2025-01-30 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365445', 'tblTempUsageDetail_20' ) start [2025-01-30 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365445', 'tblTempUsageDetail_20' ) end [2025-01-30 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:19:25] Production.INFO: ==20408== Releasing lock... [2025-01-30 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:19:25] Production.INFO: 56.25 MB #Memory Used# [2025-01-30 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:20:06 [end_date_ymd] => 2025-01-30 18:20:06 [RateCDR] => 1 ) [2025-01-30 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:20:06' and `end` < '2025-01-30 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:20:21] Production.INFO: count ==3733 [2025-01-30 18:20:23] Production.ERROR: pbx CDR StartTime 2025-01-30 15:20:06 - End Time 2025-01-30 18:20:06 [2025-01-30 18:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365450', 'tblTempUsageDetail_20' ) start [2025-01-30 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365450', 'tblTempUsageDetail_20' ) end [2025-01-30 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365450', 'tblTempVendorCDR_20' ) start [2025-01-30 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365450', 'tblTempVendorCDR_20' ) end [2025-01-30 18:20:23] Production.INFO: ProcessCDR(1,14365450,1,1,2) [2025-01-30 18:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365450', 'tblTempUsageDetail_20' ) start [2025-01-30 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365450', 'tblTempUsageDetail_20' ) end [2025-01-30 18:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:20:28] Production.INFO: ==20484== Releasing lock... [2025-01-30 18:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:20:28] Production.INFO: 56 MB #Memory Used# [2025-01-30 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:21:06 [end_date_ymd] => 2025-01-30 18:21:06 [RateCDR] => 1 ) [2025-01-30 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:21:06' and `end` < '2025-01-30 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:21:20] Production.INFO: count ==3669 [2025-01-30 18:21:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:21:06 - End Time 2025-01-30 18:21:06 [2025-01-30 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365456', 'tblTempUsageDetail_20' ) start [2025-01-30 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365456', 'tblTempUsageDetail_20' ) end [2025-01-30 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365456', 'tblTempVendorCDR_20' ) start [2025-01-30 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365456', 'tblTempVendorCDR_20' ) end [2025-01-30 18:21:21] Production.INFO: ProcessCDR(1,14365456,1,1,2) [2025-01-30 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365456', 'tblTempUsageDetail_20' ) start [2025-01-30 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365456', 'tblTempUsageDetail_20' ) end [2025-01-30 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:21:25] Production.INFO: ==20562== Releasing lock... [2025-01-30 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:21:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-30 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:22:05 [end_date_ymd] => 2025-01-30 18:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:22:05' and `end` < '2025-01-30 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-30 18:22:19] Production.INFO: count ==3640 [2025-01-30 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:22:05 - End Time 2025-01-30 18:22:05 [2025-01-30 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365461', 'tblTempUsageDetail_20' ) start [2025-01-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365461', 'tblTempUsageDetail_20' ) end [2025-01-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365461', 'tblTempVendorCDR_20' ) start [2025-01-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365461', 'tblTempVendorCDR_20' ) end [2025-01-30 18:22:20] Production.INFO: ProcessCDR(1,14365461,1,1,2) [2025-01-30 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365461', 'tblTempUsageDetail_20' ) start [2025-01-30 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365461', 'tblTempUsageDetail_20' ) end [2025-01-30 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:22:24] Production.INFO: ==20638== Releasing lock... [2025-01-30 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:22:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-30 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:23:06 [end_date_ymd] => 2025-01-30 18:23:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:23:06' and `end` < '2025-01-30 18: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-30 18:23:19] Production.INFO: count ==3644 [2025-01-30 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:23:06 - End Time 2025-01-30 18:23:06 [2025-01-30 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365466', 'tblTempUsageDetail_20' ) start [2025-01-30 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365466', 'tblTempUsageDetail_20' ) end [2025-01-30 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365466', 'tblTempVendorCDR_20' ) start [2025-01-30 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365466', 'tblTempVendorCDR_20' ) end [2025-01-30 18:23:21] Production.INFO: ProcessCDR(1,14365466,1,1,2) [2025-01-30 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365466', 'tblTempUsageDetail_20' ) start [2025-01-30 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365466', 'tblTempUsageDetail_20' ) end [2025-01-30 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:23:24] Production.INFO: ==20712== Releasing lock... [2025-01-30 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:23:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-30 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:24:06 [end_date_ymd] => 2025-01-30 18:24:06 [RateCDR] => 1 ) [2025-01-30 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:24:06' and `end` < '2025-01-30 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:24:19] Production.INFO: count ==3646 [2025-01-30 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:24:06 - End Time 2025-01-30 18:24:06 [2025-01-30 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365471', 'tblTempUsageDetail_20' ) start [2025-01-30 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365471', 'tblTempUsageDetail_20' ) end [2025-01-30 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365471', 'tblTempVendorCDR_20' ) start [2025-01-30 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365471', 'tblTempVendorCDR_20' ) end [2025-01-30 18:24:21] Production.INFO: ProcessCDR(1,14365471,1,1,2) [2025-01-30 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365471', 'tblTempUsageDetail_20' ) start [2025-01-30 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365471', 'tblTempUsageDetail_20' ) end [2025-01-30 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:24:25] Production.INFO: ==20786== Releasing lock... [2025-01-30 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:24:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-30 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:25:06 [end_date_ymd] => 2025-01-30 18:25:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:25:06' and `end` < '2025-01-30 18: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-30 18:25:22] Production.INFO: count ==3645 [2025-01-30 18:25:23] Production.ERROR: pbx CDR StartTime 2025-01-30 15:25:06 - End Time 2025-01-30 18:25:06 [2025-01-30 18:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365476', 'tblTempUsageDetail_20' ) start [2025-01-30 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365476', 'tblTempUsageDetail_20' ) end [2025-01-30 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365476', 'tblTempVendorCDR_20' ) start [2025-01-30 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365476', 'tblTempVendorCDR_20' ) end [2025-01-30 18:25:23] Production.INFO: ProcessCDR(1,14365476,1,1,2) [2025-01-30 18:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365476', 'tblTempUsageDetail_20' ) start [2025-01-30 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365476', 'tblTempUsageDetail_20' ) end [2025-01-30 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:25:26] Production.INFO: ==20865== Releasing lock... [2025-01-30 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:25:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-30 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:26:05 [end_date_ymd] => 2025-01-30 18:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:26:05' and `end` < '2025-01-30 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-30 18:26:19] Production.INFO: count ==3651 [2025-01-30 18:26:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:26:05 - End Time 2025-01-30 18:26:05 [2025-01-30 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365481', 'tblTempUsageDetail_20' ) start [2025-01-30 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365481', 'tblTempUsageDetail_20' ) end [2025-01-30 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365481', 'tblTempVendorCDR_20' ) start [2025-01-30 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365481', 'tblTempVendorCDR_20' ) end [2025-01-30 18:26:21] Production.INFO: ProcessCDR(1,14365481,1,1,2) [2025-01-30 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365481', 'tblTempUsageDetail_20' ) start [2025-01-30 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365481', 'tblTempUsageDetail_20' ) end [2025-01-30 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:26:26] Production.INFO: ==20936== Releasing lock... [2025-01-30 18:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:26:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-30 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:27:06 [end_date_ymd] => 2025-01-30 18:27:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:27:06' and `end` < '2025-01-30 18: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-30 18:27:19] Production.INFO: count ==3646 [2025-01-30 18:27:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:27:06 - End Time 2025-01-30 18:27:06 [2025-01-30 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365486', 'tblTempUsageDetail_20' ) start [2025-01-30 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365486', 'tblTempUsageDetail_20' ) end [2025-01-30 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365486', 'tblTempVendorCDR_20' ) start [2025-01-30 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365486', 'tblTempVendorCDR_20' ) end [2025-01-30 18:27:21] Production.INFO: ProcessCDR(1,14365486,1,1,2) [2025-01-30 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365486', 'tblTempUsageDetail_20' ) start [2025-01-30 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365486', 'tblTempUsageDetail_20' ) end [2025-01-30 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:27:25] Production.INFO: ==21015== Releasing lock... [2025-01-30 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:27:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-30 18:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:28:06 [end_date_ymd] => 2025-01-30 18:28:06 [RateCDR] => 1 ) [2025-01-30 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-30 15:28:06' and `end` < '2025-01-30 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-30 18:28:20] Production.INFO: count ==3619 [2025-01-30 18:28:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:28:06 - End Time 2025-01-30 18:28:06 [2025-01-30 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365491', 'tblTempUsageDetail_20' ) start [2025-01-30 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365491', 'tblTempUsageDetail_20' ) end [2025-01-30 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365491', 'tblTempVendorCDR_20' ) start [2025-01-30 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365491', 'tblTempVendorCDR_20' ) end [2025-01-30 18:28:21] Production.INFO: ProcessCDR(1,14365491,1,1,2) [2025-01-30 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365491', 'tblTempUsageDetail_20' ) start [2025-01-30 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365491', 'tblTempUsageDetail_20' ) end [2025-01-30 18:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:28:26] Production.INFO: ==21092== Releasing lock... [2025-01-30 18:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:28:26] Production.INFO: 56 MB #Memory Used# [2025-01-30 18:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:29:06 [end_date_ymd] => 2025-01-30 18:29:06 [RateCDR] => 1 ) [2025-01-30 18:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:29:06' and `end` < '2025-01-30 18:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:29:20] Production.INFO: count ==3621 [2025-01-30 18:29:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:29:06 - End Time 2025-01-30 18:29:06 [2025-01-30 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365496', 'tblTempUsageDetail_20' ) start [2025-01-30 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365496', 'tblTempUsageDetail_20' ) end [2025-01-30 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365496', 'tblTempVendorCDR_20' ) start [2025-01-30 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365496', 'tblTempVendorCDR_20' ) end [2025-01-30 18:29:21] Production.INFO: ProcessCDR(1,14365496,1,1,2) [2025-01-30 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365496', 'tblTempUsageDetail_20' ) start [2025-01-30 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365496', 'tblTempUsageDetail_20' ) end [2025-01-30 18:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:29:25] Production.INFO: ==21209== Releasing lock... [2025-01-30 18:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:29:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-30 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:30:06 [end_date_ymd] => 2025-01-30 18:30:06 [RateCDR] => 1 ) [2025-01-30 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-30 15:30:06' and `end` < '2025-01-30 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-30 18:30:20] Production.INFO: count ==3620 [2025-01-30 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:30:06 - End Time 2025-01-30 18:30:06 [2025-01-30 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365501', 'tblTempUsageDetail_20' ) start [2025-01-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365501', 'tblTempUsageDetail_20' ) end [2025-01-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365501', 'tblTempVendorCDR_20' ) start [2025-01-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365501', 'tblTempVendorCDR_20' ) end [2025-01-30 18:30:21] Production.INFO: ProcessCDR(1,14365501,1,1,2) [2025-01-30 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365501', 'tblTempUsageDetail_20' ) start [2025-01-30 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365501', 'tblTempUsageDetail_20' ) end [2025-01-30 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:30:25] Production.INFO: ==21286== Releasing lock... [2025-01-30 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:30:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-30 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:31:05 [end_date_ymd] => 2025-01-30 18:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:31:05' and `end` < '2025-01-30 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-30 18:31:19] Production.INFO: count ==3608 [2025-01-30 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:31:05 - End Time 2025-01-30 18:31:05 [2025-01-30 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365507', 'tblTempUsageDetail_20' ) start [2025-01-30 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365507', 'tblTempUsageDetail_20' ) end [2025-01-30 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365507', 'tblTempVendorCDR_20' ) start [2025-01-30 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365507', 'tblTempVendorCDR_20' ) end [2025-01-30 18:31:20] Production.INFO: ProcessCDR(1,14365507,1,1,2) [2025-01-30 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365507', 'tblTempUsageDetail_20' ) start [2025-01-30 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365507', 'tblTempUsageDetail_20' ) end [2025-01-30 18:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:31:26] Production.INFO: ==21366== Releasing lock... [2025-01-30 18:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:31:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-30 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:32:06 [end_date_ymd] => 2025-01-30 18:32:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:32:06' and `end` < '2025-01-30 18: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-30 18:32:19] Production.INFO: count ==3609 [2025-01-30 18:32:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:32:06 - End Time 2025-01-30 18:32:06 [2025-01-30 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365512', 'tblTempUsageDetail_20' ) start [2025-01-30 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365512', 'tblTempUsageDetail_20' ) end [2025-01-30 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365512', 'tblTempVendorCDR_20' ) start [2025-01-30 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365512', 'tblTempVendorCDR_20' ) end [2025-01-30 18:32:21] Production.INFO: ProcessCDR(1,14365512,1,1,2) [2025-01-30 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365512', 'tblTempUsageDetail_20' ) start [2025-01-30 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365512', 'tblTempUsageDetail_20' ) end [2025-01-30 18:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:32:26] Production.INFO: ==21438== Releasing lock... [2025-01-30 18:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:32:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-30 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:33:06 [end_date_ymd] => 2025-01-30 18:33:06 [RateCDR] => 1 ) [2025-01-30 18:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:33:06' and `end` < '2025-01-30 18:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:33:20] Production.INFO: count ==3595 [2025-01-30 18:33:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:33:06 - End Time 2025-01-30 18:33:06 [2025-01-30 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365517', 'tblTempUsageDetail_20' ) start [2025-01-30 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365517', 'tblTempUsageDetail_20' ) end [2025-01-30 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365517', 'tblTempVendorCDR_20' ) start [2025-01-30 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365517', 'tblTempVendorCDR_20' ) end [2025-01-30 18:33:21] Production.INFO: ProcessCDR(1,14365517,1,1,2) [2025-01-30 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365517', 'tblTempUsageDetail_20' ) start [2025-01-30 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365517', 'tblTempUsageDetail_20' ) end [2025-01-30 18:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:33:27] Production.INFO: ==21513== Releasing lock... [2025-01-30 18:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:33:27] Production.INFO: 54.75 MB #Memory Used# [2025-01-30 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:34:05 [end_date_ymd] => 2025-01-30 18:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:34:05' and `end` < '2025-01-30 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-30 18:34:19] Production.INFO: count ==3579 [2025-01-30 18:34:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:34:05 - End Time 2025-01-30 18:34:05 [2025-01-30 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365522', 'tblTempUsageDetail_20' ) start [2025-01-30 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365522', 'tblTempUsageDetail_20' ) end [2025-01-30 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365522', 'tblTempVendorCDR_20' ) start [2025-01-30 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365522', 'tblTempVendorCDR_20' ) end [2025-01-30 18:34:20] Production.INFO: ProcessCDR(1,14365522,1,1,2) [2025-01-30 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365522', 'tblTempUsageDetail_20' ) start [2025-01-30 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365522', 'tblTempUsageDetail_20' ) end [2025-01-30 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:34:24] Production.INFO: ==21589== Releasing lock... [2025-01-30 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:34:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-30 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:35:06 [end_date_ymd] => 2025-01-30 18:35:06 [RateCDR] => 1 ) [2025-01-30 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:35:06' and `end` < '2025-01-30 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:35:20] Production.INFO: count ==3555 [2025-01-30 18:35:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:35:06 - End Time 2025-01-30 18:35:06 [2025-01-30 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365527', 'tblTempUsageDetail_20' ) start [2025-01-30 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365527', 'tblTempUsageDetail_20' ) end [2025-01-30 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365527', 'tblTempVendorCDR_20' ) start [2025-01-30 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365527', 'tblTempVendorCDR_20' ) end [2025-01-30 18:35:21] Production.INFO: ProcessCDR(1,14365527,1,1,2) [2025-01-30 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365527', 'tblTempUsageDetail_20' ) start [2025-01-30 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365527', 'tblTempUsageDetail_20' ) end [2025-01-30 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:35:25] Production.INFO: ==21669== Releasing lock... [2025-01-30 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:35:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-30 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:36:05 [end_date_ymd] => 2025-01-30 18:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:36:05' and `end` < '2025-01-30 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-30 18:36:19] Production.INFO: count ==3532 [2025-01-30 18:36:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:36:05 - End Time 2025-01-30 18:36:05 [2025-01-30 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365532', 'tblTempUsageDetail_20' ) start [2025-01-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365532', 'tblTempUsageDetail_20' ) end [2025-01-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365532', 'tblTempVendorCDR_20' ) start [2025-01-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365532', 'tblTempVendorCDR_20' ) end [2025-01-30 18:36:20] Production.INFO: ProcessCDR(1,14365532,1,1,2) [2025-01-30 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365532', 'tblTempUsageDetail_20' ) start [2025-01-30 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365532', 'tblTempUsageDetail_20' ) end [2025-01-30 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:36:24] Production.INFO: ==21745== Releasing lock... [2025-01-30 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:36:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-30 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:37:05 [end_date_ymd] => 2025-01-30 18:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:37:05' and `end` < '2025-01-30 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-30 18:37:19] Production.INFO: count ==3532 [2025-01-30 18:37:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:37:05 - End Time 2025-01-30 18:37:05 [2025-01-30 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365537', 'tblTempUsageDetail_20' ) start [2025-01-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365537', 'tblTempUsageDetail_20' ) end [2025-01-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365537', 'tblTempVendorCDR_20' ) start [2025-01-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365537', 'tblTempVendorCDR_20' ) end [2025-01-30 18:37:20] Production.INFO: ProcessCDR(1,14365537,1,1,2) [2025-01-30 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365537', 'tblTempUsageDetail_20' ) start [2025-01-30 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365537', 'tblTempUsageDetail_20' ) end [2025-01-30 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:37:24] Production.INFO: ==21821== Releasing lock... [2025-01-30 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:37:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-30 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:38:05 [end_date_ymd] => 2025-01-30 18:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:38:05' and `end` < '2025-01-30 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-30 18:38:19] Production.INFO: count ==3528 [2025-01-30 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:38:05 - End Time 2025-01-30 18:38:05 [2025-01-30 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365542', 'tblTempUsageDetail_20' ) start [2025-01-30 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365542', 'tblTempUsageDetail_20' ) end [2025-01-30 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365542', 'tblTempVendorCDR_20' ) start [2025-01-30 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365542', 'tblTempVendorCDR_20' ) end [2025-01-30 18:38:21] Production.INFO: ProcessCDR(1,14365542,1,1,2) [2025-01-30 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365542', 'tblTempUsageDetail_20' ) start [2025-01-30 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365542', 'tblTempUsageDetail_20' ) end [2025-01-30 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:38:26] Production.INFO: ==21896== Releasing lock... [2025-01-30 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:38:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-30 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:39:05 [end_date_ymd] => 2025-01-30 18:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:39:05' and `end` < '2025-01-30 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-30 18:39:22] Production.INFO: count ==3518 [2025-01-30 18:39:23] Production.ERROR: pbx CDR StartTime 2025-01-30 15:39:05 - End Time 2025-01-30 18:39:05 [2025-01-30 18:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365547', 'tblTempUsageDetail_20' ) start [2025-01-30 18:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365547', 'tblTempUsageDetail_20' ) end [2025-01-30 18:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365547', 'tblTempVendorCDR_20' ) start [2025-01-30 18:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365547', 'tblTempVendorCDR_20' ) end [2025-01-30 18:39:23] Production.INFO: ProcessCDR(1,14365547,1,1,2) [2025-01-30 18:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365547', 'tblTempUsageDetail_20' ) start [2025-01-30 18:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365547', 'tblTempUsageDetail_20' ) end [2025-01-30 18:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:39:27] Production.INFO: ==21965== Releasing lock... [2025-01-30 18:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:39:27] Production.INFO: 55.25 MB #Memory Used# [2025-01-30 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:40:06 [end_date_ymd] => 2025-01-30 18:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 15:40:06' and `end` < '2025-01-30 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-30 18:40:21] Production.INFO: count ==3491 [2025-01-30 18:40:22] Production.ERROR: pbx CDR StartTime 2025-01-30 15:40:06 - End Time 2025-01-30 18:40:06 [2025-01-30 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365552', 'tblTempUsageDetail_20' ) start [2025-01-30 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365552', 'tblTempUsageDetail_20' ) end [2025-01-30 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365552', 'tblTempVendorCDR_20' ) start [2025-01-30 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365552', 'tblTempVendorCDR_20' ) end [2025-01-30 18:40:22] Production.INFO: ProcessCDR(1,14365552,1,1,2) [2025-01-30 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365552', 'tblTempUsageDetail_20' ) start [2025-01-30 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365552', 'tblTempUsageDetail_20' ) end [2025-01-30 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:40:27] Production.INFO: ==22043== Releasing lock... [2025-01-30 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:40:27] Production.INFO: 54 MB #Memory Used# [2025-01-30 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:41:05 [end_date_ymd] => 2025-01-30 18:41:05 [RateCDR] => 1 ) [2025-01-30 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:41:05' and `end` < '2025-01-30 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:41:18] Production.INFO: count ==3414 [2025-01-30 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 15:41:05 - End Time 2025-01-30 18:41:05 [2025-01-30 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365558', 'tblTempUsageDetail_20' ) start [2025-01-30 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365558', 'tblTempUsageDetail_20' ) end [2025-01-30 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365558', 'tblTempVendorCDR_20' ) start [2025-01-30 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365558', 'tblTempVendorCDR_20' ) end [2025-01-30 18:41:20] Production.INFO: ProcessCDR(1,14365558,1,1,2) [2025-01-30 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365558', 'tblTempUsageDetail_20' ) start [2025-01-30 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365558', 'tblTempUsageDetail_20' ) end [2025-01-30 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:41:23] Production.INFO: ==22120== Releasing lock... [2025-01-30 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:41:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:42:05 [end_date_ymd] => 2025-01-30 18:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:42:05' and `end` < '2025-01-30 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-30 18:42:19] Production.INFO: count ==3399 [2025-01-30 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:42:05 - End Time 2025-01-30 18:42:05 [2025-01-30 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365563', 'tblTempUsageDetail_20' ) start [2025-01-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365563', 'tblTempUsageDetail_20' ) end [2025-01-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365563', 'tblTempVendorCDR_20' ) start [2025-01-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365563', 'tblTempVendorCDR_20' ) end [2025-01-30 18:42:20] Production.INFO: ProcessCDR(1,14365563,1,1,2) [2025-01-30 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365563', 'tblTempUsageDetail_20' ) start [2025-01-30 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365563', 'tblTempUsageDetail_20' ) end [2025-01-30 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:42:25] Production.INFO: ==22196== Releasing lock... [2025-01-30 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:42:25] Production.INFO: 53.25 MB #Memory Used# [2025-01-30 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:43:05 [end_date_ymd] => 2025-01-30 18:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:43:05' and `end` < '2025-01-30 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-30 18:43:18] Production.INFO: count ==3393 [2025-01-30 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-30 15:43:05 - End Time 2025-01-30 18:43:05 [2025-01-30 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365568', 'tblTempUsageDetail_20' ) start [2025-01-30 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365568', 'tblTempUsageDetail_20' ) end [2025-01-30 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365568', 'tblTempVendorCDR_20' ) start [2025-01-30 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365568', 'tblTempVendorCDR_20' ) end [2025-01-30 18:43:20] Production.INFO: ProcessCDR(1,14365568,1,1,2) [2025-01-30 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365568', 'tblTempUsageDetail_20' ) start [2025-01-30 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365568', 'tblTempUsageDetail_20' ) end [2025-01-30 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:43:23] Production.INFO: ==22270== Releasing lock... [2025-01-30 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:43:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:44:05 [end_date_ymd] => 2025-01-30 18:44:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:44:05' and `end` < '2025-01-30 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-30 18:44:19] Production.INFO: count ==3391 [2025-01-30 18:44:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:44:05 - End Time 2025-01-30 18:44:05 [2025-01-30 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365573', 'tblTempUsageDetail_20' ) start [2025-01-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365573', 'tblTempUsageDetail_20' ) end [2025-01-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365573', 'tblTempVendorCDR_20' ) start [2025-01-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365573', 'tblTempVendorCDR_20' ) end [2025-01-30 18:44:20] Production.INFO: ProcessCDR(1,14365573,1,1,2) [2025-01-30 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365573', 'tblTempUsageDetail_20' ) start [2025-01-30 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365573', 'tblTempUsageDetail_20' ) end [2025-01-30 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:44:25] Production.INFO: ==22384== Releasing lock... [2025-01-30 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:44:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-30 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:45:05 [end_date_ymd] => 2025-01-30 18:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:45:05' and `end` < '2025-01-30 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-30 18:45:19] Production.INFO: count ==3378 [2025-01-30 18:45:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:45:05 - End Time 2025-01-30 18:45:05 [2025-01-30 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365578', 'tblTempUsageDetail_20' ) start [2025-01-30 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365578', 'tblTempUsageDetail_20' ) end [2025-01-30 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365578', 'tblTempVendorCDR_20' ) start [2025-01-30 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365578', 'tblTempVendorCDR_20' ) end [2025-01-30 18:45:21] Production.INFO: ProcessCDR(1,14365578,1,1,2) [2025-01-30 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365578', 'tblTempUsageDetail_20' ) start [2025-01-30 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365578', 'tblTempUsageDetail_20' ) end [2025-01-30 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:45:24] Production.INFO: ==22457== Releasing lock... [2025-01-30 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:45:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-30 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:46:06 [end_date_ymd] => 2025-01-30 18:46:06 [RateCDR] => 1 ) [2025-01-30 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:46:06' and `end` < '2025-01-30 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:46:20] Production.INFO: count ==3350 [2025-01-30 18:46:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:46:06 - End Time 2025-01-30 18:46:06 [2025-01-30 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365583', 'tblTempUsageDetail_20' ) start [2025-01-30 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365583', 'tblTempUsageDetail_20' ) end [2025-01-30 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365583', 'tblTempVendorCDR_20' ) start [2025-01-30 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365583', 'tblTempVendorCDR_20' ) end [2025-01-30 18:46:21] Production.INFO: ProcessCDR(1,14365583,1,1,2) [2025-01-30 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365583', 'tblTempUsageDetail_20' ) start [2025-01-30 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365583', 'tblTempUsageDetail_20' ) end [2025-01-30 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:46:25] Production.INFO: ==22531== Releasing lock... [2025-01-30 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:46:25] Production.INFO: 53 MB #Memory Used# [2025-01-30 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:47:05 [end_date_ymd] => 2025-01-30 18:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:47:05' and `end` < '2025-01-30 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-30 18:47:19] Production.INFO: count ==3338 [2025-01-30 18:47:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:47:05 - End Time 2025-01-30 18:47:05 [2025-01-30 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365588', 'tblTempUsageDetail_20' ) start [2025-01-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365588', 'tblTempUsageDetail_20' ) end [2025-01-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365588', 'tblTempVendorCDR_20' ) start [2025-01-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365588', 'tblTempVendorCDR_20' ) end [2025-01-30 18:47:20] Production.INFO: ProcessCDR(1,14365588,1,1,2) [2025-01-30 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365588', 'tblTempUsageDetail_20' ) start [2025-01-30 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365588', 'tblTempUsageDetail_20' ) end [2025-01-30 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:47:23] Production.INFO: ==22609== Releasing lock... [2025-01-30 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:47:23] Production.INFO: 53 MB #Memory Used# [2025-01-30 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:48:05 [end_date_ymd] => 2025-01-30 18:48:05 [RateCDR] => 1 ) [2025-01-30 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:48:05' and `end` < '2025-01-30 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:48:18] Production.INFO: count ==3320 [2025-01-30 18:48:19] Production.ERROR: pbx CDR StartTime 2025-01-30 15:48:05 - End Time 2025-01-30 18:48:05 [2025-01-30 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365593', 'tblTempUsageDetail_20' ) start [2025-01-30 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365593', 'tblTempUsageDetail_20' ) end [2025-01-30 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365593', 'tblTempVendorCDR_20' ) start [2025-01-30 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365593', 'tblTempVendorCDR_20' ) end [2025-01-30 18:48:20] Production.INFO: ProcessCDR(1,14365593,1,1,2) [2025-01-30 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365593', 'tblTempUsageDetail_20' ) start [2025-01-30 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365593', 'tblTempUsageDetail_20' ) end [2025-01-30 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:48:23] Production.INFO: ==22683== Releasing lock... [2025-01-30 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:48:23] Production.INFO: 53 MB #Memory Used# [2025-01-30 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:49:06 [end_date_ymd] => 2025-01-30 18:49:06 [RateCDR] => 1 ) [2025-01-30 18: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-30 15:49:06' and `end` < '2025-01-30 18: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-30 18:49:19] Production.INFO: count ==3267 [2025-01-30 18:49:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:49:06 - End Time 2025-01-30 18:49:06 [2025-01-30 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365598', 'tblTempUsageDetail_20' ) start [2025-01-30 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365598', 'tblTempUsageDetail_20' ) end [2025-01-30 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365598', 'tblTempVendorCDR_20' ) start [2025-01-30 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365598', 'tblTempVendorCDR_20' ) end [2025-01-30 18:49:20] Production.INFO: ProcessCDR(1,14365598,1,1,2) [2025-01-30 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365598', 'tblTempUsageDetail_20' ) start [2025-01-30 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365598', 'tblTempUsageDetail_20' ) end [2025-01-30 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:49:25] Production.INFO: ==22758== Releasing lock... [2025-01-30 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:49:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-30 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:50:07 [end_date_ymd] => 2025-01-30 18:50:07 [RateCDR] => 1 ) [2025-01-30 18:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:50:07' and `end` < '2025-01-30 18:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:50:20] Production.INFO: count ==3246 [2025-01-30 18:50:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:50:07 - End Time 2025-01-30 18:50:07 [2025-01-30 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365604', 'tblTempUsageDetail_20' ) start [2025-01-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365604', 'tblTempUsageDetail_20' ) end [2025-01-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365604', 'tblTempVendorCDR_20' ) start [2025-01-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365604', 'tblTempVendorCDR_20' ) end [2025-01-30 18:50:21] Production.INFO: ProcessCDR(1,14365604,1,1,2) [2025-01-30 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365604', 'tblTempUsageDetail_20' ) start [2025-01-30 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365604', 'tblTempUsageDetail_20' ) end [2025-01-30 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:50:26] Production.INFO: ==22832== Releasing lock... [2025-01-30 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:50:26] Production.INFO: 52.5 MB #Memory Used# [2025-01-30 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:51:05 [end_date_ymd] => 2025-01-30 18:51:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:51:05' and `end` < '2025-01-30 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-30 18:51:18] Production.INFO: count ==3170 [2025-01-30 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-30 15:51:05 - End Time 2025-01-30 18:51:05 [2025-01-30 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365609', 'tblTempUsageDetail_20' ) start [2025-01-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365609', 'tblTempUsageDetail_20' ) end [2025-01-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365609', 'tblTempVendorCDR_20' ) start [2025-01-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365609', 'tblTempVendorCDR_20' ) end [2025-01-30 18:51:19] Production.INFO: ProcessCDR(1,14365609,1,1,2) [2025-01-30 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365609', 'tblTempUsageDetail_20' ) start [2025-01-30 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365609', 'tblTempUsageDetail_20' ) end [2025-01-30 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:51:23] Production.INFO: ==22905== Releasing lock... [2025-01-30 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:51:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-30 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:52:06 [end_date_ymd] => 2025-01-30 18:52:06 [RateCDR] => 1 ) [2025-01-30 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:52:06' and `end` < '2025-01-30 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:52:19] Production.INFO: count ==3161 [2025-01-30 18:52:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:52:06 - End Time 2025-01-30 18:52:06 [2025-01-30 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365614', 'tblTempUsageDetail_20' ) start [2025-01-30 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365614', 'tblTempUsageDetail_20' ) end [2025-01-30 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365614', 'tblTempVendorCDR_20' ) start [2025-01-30 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365614', 'tblTempVendorCDR_20' ) end [2025-01-30 18:52:21] Production.INFO: ProcessCDR(1,14365614,1,1,2) [2025-01-30 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365614', 'tblTempUsageDetail_20' ) start [2025-01-30 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365614', 'tblTempUsageDetail_20' ) end [2025-01-30 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:52:24] Production.INFO: ==22976== Releasing lock... [2025-01-30 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:52:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-30 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:53:05 [end_date_ymd] => 2025-01-30 18:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:53:05' and `end` < '2025-01-30 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-30 18:53:19] Production.INFO: count ==3157 [2025-01-30 18:53:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:53:05 - End Time 2025-01-30 18:53:05 [2025-01-30 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365619', 'tblTempUsageDetail_20' ) start [2025-01-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365619', 'tblTempUsageDetail_20' ) end [2025-01-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365619', 'tblTempVendorCDR_20' ) start [2025-01-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365619', 'tblTempVendorCDR_20' ) end [2025-01-30 18:53:20] Production.INFO: ProcessCDR(1,14365619,1,1,2) [2025-01-30 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365619', 'tblTempUsageDetail_20' ) start [2025-01-30 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365619', 'tblTempUsageDetail_20' ) end [2025-01-30 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:53:25] Production.INFO: ==23053== Releasing lock... [2025-01-30 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:53:25] Production.INFO: 52 MB #Memory Used# [2025-01-30 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:54:06 [end_date_ymd] => 2025-01-30 18:54:06 [RateCDR] => 1 ) [2025-01-30 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-30 15:54:06' and `end` < '2025-01-30 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-30 18:54:19] Production.INFO: count ==3150 [2025-01-30 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:54:06 - End Time 2025-01-30 18:54:06 [2025-01-30 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365624', 'tblTempUsageDetail_20' ) start [2025-01-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365624', 'tblTempUsageDetail_20' ) end [2025-01-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365624', 'tblTempVendorCDR_20' ) start [2025-01-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365624', 'tblTempVendorCDR_20' ) end [2025-01-30 18:54:20] Production.INFO: ProcessCDR(1,14365624,1,1,2) [2025-01-30 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365624', 'tblTempUsageDetail_20' ) start [2025-01-30 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365624', 'tblTempUsageDetail_20' ) end [2025-01-30 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:54:25] Production.INFO: ==23125== Releasing lock... [2025-01-30 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:54:25] Production.INFO: 52 MB #Memory Used# [2025-01-30 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:55:05 [end_date_ymd] => 2025-01-30 18:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:55:05' and `end` < '2025-01-30 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-30 18:55:18] Production.INFO: count ==3143 [2025-01-30 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-30 15:55:05 - End Time 2025-01-30 18:55:05 [2025-01-30 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365629', 'tblTempUsageDetail_20' ) start [2025-01-30 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365629', 'tblTempUsageDetail_20' ) end [2025-01-30 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365629', 'tblTempVendorCDR_20' ) start [2025-01-30 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365629', 'tblTempVendorCDR_20' ) end [2025-01-30 18:55:20] Production.INFO: ProcessCDR(1,14365629,1,1,2) [2025-01-30 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365629', 'tblTempUsageDetail_20' ) start [2025-01-30 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365629', 'tblTempUsageDetail_20' ) end [2025-01-30 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:55:23] Production.INFO: ==23201== Releasing lock... [2025-01-30 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:55:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-30 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:56:06 [end_date_ymd] => 2025-01-30 18:56:06 [RateCDR] => 1 ) [2025-01-30 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:56:06' and `end` < '2025-01-30 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:56:19] Production.INFO: count ==3137 [2025-01-30 18:56:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:56:06 - End Time 2025-01-30 18:56:06 [2025-01-30 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365634', 'tblTempUsageDetail_20' ) start [2025-01-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365634', 'tblTempUsageDetail_20' ) end [2025-01-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365634', 'tblTempVendorCDR_20' ) start [2025-01-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365634', 'tblTempVendorCDR_20' ) end [2025-01-30 18:56:21] Production.INFO: ProcessCDR(1,14365634,1,1,2) [2025-01-30 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365634', 'tblTempUsageDetail_20' ) start [2025-01-30 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365634', 'tblTempUsageDetail_20' ) end [2025-01-30 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:56:26] Production.INFO: ==23274== Releasing lock... [2025-01-30 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:56:26] Production.INFO: 51.5 MB #Memory Used# [2025-01-30 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:57:06 [end_date_ymd] => 2025-01-30 18:57:06 [RateCDR] => 1 ) [2025-01-30 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:57:06' and `end` < '2025-01-30 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:57:19] Production.INFO: count ==3113 [2025-01-30 18:57:21] Production.ERROR: pbx CDR StartTime 2025-01-30 15:57:06 - End Time 2025-01-30 18:57:06 [2025-01-30 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365639', 'tblTempUsageDetail_20' ) start [2025-01-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365639', 'tblTempUsageDetail_20' ) end [2025-01-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365639', 'tblTempVendorCDR_20' ) start [2025-01-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365639', 'tblTempVendorCDR_20' ) end [2025-01-30 18:57:21] Production.INFO: ProcessCDR(1,14365639,1,1,2) [2025-01-30 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365639', 'tblTempUsageDetail_20' ) start [2025-01-30 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365639', 'tblTempUsageDetail_20' ) end [2025-01-30 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:57:25] Production.INFO: ==23348== Releasing lock... [2025-01-30 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:57:25] Production.INFO: 51.25 MB #Memory Used# [2025-01-30 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:58:06 [end_date_ymd] => 2025-01-30 18:58:06 [RateCDR] => 1 ) [2025-01-30 18:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 15:58:06' and `end` < '2025-01-30 18:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 18:58:19] Production.INFO: count ==3087 [2025-01-30 18:58:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:58:06 - End Time 2025-01-30 18:58:06 [2025-01-30 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365644', 'tblTempUsageDetail_20' ) start [2025-01-30 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365644', 'tblTempUsageDetail_20' ) end [2025-01-30 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365644', 'tblTempVendorCDR_20' ) start [2025-01-30 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365644', 'tblTempVendorCDR_20' ) end [2025-01-30 18:58:20] Production.INFO: ProcessCDR(1,14365644,1,1,2) [2025-01-30 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365644', 'tblTempUsageDetail_20' ) start [2025-01-30 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365644', 'tblTempUsageDetail_20' ) end [2025-01-30 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:58:25] Production.INFO: ==23419== Releasing lock... [2025-01-30 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:58:25] Production.INFO: 51 MB #Memory Used# [2025-01-30 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 15:59:05 [end_date_ymd] => 2025-01-30 18:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 15:59:05' and `end` < '2025-01-30 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-30 18:59:19] Production.INFO: count ==3080 [2025-01-30 18:59:20] Production.ERROR: pbx CDR StartTime 2025-01-30 15:59:05 - End Time 2025-01-30 18:59:05 [2025-01-30 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365649', 'tblTempUsageDetail_20' ) start [2025-01-30 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365649', 'tblTempUsageDetail_20' ) end [2025-01-30 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365649', 'tblTempVendorCDR_20' ) start [2025-01-30 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365649', 'tblTempVendorCDR_20' ) end [2025-01-30 18:59:20] Production.INFO: ProcessCDR(1,14365649,1,1,2) [2025-01-30 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365649', 'tblTempUsageDetail_20' ) start [2025-01-30 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365649', 'tblTempUsageDetail_20' ) end [2025-01-30 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 18:59:23] Production.INFO: ==23491== Releasing lock... [2025-01-30 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 18:59:23] Production.INFO: 51 MB #Memory Used# [2025-01-30 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:00:06 [end_date_ymd] => 2025-01-30 19:00:06 [RateCDR] => 1 ) [2025-01-30 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:00:06' and `end` < '2025-01-30 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:00:19] Production.INFO: count ==3070 [2025-01-30 19:00:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:00:06 - End Time 2025-01-30 19:00:06 [2025-01-30 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365655', 'tblTempUsageDetail_20' ) start [2025-01-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365655', 'tblTempUsageDetail_20' ) end [2025-01-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365655', 'tblTempVendorCDR_20' ) start [2025-01-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365655', 'tblTempVendorCDR_20' ) end [2025-01-30 19:00:21] Production.INFO: ProcessCDR(1,14365655,1,1,2) [2025-01-30 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365655', 'tblTempUsageDetail_20' ) start [2025-01-30 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365655', 'tblTempUsageDetail_20' ) end [2025-01-30 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:00:24] Production.INFO: ==23604== Releasing lock... [2025-01-30 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:00:24] Production.INFO: 51 MB #Memory Used# [2025-01-30 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:01:06 [end_date_ymd] => 2025-01-30 19:01:06 [RateCDR] => 1 ) [2025-01-30 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:01:06' and `end` < '2025-01-30 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:01:19] Production.INFO: count ==3052 [2025-01-30 19:01:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:01:06 - End Time 2025-01-30 19:01:06 [2025-01-30 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365660', 'tblTempUsageDetail_20' ) start [2025-01-30 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365660', 'tblTempUsageDetail_20' ) end [2025-01-30 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365660', 'tblTempVendorCDR_20' ) start [2025-01-30 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365660', 'tblTempVendorCDR_20' ) end [2025-01-30 19:01:20] Production.INFO: ProcessCDR(1,14365660,1,1,2) [2025-01-30 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365660', 'tblTempUsageDetail_20' ) start [2025-01-30 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365660', 'tblTempUsageDetail_20' ) end [2025-01-30 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:01:24] Production.INFO: ==23693== Releasing lock... [2025-01-30 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:01:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-30 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:02:06 [end_date_ymd] => 2025-01-30 19:02:06 [RateCDR] => 1 ) [2025-01-30 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:02:06' and `end` < '2025-01-30 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:02:19] Production.INFO: count ==3045 [2025-01-30 19:02:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:02:06 - End Time 2025-01-30 19:02:06 [2025-01-30 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365665', 'tblTempUsageDetail_20' ) start [2025-01-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365665', 'tblTempUsageDetail_20' ) end [2025-01-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365665', 'tblTempVendorCDR_20' ) start [2025-01-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365665', 'tblTempVendorCDR_20' ) end [2025-01-30 19:02:20] Production.INFO: ProcessCDR(1,14365665,1,1,2) [2025-01-30 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365665', 'tblTempUsageDetail_20' ) start [2025-01-30 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365665', 'tblTempUsageDetail_20' ) end [2025-01-30 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:02:24] Production.INFO: ==23846== Releasing lock... [2025-01-30 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:02:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-30 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:03:06 [end_date_ymd] => 2025-01-30 19:03:06 [RateCDR] => 1 ) [2025-01-30 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:03:06' and `end` < '2025-01-30 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:03:19] Production.INFO: count ==3030 [2025-01-30 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:03:06 - End Time 2025-01-30 19:03:06 [2025-01-30 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365670', 'tblTempUsageDetail_20' ) start [2025-01-30 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365670', 'tblTempUsageDetail_20' ) end [2025-01-30 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365670', 'tblTempVendorCDR_20' ) start [2025-01-30 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365670', 'tblTempVendorCDR_20' ) end [2025-01-30 19:03:20] Production.INFO: ProcessCDR(1,14365670,1,1,2) [2025-01-30 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365670', 'tblTempUsageDetail_20' ) start [2025-01-30 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365670', 'tblTempUsageDetail_20' ) end [2025-01-30 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:03:24] Production.INFO: ==23917== Releasing lock... [2025-01-30 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:03:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-30 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:04:06 [end_date_ymd] => 2025-01-30 19:04:06 [RateCDR] => 1 ) [2025-01-30 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:04:06' and `end` < '2025-01-30 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:04:19] Production.INFO: count ==3021 [2025-01-30 19:04:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:04:06 - End Time 2025-01-30 19:04:06 [2025-01-30 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365675', 'tblTempUsageDetail_20' ) start [2025-01-30 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365675', 'tblTempUsageDetail_20' ) end [2025-01-30 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365675', 'tblTempVendorCDR_20' ) start [2025-01-30 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365675', 'tblTempVendorCDR_20' ) end [2025-01-30 19:04:20] Production.INFO: ProcessCDR(1,14365675,1,1,2) [2025-01-30 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365675', 'tblTempUsageDetail_20' ) start [2025-01-30 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365675', 'tblTempUsageDetail_20' ) end [2025-01-30 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:04:23] Production.INFO: ==23995== Releasing lock... [2025-01-30 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:04:23] Production.INFO: 51 MB #Memory Used# [2025-01-30 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:05:05 [end_date_ymd] => 2025-01-30 19:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:05:05' and `end` < '2025-01-30 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-30 19:05:19] Production.INFO: count ==3009 [2025-01-30 19:05:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:05:05 - End Time 2025-01-30 19:05:05 [2025-01-30 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365680', 'tblTempUsageDetail_20' ) start [2025-01-30 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365680', 'tblTempUsageDetail_20' ) end [2025-01-30 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365680', 'tblTempVendorCDR_20' ) start [2025-01-30 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365680', 'tblTempVendorCDR_20' ) end [2025-01-30 19:05:20] Production.INFO: ProcessCDR(1,14365680,1,1,2) [2025-01-30 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365680', 'tblTempUsageDetail_20' ) start [2025-01-30 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365680', 'tblTempUsageDetail_20' ) end [2025-01-30 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:05:23] Production.INFO: ==24144== Releasing lock... [2025-01-30 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:05:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-30 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:06:05 [end_date_ymd] => 2025-01-30 19:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:06:05' and `end` < '2025-01-30 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-30 19:06:18] Production.INFO: count ==3002 [2025-01-30 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:06:05 - End Time 2025-01-30 19:06:05 [2025-01-30 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365685', 'tblTempUsageDetail_20' ) start [2025-01-30 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365685', 'tblTempUsageDetail_20' ) end [2025-01-30 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365685', 'tblTempVendorCDR_20' ) start [2025-01-30 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365685', 'tblTempVendorCDR_20' ) end [2025-01-30 19:06:19] Production.INFO: ProcessCDR(1,14365685,1,1,2) [2025-01-30 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365685', 'tblTempUsageDetail_20' ) start [2025-01-30 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365685', 'tblTempUsageDetail_20' ) end [2025-01-30 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:06:24] Production.INFO: ==24214== Releasing lock... [2025-01-30 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:06:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-30 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:07:05 [end_date_ymd] => 2025-01-30 19:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:07:05' and `end` < '2025-01-30 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-30 19:07:19] Production.INFO: count ==2994 [2025-01-30 19:07:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:07:05 - End Time 2025-01-30 19:07:05 [2025-01-30 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365690', 'tblTempUsageDetail_20' ) start [2025-01-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365690', 'tblTempUsageDetail_20' ) end [2025-01-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365690', 'tblTempVendorCDR_20' ) start [2025-01-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365690', 'tblTempVendorCDR_20' ) end [2025-01-30 19:07:20] Production.INFO: ProcessCDR(1,14365690,1,1,2) [2025-01-30 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365690', 'tblTempUsageDetail_20' ) start [2025-01-30 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365690', 'tblTempUsageDetail_20' ) end [2025-01-30 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:07:25] Production.INFO: ==24286== Releasing lock... [2025-01-30 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:07:25] Production.INFO: 50.5 MB #Memory Used# [2025-01-30 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:08:06 [end_date_ymd] => 2025-01-30 19:08:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:08:06' and `end` < '2025-01-30 19: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-30 19:08:19] Production.INFO: count ==2994 [2025-01-30 19:08:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:08:06 - End Time 2025-01-30 19:08:06 [2025-01-30 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365695', 'tblTempUsageDetail_20' ) start [2025-01-30 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365695', 'tblTempUsageDetail_20' ) end [2025-01-30 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365695', 'tblTempVendorCDR_20' ) start [2025-01-30 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365695', 'tblTempVendorCDR_20' ) end [2025-01-30 19:08:20] Production.INFO: ProcessCDR(1,14365695,1,1,2) [2025-01-30 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365695', 'tblTempUsageDetail_20' ) start [2025-01-30 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365695', 'tblTempUsageDetail_20' ) end [2025-01-30 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:08:23] Production.INFO: ==24397== Releasing lock... [2025-01-30 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:08:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-30 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:09:06 [end_date_ymd] => 2025-01-30 19:09:06 [RateCDR] => 1 ) [2025-01-30 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:09:06' and `end` < '2025-01-30 19:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:09:20] Production.INFO: count ==2993 [2025-01-30 19:09:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:09:06 - End Time 2025-01-30 19:09:06 [2025-01-30 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365700', 'tblTempUsageDetail_20' ) start [2025-01-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365700', 'tblTempUsageDetail_20' ) end [2025-01-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365700', 'tblTempVendorCDR_20' ) start [2025-01-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365700', 'tblTempVendorCDR_20' ) end [2025-01-30 19:09:21] Production.INFO: ProcessCDR(1,14365700,1,1,2) [2025-01-30 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365700', 'tblTempUsageDetail_20' ) start [2025-01-30 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365700', 'tblTempUsageDetail_20' ) end [2025-01-30 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:09:24] Production.INFO: ==24505== Releasing lock... [2025-01-30 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:09:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-30 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:10:06 [end_date_ymd] => 2025-01-30 19:10:06 [RateCDR] => 1 ) [2025-01-30 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:10:06' and `end` < '2025-01-30 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:10:19] Production.INFO: count ==2990 [2025-01-30 19:10:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:10:06 - End Time 2025-01-30 19:10:06 [2025-01-30 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365704', 'tblTempUsageDetail_20' ) start [2025-01-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365704', 'tblTempUsageDetail_20' ) end [2025-01-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365704', 'tblTempVendorCDR_20' ) start [2025-01-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365704', 'tblTempVendorCDR_20' ) end [2025-01-30 19:10:20] Production.INFO: ProcessCDR(1,14365704,1,1,2) [2025-01-30 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365704', 'tblTempUsageDetail_20' ) start [2025-01-30 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365704', 'tblTempUsageDetail_20' ) end [2025-01-30 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:10:26] Production.INFO: ==24577== Releasing lock... [2025-01-30 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:10:26] Production.INFO: 50.5 MB #Memory Used# [2025-01-30 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:11:06 [end_date_ymd] => 2025-01-30 19:11:06 [RateCDR] => 1 ) [2025-01-30 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:11:06' and `end` < '2025-01-30 19:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:11:20] Production.INFO: count ==2915 [2025-01-30 19:11:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:11:06 - End Time 2025-01-30 19:11:06 [2025-01-30 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365711', 'tblTempUsageDetail_20' ) start [2025-01-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365711', 'tblTempUsageDetail_20' ) end [2025-01-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365711', 'tblTempVendorCDR_20' ) start [2025-01-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365711', 'tblTempVendorCDR_20' ) end [2025-01-30 19:11:21] Production.INFO: ProcessCDR(1,14365711,1,1,2) [2025-01-30 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365711', 'tblTempUsageDetail_20' ) start [2025-01-30 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365711', 'tblTempUsageDetail_20' ) end [2025-01-30 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:11:25] Production.INFO: ==24650== Releasing lock... [2025-01-30 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:11:25] Production.INFO: 49.75 MB #Memory Used# [2025-01-30 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:12:06 [end_date_ymd] => 2025-01-30 19:12:06 [RateCDR] => 1 ) [2025-01-30 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:12:06' and `end` < '2025-01-30 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:12:19] Production.INFO: count ==2905 [2025-01-30 19:12:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:12:06 - End Time 2025-01-30 19:12:06 [2025-01-30 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365716', 'tblTempUsageDetail_20' ) start [2025-01-30 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365716', 'tblTempUsageDetail_20' ) end [2025-01-30 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365716', 'tblTempVendorCDR_20' ) start [2025-01-30 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365716', 'tblTempVendorCDR_20' ) end [2025-01-30 19:12:20] Production.INFO: ProcessCDR(1,14365716,1,1,2) [2025-01-30 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365716', 'tblTempUsageDetail_20' ) start [2025-01-30 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365716', 'tblTempUsageDetail_20' ) end [2025-01-30 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:12:25] Production.INFO: ==24799== Releasing lock... [2025-01-30 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:12:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:13:06 [end_date_ymd] => 2025-01-30 19:13:06 [RateCDR] => 1 ) [2025-01-30 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:13:06' and `end` < '2025-01-30 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:13:19] Production.INFO: count ==2901 [2025-01-30 19:13:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:13:06 - End Time 2025-01-30 19:13:06 [2025-01-30 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365721', 'tblTempUsageDetail_20' ) start [2025-01-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365721', 'tblTempUsageDetail_20' ) end [2025-01-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365721', 'tblTempVendorCDR_20' ) start [2025-01-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365721', 'tblTempVendorCDR_20' ) end [2025-01-30 19:13:20] Production.INFO: ProcessCDR(1,14365721,1,1,2) [2025-01-30 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365721', 'tblTempUsageDetail_20' ) start [2025-01-30 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365721', 'tblTempUsageDetail_20' ) end [2025-01-30 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:13:25] Production.INFO: ==24872== Releasing lock... [2025-01-30 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:13:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:14:05 [end_date_ymd] => 2025-01-30 19:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:14:05' and `end` < '2025-01-30 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-30 19:14:18] Production.INFO: count ==2889 [2025-01-30 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:14:05 - End Time 2025-01-30 19:14:05 [2025-01-30 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365726', 'tblTempUsageDetail_20' ) start [2025-01-30 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365726', 'tblTempUsageDetail_20' ) end [2025-01-30 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365726', 'tblTempVendorCDR_20' ) start [2025-01-30 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365726', 'tblTempVendorCDR_20' ) end [2025-01-30 19:14:19] Production.INFO: ProcessCDR(1,14365726,1,1,2) [2025-01-30 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365726', 'tblTempUsageDetail_20' ) start [2025-01-30 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365726', 'tblTempUsageDetail_20' ) end [2025-01-30 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:14:24] Production.INFO: ==24947== Releasing lock... [2025-01-30 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:14:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:15:06 [end_date_ymd] => 2025-01-30 19:15:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:15:06' and `end` < '2025-01-30 19: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-30 19:15:19] Production.INFO: count ==2882 [2025-01-30 19:15:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:15:06 - End Time 2025-01-30 19:15:06 [2025-01-30 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365731', 'tblTempUsageDetail_20' ) start [2025-01-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365731', 'tblTempUsageDetail_20' ) end [2025-01-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365731', 'tblTempVendorCDR_20' ) start [2025-01-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365731', 'tblTempVendorCDR_20' ) end [2025-01-30 19:15:20] Production.INFO: ProcessCDR(1,14365731,1,1,2) [2025-01-30 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365731', 'tblTempUsageDetail_20' ) start [2025-01-30 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365731', 'tblTempUsageDetail_20' ) end [2025-01-30 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:15:25] Production.INFO: ==25135== Releasing lock... [2025-01-30 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:15:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:16:05 [end_date_ymd] => 2025-01-30 19:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:16:05' and `end` < '2025-01-30 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-30 19:16:20] Production.INFO: count ==2879 [2025-01-30 19:16:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:16:05 - End Time 2025-01-30 19:16:05 [2025-01-30 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365736', 'tblTempUsageDetail_20' ) start [2025-01-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365736', 'tblTempUsageDetail_20' ) end [2025-01-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365736', 'tblTempVendorCDR_20' ) start [2025-01-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365736', 'tblTempVendorCDR_20' ) end [2025-01-30 19:16:21] Production.INFO: ProcessCDR(1,14365736,1,1,2) [2025-01-30 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365736', 'tblTempUsageDetail_20' ) start [2025-01-30 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365736', 'tblTempUsageDetail_20' ) end [2025-01-30 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:16:24] Production.INFO: ==25206== Releasing lock... [2025-01-30 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:16:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:17:06 [end_date_ymd] => 2025-01-30 19:17:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:17:06' and `end` < '2025-01-30 19: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-30 19:17:19] Production.INFO: count ==2870 [2025-01-30 19:17:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:17:06 - End Time 2025-01-30 19:17:06 [2025-01-30 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365741', 'tblTempUsageDetail_20' ) start [2025-01-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365741', 'tblTempUsageDetail_20' ) end [2025-01-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365741', 'tblTempVendorCDR_20' ) start [2025-01-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365741', 'tblTempVendorCDR_20' ) end [2025-01-30 19:17:20] Production.INFO: ProcessCDR(1,14365741,1,1,2) [2025-01-30 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365741', 'tblTempUsageDetail_20' ) start [2025-01-30 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365741', 'tblTempUsageDetail_20' ) end [2025-01-30 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:17:24] Production.INFO: ==25279== Releasing lock... [2025-01-30 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:17:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-30 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:18:06 [end_date_ymd] => 2025-01-30 19:18:06 [RateCDR] => 1 ) [2025-01-30 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:18:06' and `end` < '2025-01-30 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:18:19] Production.INFO: count ==2838 [2025-01-30 19:18:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:18:06 - End Time 2025-01-30 19:18:06 [2025-01-30 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365746', 'tblTempUsageDetail_20' ) start [2025-01-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365746', 'tblTempUsageDetail_20' ) end [2025-01-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365746', 'tblTempVendorCDR_20' ) start [2025-01-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365746', 'tblTempVendorCDR_20' ) end [2025-01-30 19:18:20] Production.INFO: ProcessCDR(1,14365746,1,1,2) [2025-01-30 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365746', 'tblTempUsageDetail_20' ) start [2025-01-30 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365746', 'tblTempUsageDetail_20' ) end [2025-01-30 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:18:24] Production.INFO: ==25350== Releasing lock... [2025-01-30 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:18:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-30 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:19:05 [end_date_ymd] => 2025-01-30 19:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:19:05' and `end` < '2025-01-30 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-30 19:19:19] Production.INFO: count ==2837 [2025-01-30 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:19:05 - End Time 2025-01-30 19:19:05 [2025-01-30 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365751', 'tblTempUsageDetail_20' ) start [2025-01-30 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365751', 'tblTempUsageDetail_20' ) end [2025-01-30 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365751', 'tblTempVendorCDR_20' ) start [2025-01-30 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365751', 'tblTempVendorCDR_20' ) end [2025-01-30 19:19:20] Production.INFO: ProcessCDR(1,14365751,1,1,2) [2025-01-30 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365751', 'tblTempUsageDetail_20' ) start [2025-01-30 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365751', 'tblTempUsageDetail_20' ) end [2025-01-30 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:19:23] Production.INFO: ==25421== Releasing lock... [2025-01-30 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:19:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-30 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:20:06 [end_date_ymd] => 2025-01-30 19:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 16:20:06' and `end` < '2025-01-30 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-30 19:20:20] Production.INFO: count ==2830 [2025-01-30 19:20:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:20:06 - End Time 2025-01-30 19:20:06 [2025-01-30 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365757', 'tblTempUsageDetail_20' ) start [2025-01-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365757', 'tblTempUsageDetail_20' ) end [2025-01-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365757', 'tblTempVendorCDR_20' ) start [2025-01-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365757', 'tblTempVendorCDR_20' ) end [2025-01-30 19:20:21] Production.INFO: ProcessCDR(1,14365757,1,1,2) [2025-01-30 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365757', 'tblTempUsageDetail_20' ) start [2025-01-30 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365757', 'tblTempUsageDetail_20' ) end [2025-01-30 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:20:25] Production.INFO: ==25493== Releasing lock... [2025-01-30 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:20:25] Production.INFO: 49.25 MB #Memory Used# [2025-01-30 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:21:06 [end_date_ymd] => 2025-01-30 19:21:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:21:06' and `end` < '2025-01-30 19: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-30 19:21:20] Production.INFO: count ==2794 [2025-01-30 19:21:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:21:06 - End Time 2025-01-30 19:21:06 [2025-01-30 19:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365762', 'tblTempUsageDetail_20' ) start [2025-01-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365762', 'tblTempUsageDetail_20' ) end [2025-01-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365762', 'tblTempVendorCDR_20' ) start [2025-01-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365762', 'tblTempVendorCDR_20' ) end [2025-01-30 19:21:21] Production.INFO: ProcessCDR(1,14365762,1,1,2) [2025-01-30 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365762', 'tblTempUsageDetail_20' ) start [2025-01-30 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365762', 'tblTempUsageDetail_20' ) end [2025-01-30 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:21:24] Production.INFO: ==25566== Releasing lock... [2025-01-30 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:21:24] Production.INFO: 49 MB #Memory Used# [2025-01-30 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:22:05 [end_date_ymd] => 2025-01-30 19:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:22:05' and `end` < '2025-01-30 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-30 19:22:18] Production.INFO: count ==2782 [2025-01-30 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:22:05 - End Time 2025-01-30 19:22:05 [2025-01-30 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365767', 'tblTempUsageDetail_20' ) start [2025-01-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365767', 'tblTempUsageDetail_20' ) end [2025-01-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365767', 'tblTempVendorCDR_20' ) start [2025-01-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365767', 'tblTempVendorCDR_20' ) end [2025-01-30 19:22:19] Production.INFO: ProcessCDR(1,14365767,1,1,2) [2025-01-30 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365767', 'tblTempUsageDetail_20' ) start [2025-01-30 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365767', 'tblTempUsageDetail_20' ) end [2025-01-30 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:22:23] Production.INFO: ==25636== Releasing lock... [2025-01-30 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:22:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-30 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:23:06 [end_date_ymd] => 2025-01-30 19:23:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:23:06' and `end` < '2025-01-30 19: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-30 19:23:19] Production.INFO: count ==2781 [2025-01-30 19:23:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:23:06 - End Time 2025-01-30 19:23:06 [2025-01-30 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365772', 'tblTempUsageDetail_20' ) start [2025-01-30 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365772', 'tblTempUsageDetail_20' ) end [2025-01-30 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365772', 'tblTempVendorCDR_20' ) start [2025-01-30 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365772', 'tblTempVendorCDR_20' ) end [2025-01-30 19:23:20] Production.INFO: ProcessCDR(1,14365772,1,1,2) [2025-01-30 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365772', 'tblTempUsageDetail_20' ) start [2025-01-30 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365772', 'tblTempUsageDetail_20' ) end [2025-01-30 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:23:24] Production.INFO: ==25707== Releasing lock... [2025-01-30 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:23:24] Production.INFO: 49 MB #Memory Used# [2025-01-30 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:24:06 [end_date_ymd] => 2025-01-30 19:24:06 [RateCDR] => 1 ) [2025-01-30 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-30 16:24:06' and `end` < '2025-01-30 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-30 19:24:19] Production.INFO: count ==2769 [2025-01-30 19:24:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:24:06 - End Time 2025-01-30 19:24:06 [2025-01-30 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365777', 'tblTempUsageDetail_20' ) start [2025-01-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365777', 'tblTempUsageDetail_20' ) end [2025-01-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365777', 'tblTempVendorCDR_20' ) start [2025-01-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365777', 'tblTempVendorCDR_20' ) end [2025-01-30 19:24:20] Production.INFO: ProcessCDR(1,14365777,1,1,2) [2025-01-30 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365777', 'tblTempUsageDetail_20' ) start [2025-01-30 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365777', 'tblTempUsageDetail_20' ) end [2025-01-30 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:24:24] Production.INFO: ==25777== Releasing lock... [2025-01-30 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:24:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-30 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:25:05 [end_date_ymd] => 2025-01-30 19:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:25:05' and `end` < '2025-01-30 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-30 19:25:18] Production.INFO: count ==2759 [2025-01-30 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:25:05 - End Time 2025-01-30 19:25:05 [2025-01-30 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365782', 'tblTempUsageDetail_20' ) start [2025-01-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365782', 'tblTempUsageDetail_20' ) end [2025-01-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365782', 'tblTempVendorCDR_20' ) start [2025-01-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365782', 'tblTempVendorCDR_20' ) end [2025-01-30 19:25:19] Production.INFO: ProcessCDR(1,14365782,1,1,2) [2025-01-30 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365782', 'tblTempUsageDetail_20' ) start [2025-01-30 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365782', 'tblTempUsageDetail_20' ) end [2025-01-30 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:25:24] Production.INFO: ==25847== Releasing lock... [2025-01-30 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:25:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-30 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:26:06 [end_date_ymd] => 2025-01-30 19:26:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:26:06' and `end` < '2025-01-30 19: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-30 19:26:20] Production.INFO: count ==2692 [2025-01-30 19:26:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:26:06 - End Time 2025-01-30 19:26:06 [2025-01-30 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365787', 'tblTempUsageDetail_20' ) start [2025-01-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365787', 'tblTempUsageDetail_20' ) end [2025-01-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365787', 'tblTempVendorCDR_20' ) start [2025-01-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365787', 'tblTempVendorCDR_20' ) end [2025-01-30 19:26:20] Production.INFO: ProcessCDR(1,14365787,1,1,2) [2025-01-30 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365787', 'tblTempUsageDetail_20' ) start [2025-01-30 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365787', 'tblTempUsageDetail_20' ) end [2025-01-30 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:26:24] Production.INFO: ==25918== Releasing lock... [2025-01-30 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:26:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:27:05 [end_date_ymd] => 2025-01-30 19:27:05 [RateCDR] => 1 ) [2025-01-30 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:27:05' and `end` < '2025-01-30 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:27:18] Production.INFO: count ==2676 [2025-01-30 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:27:05 - End Time 2025-01-30 19:27:05 [2025-01-30 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365792', 'tblTempUsageDetail_20' ) start [2025-01-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365792', 'tblTempUsageDetail_20' ) end [2025-01-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365792', 'tblTempVendorCDR_20' ) start [2025-01-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365792', 'tblTempVendorCDR_20' ) end [2025-01-30 19:27:19] Production.INFO: ProcessCDR(1,14365792,1,1,2) [2025-01-30 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365792', 'tblTempUsageDetail_20' ) start [2025-01-30 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365792', 'tblTempUsageDetail_20' ) end [2025-01-30 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:27:23] Production.INFO: ==25988== Releasing lock... [2025-01-30 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:27:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:28:06 [end_date_ymd] => 2025-01-30 19:28:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:28:06' and `end` < '2025-01-30 19: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-30 19:28:19] Production.INFO: count ==2688 [2025-01-30 19:28:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:28:06 - End Time 2025-01-30 19:28:06 [2025-01-30 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365797', 'tblTempUsageDetail_20' ) start [2025-01-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365797', 'tblTempUsageDetail_20' ) end [2025-01-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365797', 'tblTempVendorCDR_20' ) start [2025-01-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365797', 'tblTempVendorCDR_20' ) end [2025-01-30 19:28:20] Production.INFO: ProcessCDR(1,14365797,1,1,2) [2025-01-30 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365797', 'tblTempUsageDetail_20' ) start [2025-01-30 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365797', 'tblTempUsageDetail_20' ) end [2025-01-30 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:28:24] Production.INFO: ==26060== Releasing lock... [2025-01-30 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:28:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:29:05 [end_date_ymd] => 2025-01-30 19:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:29:05' and `end` < '2025-01-30 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-30 19:29:19] Production.INFO: count ==2688 [2025-01-30 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:29:05 - End Time 2025-01-30 19:29:05 [2025-01-30 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365802', 'tblTempUsageDetail_20' ) start [2025-01-30 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365802', 'tblTempUsageDetail_20' ) end [2025-01-30 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365802', 'tblTempVendorCDR_20' ) start [2025-01-30 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365802', 'tblTempVendorCDR_20' ) end [2025-01-30 19:29:19] Production.INFO: ProcessCDR(1,14365802,1,1,2) [2025-01-30 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365802', 'tblTempUsageDetail_20' ) start [2025-01-30 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365802', 'tblTempUsageDetail_20' ) end [2025-01-30 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:29:23] Production.INFO: ==26130== Releasing lock... [2025-01-30 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:29:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:30:06 [end_date_ymd] => 2025-01-30 19:30:06 [RateCDR] => 1 ) [2025-01-30 19:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:30:06' and `end` < '2025-01-30 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-30 19:30:20] Production.INFO: count ==2677 [2025-01-30 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:30:06 - End Time 2025-01-30 19:30:06 [2025-01-30 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365808', 'tblTempUsageDetail_20' ) start [2025-01-30 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365808', 'tblTempUsageDetail_20' ) end [2025-01-30 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365808', 'tblTempVendorCDR_20' ) start [2025-01-30 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365808', 'tblTempVendorCDR_20' ) end [2025-01-30 19:30:21] Production.INFO: ProcessCDR(1,14365808,1,1,2) [2025-01-30 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365808', 'tblTempUsageDetail_20' ) start [2025-01-30 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365808', 'tblTempUsageDetail_20' ) end [2025-01-30 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:30:24] Production.INFO: ==26207== Releasing lock... [2025-01-30 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:30:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-30 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:31:05 [end_date_ymd] => 2025-01-30 19:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:31:05' and `end` < '2025-01-30 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-30 19:31:18] Production.INFO: count ==2611 [2025-01-30 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:31:05 - End Time 2025-01-30 19:31:05 [2025-01-30 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365813', 'tblTempUsageDetail_20' ) start [2025-01-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365813', 'tblTempUsageDetail_20' ) end [2025-01-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365813', 'tblTempVendorCDR_20' ) start [2025-01-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365813', 'tblTempVendorCDR_20' ) end [2025-01-30 19:31:19] Production.INFO: ProcessCDR(1,14365813,1,1,2) [2025-01-30 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365813', 'tblTempUsageDetail_20' ) start [2025-01-30 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365813', 'tblTempUsageDetail_20' ) end [2025-01-30 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:31:22] Production.INFO: ==26323== Releasing lock... [2025-01-30 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:31:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-30 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:32:06 [end_date_ymd] => 2025-01-30 19:32:06 [RateCDR] => 1 ) [2025-01-30 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:32:06' and `end` < '2025-01-30 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:32:19] Production.INFO: count ==2605 [2025-01-30 19:32:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:32:06 - End Time 2025-01-30 19:32:06 [2025-01-30 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365818', 'tblTempUsageDetail_20' ) start [2025-01-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365818', 'tblTempUsageDetail_20' ) end [2025-01-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365818', 'tblTempVendorCDR_20' ) start [2025-01-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365818', 'tblTempVendorCDR_20' ) end [2025-01-30 19:32:20] Production.INFO: ProcessCDR(1,14365818,1,1,2) [2025-01-30 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365818', 'tblTempUsageDetail_20' ) start [2025-01-30 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365818', 'tblTempUsageDetail_20' ) end [2025-01-30 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:32:25] Production.INFO: ==26394== Releasing lock... [2025-01-30 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:32:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-30 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:33:05 [end_date_ymd] => 2025-01-30 19:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:33:05' and `end` < '2025-01-30 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-30 19:33:19] Production.INFO: count ==2595 [2025-01-30 19:33:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:33:05 - End Time 2025-01-30 19:33:05 [2025-01-30 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365823', 'tblTempUsageDetail_20' ) start [2025-01-30 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365823', 'tblTempUsageDetail_20' ) end [2025-01-30 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365823', 'tblTempVendorCDR_20' ) start [2025-01-30 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365823', 'tblTempVendorCDR_20' ) end [2025-01-30 19:33:20] Production.INFO: ProcessCDR(1,14365823,1,1,2) [2025-01-30 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365823', 'tblTempUsageDetail_20' ) start [2025-01-30 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365823', 'tblTempUsageDetail_20' ) end [2025-01-30 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:33:24] Production.INFO: ==26469== Releasing lock... [2025-01-30 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:33:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-30 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:34:06 [end_date_ymd] => 2025-01-30 19:34:06 [RateCDR] => 1 ) [2025-01-30 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-30 16:34:06' and `end` < '2025-01-30 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-30 19:34:20] Production.INFO: count ==2592 [2025-01-30 19:34:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:34:06 - End Time 2025-01-30 19:34:06 [2025-01-30 19:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365828', 'tblTempUsageDetail_20' ) start [2025-01-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365828', 'tblTempUsageDetail_20' ) end [2025-01-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365828', 'tblTempVendorCDR_20' ) start [2025-01-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365828', 'tblTempVendorCDR_20' ) end [2025-01-30 19:34:21] Production.INFO: ProcessCDR(1,14365828,1,1,2) [2025-01-30 19:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365828', 'tblTempUsageDetail_20' ) start [2025-01-30 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365828', 'tblTempUsageDetail_20' ) end [2025-01-30 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:34:25] Production.INFO: ==26540== Releasing lock... [2025-01-30 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:34:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-30 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:35:06 [end_date_ymd] => 2025-01-30 19:35:06 [RateCDR] => 1 ) [2025-01-30 19:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:35:06' and `end` < '2025-01-30 19:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:35:19] Production.INFO: count ==2587 [2025-01-30 19:35:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:35:06 - End Time 2025-01-30 19:35:06 [2025-01-30 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365833', 'tblTempUsageDetail_20' ) start [2025-01-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365833', 'tblTempUsageDetail_20' ) end [2025-01-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365833', 'tblTempVendorCDR_20' ) start [2025-01-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365833', 'tblTempVendorCDR_20' ) end [2025-01-30 19:35:20] Production.INFO: ProcessCDR(1,14365833,1,1,2) [2025-01-30 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365833', 'tblTempUsageDetail_20' ) start [2025-01-30 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365833', 'tblTempUsageDetail_20' ) end [2025-01-30 19:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:35:25] Production.INFO: ==26610== Releasing lock... [2025-01-30 19:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:35:25] Production.INFO: 47.5 MB #Memory Used# [2025-01-30 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:36:05 [end_date_ymd] => 2025-01-30 19:36:05 [RateCDR] => 1 ) [2025-01-30 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:36:05' and `end` < '2025-01-30 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:36:18] Production.INFO: count ==2582 [2025-01-30 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:36:05 - End Time 2025-01-30 19:36:05 [2025-01-30 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365838', 'tblTempUsageDetail_20' ) start [2025-01-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365838', 'tblTempUsageDetail_20' ) end [2025-01-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365838', 'tblTempVendorCDR_20' ) start [2025-01-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365838', 'tblTempVendorCDR_20' ) end [2025-01-30 19:36:19] Production.INFO: ProcessCDR(1,14365838,1,1,2) [2025-01-30 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365838', 'tblTempUsageDetail_20' ) start [2025-01-30 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365838', 'tblTempUsageDetail_20' ) end [2025-01-30 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:36:23] Production.INFO: ==26681== Releasing lock... [2025-01-30 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:36:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-30 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:37:06 [end_date_ymd] => 2025-01-30 19:37:06 [RateCDR] => 1 ) [2025-01-30 19:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:37:06' and `end` < '2025-01-30 19:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:37:19] Production.INFO: count ==2576 [2025-01-30 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:37:06 - End Time 2025-01-30 19:37:06 [2025-01-30 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365843', 'tblTempUsageDetail_20' ) start [2025-01-30 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365843', 'tblTempUsageDetail_20' ) end [2025-01-30 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365843', 'tblTempVendorCDR_20' ) start [2025-01-30 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365843', 'tblTempVendorCDR_20' ) end [2025-01-30 19:37:19] Production.INFO: ProcessCDR(1,14365843,1,1,2) [2025-01-30 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365843', 'tblTempUsageDetail_20' ) start [2025-01-30 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365843', 'tblTempUsageDetail_20' ) end [2025-01-30 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:37:23] Production.INFO: ==26750== Releasing lock... [2025-01-30 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:37:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-30 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:38:06 [end_date_ymd] => 2025-01-30 19:38:06 [RateCDR] => 1 ) [2025-01-30 19:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:38:06' and `end` < '2025-01-30 19:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:38:19] Production.INFO: count ==2564 [2025-01-30 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:38:06 - End Time 2025-01-30 19:38:06 [2025-01-30 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365848', 'tblTempUsageDetail_20' ) start [2025-01-30 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365848', 'tblTempUsageDetail_20' ) end [2025-01-30 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365848', 'tblTempVendorCDR_20' ) start [2025-01-30 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365848', 'tblTempVendorCDR_20' ) end [2025-01-30 19:38:20] Production.INFO: ProcessCDR(1,14365848,1,1,2) [2025-01-30 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365848', 'tblTempUsageDetail_20' ) start [2025-01-30 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365848', 'tblTempUsageDetail_20' ) end [2025-01-30 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:38:23] Production.INFO: ==26822== Releasing lock... [2025-01-30 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:38:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-30 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:39:05 [end_date_ymd] => 2025-01-30 19:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:39:05' and `end` < '2025-01-30 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-30 19:39:18] Production.INFO: count ==2559 [2025-01-30 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:39:05 - End Time 2025-01-30 19:39:05 [2025-01-30 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365853', 'tblTempUsageDetail_20' ) start [2025-01-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365853', 'tblTempUsageDetail_20' ) end [2025-01-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365853', 'tblTempVendorCDR_20' ) start [2025-01-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365853', 'tblTempVendorCDR_20' ) end [2025-01-30 19:39:19] Production.INFO: ProcessCDR(1,14365853,1,1,2) [2025-01-30 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365853', 'tblTempUsageDetail_20' ) start [2025-01-30 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365853', 'tblTempUsageDetail_20' ) end [2025-01-30 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:39:23] Production.INFO: ==26893== Releasing lock... [2025-01-30 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:39:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-30 19:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:40:07 [end_date_ymd] => 2025-01-30 19:40:07 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:40:07' and `end` < '2025-01-30 19: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-30 19:40:20] Production.INFO: count ==2556 [2025-01-30 19:40:21] Production.ERROR: pbx CDR StartTime 2025-01-30 16:40:07 - End Time 2025-01-30 19:40:07 [2025-01-30 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365859', 'tblTempUsageDetail_20' ) start [2025-01-30 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365859', 'tblTempUsageDetail_20' ) end [2025-01-30 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365859', 'tblTempVendorCDR_20' ) start [2025-01-30 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365859', 'tblTempVendorCDR_20' ) end [2025-01-30 19:40:21] Production.INFO: ProcessCDR(1,14365859,1,1,2) [2025-01-30 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365859', 'tblTempUsageDetail_20' ) start [2025-01-30 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365859', 'tblTempUsageDetail_20' ) end [2025-01-30 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:40:24] Production.INFO: ==26966== Releasing lock... [2025-01-30 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:40:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-30 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:41:05 [end_date_ymd] => 2025-01-30 19:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:41:05' and `end` < '2025-01-30 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-30 19:41:19] Production.INFO: count ==2503 [2025-01-30 19:41:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:41:05 - End Time 2025-01-30 19:41:05 [2025-01-30 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365864', 'tblTempUsageDetail_20' ) start [2025-01-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365864', 'tblTempUsageDetail_20' ) end [2025-01-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365864', 'tblTempVendorCDR_20' ) start [2025-01-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365864', 'tblTempVendorCDR_20' ) end [2025-01-30 19:41:20] Production.INFO: ProcessCDR(1,14365864,1,1,2) [2025-01-30 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365864', 'tblTempUsageDetail_20' ) start [2025-01-30 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365864', 'tblTempUsageDetail_20' ) end [2025-01-30 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:41:25] Production.INFO: ==27041== Releasing lock... [2025-01-30 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:41:25] Production.INFO: 46.75 MB #Memory Used# [2025-01-30 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:42:05 [end_date_ymd] => 2025-01-30 19:42:05 [RateCDR] => 1 ) [2025-01-30 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:42:05' and `end` < '2025-01-30 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-30 19:42:19] Production.INFO: count ==2491 [2025-01-30 19:42:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:42:05 - End Time 2025-01-30 19:42:05 [2025-01-30 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365869', 'tblTempUsageDetail_20' ) start [2025-01-30 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365869', 'tblTempUsageDetail_20' ) end [2025-01-30 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365869', 'tblTempVendorCDR_20' ) start [2025-01-30 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365869', 'tblTempVendorCDR_20' ) end [2025-01-30 19:42:20] Production.INFO: ProcessCDR(1,14365869,1,1,2) [2025-01-30 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365869', 'tblTempUsageDetail_20' ) start [2025-01-30 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365869', 'tblTempUsageDetail_20' ) end [2025-01-30 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:42:24] Production.INFO: ==27122== Releasing lock... [2025-01-30 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:42:24] Production.INFO: 47 MB #Memory Used# [2025-01-30 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:43:05 [end_date_ymd] => 2025-01-30 19:43:05 [RateCDR] => 1 ) [2025-01-30 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:43:05' and `end` < '2025-01-30 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:43:18] Production.INFO: count ==2468 [2025-01-30 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:43:05 - End Time 2025-01-30 19:43:05 [2025-01-30 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365874', 'tblTempUsageDetail_20' ) start [2025-01-30 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365874', 'tblTempUsageDetail_20' ) end [2025-01-30 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365874', 'tblTempVendorCDR_20' ) start [2025-01-30 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365874', 'tblTempVendorCDR_20' ) end [2025-01-30 19:43:19] Production.INFO: ProcessCDR(1,14365874,1,1,2) [2025-01-30 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365874', 'tblTempUsageDetail_20' ) start [2025-01-30 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365874', 'tblTempUsageDetail_20' ) end [2025-01-30 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:43:24] Production.INFO: ==27192== Releasing lock... [2025-01-30 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:43:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-30 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:44:06 [end_date_ymd] => 2025-01-30 19:44:06 [RateCDR] => 1 ) [2025-01-30 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-30 16:44:06' and `end` < '2025-01-30 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-30 19:44:19] Production.INFO: count ==2437 [2025-01-30 19:44:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:44:06 - End Time 2025-01-30 19:44:06 [2025-01-30 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365879', 'tblTempUsageDetail_20' ) start [2025-01-30 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365879', 'tblTempUsageDetail_20' ) end [2025-01-30 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365879', 'tblTempVendorCDR_20' ) start [2025-01-30 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365879', 'tblTempVendorCDR_20' ) end [2025-01-30 19:44:20] Production.INFO: ProcessCDR(1,14365879,1,1,2) [2025-01-30 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365879', 'tblTempUsageDetail_20' ) start [2025-01-30 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365879', 'tblTempUsageDetail_20' ) end [2025-01-30 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:44:23] Production.INFO: ==27262== Releasing lock... [2025-01-30 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:44:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:45:05 [end_date_ymd] => 2025-01-30 19:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:45:05' and `end` < '2025-01-30 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-30 19:45:18] Production.INFO: count ==2415 [2025-01-30 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:45:05 - End Time 2025-01-30 19:45:05 [2025-01-30 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365884', 'tblTempUsageDetail_20' ) start [2025-01-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365884', 'tblTempUsageDetail_20' ) end [2025-01-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365884', 'tblTempVendorCDR_20' ) start [2025-01-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365884', 'tblTempVendorCDR_20' ) end [2025-01-30 19:45:19] Production.INFO: ProcessCDR(1,14365884,1,1,2) [2025-01-30 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365884', 'tblTempUsageDetail_20' ) start [2025-01-30 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365884', 'tblTempUsageDetail_20' ) end [2025-01-30 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:45:22] Production.INFO: ==27333== Releasing lock... [2025-01-30 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:45:22] Production.INFO: 46 MB #Memory Used# [2025-01-30 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:46:06 [end_date_ymd] => 2025-01-30 19:46:06 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:46:06' and `end` < '2025-01-30 19: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-30 19:46:19] Production.INFO: count ==2412 [2025-01-30 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:46:06 - End Time 2025-01-30 19:46:06 [2025-01-30 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365889', 'tblTempUsageDetail_20' ) start [2025-01-30 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365889', 'tblTempUsageDetail_20' ) end [2025-01-30 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365889', 'tblTempVendorCDR_20' ) start [2025-01-30 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365889', 'tblTempVendorCDR_20' ) end [2025-01-30 19:46:20] Production.INFO: ProcessCDR(1,14365889,1,1,2) [2025-01-30 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365889', 'tblTempUsageDetail_20' ) start [2025-01-30 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365889', 'tblTempUsageDetail_20' ) end [2025-01-30 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:46:23] Production.INFO: ==27450== Releasing lock... [2025-01-30 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:46:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:47:05 [end_date_ymd] => 2025-01-30 19:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:47:05' and `end` < '2025-01-30 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-30 19:47:18] Production.INFO: count ==2404 [2025-01-30 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:47:05 - End Time 2025-01-30 19:47:05 [2025-01-30 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365894', 'tblTempUsageDetail_20' ) start [2025-01-30 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365894', 'tblTempUsageDetail_20' ) end [2025-01-30 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365894', 'tblTempVendorCDR_20' ) start [2025-01-30 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365894', 'tblTempVendorCDR_20' ) end [2025-01-30 19:47:19] Production.INFO: ProcessCDR(1,14365894,1,1,2) [2025-01-30 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365894', 'tblTempUsageDetail_20' ) start [2025-01-30 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365894', 'tblTempUsageDetail_20' ) end [2025-01-30 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:47:22] Production.INFO: ==27520== Releasing lock... [2025-01-30 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:47:22] Production.INFO: 46 MB #Memory Used# [2025-01-30 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:48:05 [end_date_ymd] => 2025-01-30 19:48:05 [RateCDR] => 1 ) [2025-01-30 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:48:05' and `end` < '2025-01-30 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:48:19] Production.INFO: count ==2399 [2025-01-30 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:48:05 - End Time 2025-01-30 19:48:05 [2025-01-30 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365899', 'tblTempUsageDetail_20' ) start [2025-01-30 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365899', 'tblTempUsageDetail_20' ) end [2025-01-30 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365899', 'tblTempVendorCDR_20' ) start [2025-01-30 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365899', 'tblTempVendorCDR_20' ) end [2025-01-30 19:48:19] Production.INFO: ProcessCDR(1,14365899,1,1,2) [2025-01-30 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365899', 'tblTempUsageDetail_20' ) start [2025-01-30 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365899', 'tblTempUsageDetail_20' ) end [2025-01-30 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:48:24] Production.INFO: ==27609== Releasing lock... [2025-01-30 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:48:24] Production.INFO: 46 MB #Memory Used# [2025-01-30 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:49:05 [end_date_ymd] => 2025-01-30 19:49:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:49:05' and `end` < '2025-01-30 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-30 19:49:18] Production.INFO: count ==2390 [2025-01-30 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:49:05 - End Time 2025-01-30 19:49:05 [2025-01-30 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365904', 'tblTempUsageDetail_20' ) start [2025-01-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365904', 'tblTempUsageDetail_20' ) end [2025-01-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365904', 'tblTempVendorCDR_20' ) start [2025-01-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365904', 'tblTempVendorCDR_20' ) end [2025-01-30 19:49:19] Production.INFO: ProcessCDR(1,14365904,1,1,2) [2025-01-30 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365904', 'tblTempUsageDetail_20' ) start [2025-01-30 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365904', 'tblTempUsageDetail_20' ) end [2025-01-30 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:49:22] Production.INFO: ==27679== Releasing lock... [2025-01-30 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:49:22] Production.INFO: 46 MB #Memory Used# [2025-01-30 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:50:06 [end_date_ymd] => 2025-01-30 19:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 16:50:06' and `end` < '2025-01-30 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-30 19:50:19] Production.INFO: count ==2346 [2025-01-30 19:50:20] Production.ERROR: pbx CDR StartTime 2025-01-30 16:50:06 - End Time 2025-01-30 19:50:06 [2025-01-30 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365910', 'tblTempUsageDetail_20' ) start [2025-01-30 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365910', 'tblTempUsageDetail_20' ) end [2025-01-30 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365910', 'tblTempVendorCDR_20' ) start [2025-01-30 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365910', 'tblTempVendorCDR_20' ) end [2025-01-30 19:50:20] Production.INFO: ProcessCDR(1,14365910,1,1,2) [2025-01-30 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365910', 'tblTempUsageDetail_20' ) start [2025-01-30 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365910', 'tblTempUsageDetail_20' ) end [2025-01-30 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:50:23] Production.INFO: ==27752== Releasing lock... [2025-01-30 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:50:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-30 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:51:04 [end_date_ymd] => 2025-01-30 19:51:04 [RateCDR] => 1 ) [2025-01-30 19: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-30 16:51:04' and `end` < '2025-01-30 19: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-30 19:51:18] Production.INFO: count ==2267 [2025-01-30 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-30 16:51:04 - End Time 2025-01-30 19:51:04 [2025-01-30 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365915', 'tblTempUsageDetail_20' ) start [2025-01-30 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365915', 'tblTempUsageDetail_20' ) end [2025-01-30 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365915', 'tblTempVendorCDR_20' ) start [2025-01-30 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365915', 'tblTempVendorCDR_20' ) end [2025-01-30 19:51:19] Production.INFO: ProcessCDR(1,14365915,1,1,2) [2025-01-30 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365915', 'tblTempUsageDetail_20' ) start [2025-01-30 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365915', 'tblTempUsageDetail_20' ) end [2025-01-30 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:51:22] Production.INFO: ==27825== Releasing lock... [2025-01-30 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:52:06 [end_date_ymd] => 2025-01-30 19:52:06 [RateCDR] => 1 ) [2025-01-30 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:52:06' and `end` < '2025-01-30 19:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:52:19] Production.INFO: count ==2262 [2025-01-30 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:52:06 - End Time 2025-01-30 19:52:06 [2025-01-30 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365920', 'tblTempUsageDetail_20' ) start [2025-01-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365920', 'tblTempUsageDetail_20' ) end [2025-01-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365920', 'tblTempVendorCDR_20' ) start [2025-01-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365920', 'tblTempVendorCDR_20' ) end [2025-01-30 19:52:19] Production.INFO: ProcessCDR(1,14365920,1,1,2) [2025-01-30 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365920', 'tblTempUsageDetail_20' ) start [2025-01-30 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365920', 'tblTempUsageDetail_20' ) end [2025-01-30 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:52:22] Production.INFO: ==27895== Releasing lock... [2025-01-30 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:52:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-30 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:53:05 [end_date_ymd] => 2025-01-30 19:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:53:05' and `end` < '2025-01-30 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-30 19:53:18] Production.INFO: count ==2257 [2025-01-30 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:53:05 - End Time 2025-01-30 19:53:05 [2025-01-30 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365925', 'tblTempUsageDetail_20' ) start [2025-01-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365925', 'tblTempUsageDetail_20' ) end [2025-01-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365925', 'tblTempVendorCDR_20' ) start [2025-01-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365925', 'tblTempVendorCDR_20' ) end [2025-01-30 19:53:19] Production.INFO: ProcessCDR(1,14365925,1,1,2) [2025-01-30 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365925', 'tblTempUsageDetail_20' ) start [2025-01-30 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365925', 'tblTempUsageDetail_20' ) end [2025-01-30 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:53:22] Production.INFO: ==27971== Releasing lock... [2025-01-30 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:53:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:54:05 [end_date_ymd] => 2025-01-30 19:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:54:05' and `end` < '2025-01-30 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-30 19:54:18] Production.INFO: count ==2250 [2025-01-30 19:54:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:54:05 - End Time 2025-01-30 19:54:05 [2025-01-30 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365930', 'tblTempUsageDetail_20' ) start [2025-01-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365930', 'tblTempUsageDetail_20' ) end [2025-01-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365930', 'tblTempVendorCDR_20' ) start [2025-01-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365930', 'tblTempVendorCDR_20' ) end [2025-01-30 19:54:19] Production.INFO: ProcessCDR(1,14365930,1,1,2) [2025-01-30 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365930', 'tblTempUsageDetail_20' ) start [2025-01-30 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365930', 'tblTempUsageDetail_20' ) end [2025-01-30 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:54:22] Production.INFO: ==28042== Releasing lock... [2025-01-30 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:54:22] Production.INFO: 45 MB #Memory Used# [2025-01-30 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:55:05 [end_date_ymd] => 2025-01-30 19:55:05 [RateCDR] => 1 ) [2025-01-30 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:55:05' and `end` < '2025-01-30 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:55:18] Production.INFO: count ==2245 [2025-01-30 19:55:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:55:05 - End Time 2025-01-30 19:55:05 [2025-01-30 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365935', 'tblTempUsageDetail_20' ) start [2025-01-30 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365935', 'tblTempUsageDetail_20' ) end [2025-01-30 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365935', 'tblTempVendorCDR_20' ) start [2025-01-30 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365935', 'tblTempVendorCDR_20' ) end [2025-01-30 19:55:19] Production.INFO: ProcessCDR(1,14365935,1,1,2) [2025-01-30 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365935', 'tblTempUsageDetail_20' ) start [2025-01-30 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365935', 'tblTempUsageDetail_20' ) end [2025-01-30 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:55:22] Production.INFO: ==28115== Releasing lock... [2025-01-30 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:55:22] Production.INFO: 45 MB #Memory Used# [2025-01-30 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:56:06 [end_date_ymd] => 2025-01-30 19:56:06 [RateCDR] => 1 ) [2025-01-30 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:56:06' and `end` < '2025-01-30 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:56:19] Production.INFO: count ==2240 [2025-01-30 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:56:06 - End Time 2025-01-30 19:56:06 [2025-01-30 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365940', 'tblTempUsageDetail_20' ) start [2025-01-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365940', 'tblTempUsageDetail_20' ) end [2025-01-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365940', 'tblTempVendorCDR_20' ) start [2025-01-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365940', 'tblTempVendorCDR_20' ) end [2025-01-30 19:56:19] Production.INFO: ProcessCDR(1,14365940,1,1,2) [2025-01-30 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365940', 'tblTempUsageDetail_20' ) start [2025-01-30 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365940', 'tblTempUsageDetail_20' ) end [2025-01-30 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:56:23] Production.INFO: ==28187== Releasing lock... [2025-01-30 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:56:23] Production.INFO: 45 MB #Memory Used# [2025-01-30 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:57:05 [end_date_ymd] => 2025-01-30 19:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 16:57:05' and `end` < '2025-01-30 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-30 19:57:18] Production.INFO: count ==2233 [2025-01-30 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-30 16:57:05 - End Time 2025-01-30 19:57:05 [2025-01-30 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365945', 'tblTempUsageDetail_20' ) start [2025-01-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365945', 'tblTempUsageDetail_20' ) end [2025-01-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365945', 'tblTempVendorCDR_20' ) start [2025-01-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365945', 'tblTempVendorCDR_20' ) end [2025-01-30 19:57:18] Production.INFO: ProcessCDR(1,14365945,1,1,2) [2025-01-30 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365945', 'tblTempUsageDetail_20' ) start [2025-01-30 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365945', 'tblTempUsageDetail_20' ) end [2025-01-30 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:57:22] Production.INFO: ==28256== Releasing lock... [2025-01-30 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:57:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-30 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:58:06 [end_date_ymd] => 2025-01-30 19:58:06 [RateCDR] => 1 ) [2025-01-30 19:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:58:06' and `end` < '2025-01-30 19:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:58:19] Production.INFO: count ==2231 [2025-01-30 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:58:06 - End Time 2025-01-30 19:58:06 [2025-01-30 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365950', 'tblTempUsageDetail_20' ) start [2025-01-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365950', 'tblTempUsageDetail_20' ) end [2025-01-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365950', 'tblTempVendorCDR_20' ) start [2025-01-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365950', 'tblTempVendorCDR_20' ) end [2025-01-30 19:58:19] Production.INFO: ProcessCDR(1,14365950,1,1,2) [2025-01-30 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365950', 'tblTempUsageDetail_20' ) start [2025-01-30 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365950', 'tblTempUsageDetail_20' ) end [2025-01-30 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:58:22] Production.INFO: ==28327== Releasing lock... [2025-01-30 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:58:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-30 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 16:59:05 [end_date_ymd] => 2025-01-30 19:59:05 [RateCDR] => 1 ) [2025-01-30 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 16:59:05' and `end` < '2025-01-30 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 19:59:19] Production.INFO: count ==2217 [2025-01-30 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-30 16:59:05 - End Time 2025-01-30 19:59:05 [2025-01-30 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365955', 'tblTempUsageDetail_20' ) start [2025-01-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365955', 'tblTempUsageDetail_20' ) end [2025-01-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365955', 'tblTempVendorCDR_20' ) start [2025-01-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365955', 'tblTempVendorCDR_20' ) end [2025-01-30 19:59:19] Production.INFO: ProcessCDR(1,14365955,1,1,2) [2025-01-30 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365955', 'tblTempUsageDetail_20' ) start [2025-01-30 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365955', 'tblTempUsageDetail_20' ) end [2025-01-30 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 19:59:22] Production.INFO: ==28398== Releasing lock... [2025-01-30 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 19:59:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-30 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:00:06 [end_date_ymd] => 2025-01-30 20:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 17:00:06' and `end` < '2025-01-30 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-30 20:00:19] Production.INFO: count ==2215 [2025-01-30 20:00:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:00:06 - End Time 2025-01-30 20:00:06 [2025-01-30 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365960', 'tblTempUsageDetail_20' ) start [2025-01-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365960', 'tblTempUsageDetail_20' ) end [2025-01-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365960', 'tblTempVendorCDR_20' ) start [2025-01-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365960', 'tblTempVendorCDR_20' ) end [2025-01-30 20:00:20] Production.INFO: ProcessCDR(1,14365960,1,1,2) [2025-01-30 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365960', 'tblTempUsageDetail_20' ) start [2025-01-30 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365960', 'tblTempUsageDetail_20' ) end [2025-01-30 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:00:23] Production.INFO: ==28475== Releasing lock... [2025-01-30 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:00:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-30 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:01:05 [end_date_ymd] => 2025-01-30 20:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:01:05' and `end` < '2025-01-30 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-30 20:01:19] Production.INFO: count ==2181 [2025-01-30 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:01:05 - End Time 2025-01-30 20:01:05 [2025-01-30 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365966', 'tblTempUsageDetail_20' ) start [2025-01-30 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365966', 'tblTempUsageDetail_20' ) end [2025-01-30 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365966', 'tblTempVendorCDR_20' ) start [2025-01-30 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365966', 'tblTempVendorCDR_20' ) end [2025-01-30 20:01:20] Production.INFO: ProcessCDR(1,14365966,1,1,2) [2025-01-30 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365966', 'tblTempUsageDetail_20' ) start [2025-01-30 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365966', 'tblTempUsageDetail_20' ) end [2025-01-30 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:01:24] Production.INFO: ==28641== Releasing lock... [2025-01-30 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:01:24] Production.INFO: 44.75 MB #Memory Used# [2025-01-30 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:02:05 [end_date_ymd] => 2025-01-30 20:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:02:05' and `end` < '2025-01-30 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:02:18] Production.INFO: count ==2175 [2025-01-30 20:02:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:02:05 - End Time 2025-01-30 20:02:05 [2025-01-30 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365971', 'tblTempUsageDetail_20' ) start [2025-01-30 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365971', 'tblTempUsageDetail_20' ) end [2025-01-30 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365971', 'tblTempVendorCDR_20' ) start [2025-01-30 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365971', 'tblTempVendorCDR_20' ) end [2025-01-30 20:02:19] Production.INFO: ProcessCDR(1,14365971,1,1,2) [2025-01-30 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365971', 'tblTempUsageDetail_20' ) start [2025-01-30 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365971', 'tblTempUsageDetail_20' ) end [2025-01-30 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:02:22] Production.INFO: ==28711== Releasing lock... [2025-01-30 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:02:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-30 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:03:05 [end_date_ymd] => 2025-01-30 20:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:03:05' and `end` < '2025-01-30 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-30 20:03:19] Production.INFO: count ==2169 [2025-01-30 20:03:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:03:05 - End Time 2025-01-30 20:03:05 [2025-01-30 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365976', 'tblTempUsageDetail_20' ) start [2025-01-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365976', 'tblTempUsageDetail_20' ) end [2025-01-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365976', 'tblTempVendorCDR_20' ) start [2025-01-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365976', 'tblTempVendorCDR_20' ) end [2025-01-30 20:03:20] Production.INFO: ProcessCDR(1,14365976,1,1,2) [2025-01-30 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365976', 'tblTempUsageDetail_20' ) start [2025-01-30 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365976', 'tblTempUsageDetail_20' ) end [2025-01-30 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:03:23] Production.INFO: ==28783== Releasing lock... [2025-01-30 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:03:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-30 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:04:05 [end_date_ymd] => 2025-01-30 20:04:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:04:05' and `end` < '2025-01-30 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-30 20:04:18] Production.INFO: count ==2171 [2025-01-30 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:04:05 - End Time 2025-01-30 20:04:05 [2025-01-30 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365981', 'tblTempUsageDetail_20' ) start [2025-01-30 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365981', 'tblTempUsageDetail_20' ) end [2025-01-30 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365981', 'tblTempVendorCDR_20' ) start [2025-01-30 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365981', 'tblTempVendorCDR_20' ) end [2025-01-30 20:04:19] Production.INFO: ProcessCDR(1,14365981,1,1,2) [2025-01-30 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365981', 'tblTempUsageDetail_20' ) start [2025-01-30 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365981', 'tblTempUsageDetail_20' ) end [2025-01-30 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:04:22] Production.INFO: ==28854== Releasing lock... [2025-01-30 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:04:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:05:05 [end_date_ymd] => 2025-01-30 20:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:05:05' and `end` < '2025-01-30 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-30 20:05:18] Production.INFO: count ==2151 [2025-01-30 20:05:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:05:05 - End Time 2025-01-30 20:05:05 [2025-01-30 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365986', 'tblTempUsageDetail_20' ) start [2025-01-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365986', 'tblTempUsageDetail_20' ) end [2025-01-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365986', 'tblTempVendorCDR_20' ) start [2025-01-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365986', 'tblTempVendorCDR_20' ) end [2025-01-30 20:05:19] Production.INFO: ProcessCDR(1,14365986,1,1,2) [2025-01-30 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365986', 'tblTempUsageDetail_20' ) start [2025-01-30 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365986', 'tblTempUsageDetail_20' ) end [2025-01-30 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:05:22] Production.INFO: ==28924== Releasing lock... [2025-01-30 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:05:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-30 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:06:05 [end_date_ymd] => 2025-01-30 20:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:06:05' and `end` < '2025-01-30 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-30 20:06:18] Production.INFO: count ==2127 [2025-01-30 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:06:05 - End Time 2025-01-30 20:06:05 [2025-01-30 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365991', 'tblTempUsageDetail_20' ) start [2025-01-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365991', 'tblTempUsageDetail_20' ) end [2025-01-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365991', 'tblTempVendorCDR_20' ) start [2025-01-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365991', 'tblTempVendorCDR_20' ) end [2025-01-30 20:06:18] Production.INFO: ProcessCDR(1,14365991,1,1,2) [2025-01-30 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365991', 'tblTempUsageDetail_20' ) start [2025-01-30 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365991', 'tblTempUsageDetail_20' ) end [2025-01-30 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:06:22] Production.INFO: ==28993== Releasing lock... [2025-01-30 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:06:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-30 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:07:05 [end_date_ymd] => 2025-01-30 20:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:07:05' and `end` < '2025-01-30 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-30 20:07:18] Production.INFO: count ==2074 [2025-01-30 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:07:05 - End Time 2025-01-30 20:07:05 [2025-01-30 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365996', 'tblTempUsageDetail_20' ) start [2025-01-30 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14365996', 'tblTempUsageDetail_20' ) end [2025-01-30 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365996', 'tblTempVendorCDR_20' ) start [2025-01-30 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14365996', 'tblTempVendorCDR_20' ) end [2025-01-30 20:07:19] Production.INFO: ProcessCDR(1,14365996,1,1,2) [2025-01-30 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14365996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14365996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14365996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14365996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365996', 'tblTempUsageDetail_20' ) start [2025-01-30 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14365996', 'tblTempUsageDetail_20' ) end [2025-01-30 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:07:22] Production.INFO: ==29064== Releasing lock... [2025-01-30 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:07:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-30 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:08:05 [end_date_ymd] => 2025-01-30 20:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:08:05' and `end` < '2025-01-30 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-30 20:08:18] Production.INFO: count ==2027 [2025-01-30 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:08:05 - End Time 2025-01-30 20:08:05 [2025-01-30 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366001', 'tblTempUsageDetail_20' ) start [2025-01-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366001', 'tblTempUsageDetail_20' ) end [2025-01-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366001', 'tblTempVendorCDR_20' ) start [2025-01-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366001', 'tblTempVendorCDR_20' ) end [2025-01-30 20:08:19] Production.INFO: ProcessCDR(1,14366001,1,1,2) [2025-01-30 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366001', 'tblTempUsageDetail_20' ) start [2025-01-30 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366001', 'tblTempUsageDetail_20' ) end [2025-01-30 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:08:23] Production.INFO: ==29138== Releasing lock... [2025-01-30 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:08:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-30 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:09:05 [end_date_ymd] => 2025-01-30 20:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:09:05' and `end` < '2025-01-30 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-30 20:09:18] Production.INFO: count ==2033 [2025-01-30 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:09:05 - End Time 2025-01-30 20:09:05 [2025-01-30 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366006', 'tblTempUsageDetail_20' ) start [2025-01-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366006', 'tblTempUsageDetail_20' ) end [2025-01-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366006', 'tblTempVendorCDR_20' ) start [2025-01-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366006', 'tblTempVendorCDR_20' ) end [2025-01-30 20:09:19] Production.INFO: ProcessCDR(1,14366006,1,1,2) [2025-01-30 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366006', 'tblTempUsageDetail_20' ) start [2025-01-30 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366006', 'tblTempUsageDetail_20' ) end [2025-01-30 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:09:24] Production.INFO: ==29208== Releasing lock... [2025-01-30 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:09:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-30 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:10:06 [end_date_ymd] => 2025-01-30 20:10:06 [RateCDR] => 1 ) [2025-01-30 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:10:06' and `end` < '2025-01-30 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:10:19] Production.INFO: count ==2038 [2025-01-30 20:10:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:10:06 - End Time 2025-01-30 20:10:06 [2025-01-30 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366012', 'tblTempUsageDetail_20' ) start [2025-01-30 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366012', 'tblTempUsageDetail_20' ) end [2025-01-30 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366012', 'tblTempVendorCDR_20' ) start [2025-01-30 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366012', 'tblTempVendorCDR_20' ) end [2025-01-30 20:10:20] Production.INFO: ProcessCDR(1,14366012,1,1,2) [2025-01-30 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366012', 'tblTempUsageDetail_20' ) start [2025-01-30 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366012', 'tblTempUsageDetail_20' ) end [2025-01-30 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:10:24] Production.INFO: ==29325== Releasing lock... [2025-01-30 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:10:24] Production.INFO: 43 MB #Memory Used# [2025-01-30 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:11:06 [end_date_ymd] => 2025-01-30 20:11:06 [RateCDR] => 1 ) [2025-01-30 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:11:06' and `end` < '2025-01-30 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:11:19] Production.INFO: count ==2003 [2025-01-30 20:11:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:11:06 - End Time 2025-01-30 20:11:06 [2025-01-30 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366017', 'tblTempUsageDetail_20' ) start [2025-01-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366017', 'tblTempUsageDetail_20' ) end [2025-01-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366017', 'tblTempVendorCDR_20' ) start [2025-01-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366017', 'tblTempVendorCDR_20' ) end [2025-01-30 20:11:20] Production.INFO: ProcessCDR(1,14366017,1,1,2) [2025-01-30 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366017', 'tblTempUsageDetail_20' ) start [2025-01-30 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366017', 'tblTempUsageDetail_20' ) end [2025-01-30 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:11:25] Production.INFO: ==29443== Releasing lock... [2025-01-30 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:11:25] Production.INFO: 43 MB #Memory Used# [2025-01-30 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:12:05 [end_date_ymd] => 2025-01-30 20:12:05 [RateCDR] => 1 ) [2025-01-30 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:12:05' and `end` < '2025-01-30 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:12:18] Production.INFO: count ==1988 [2025-01-30 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:12:05 - End Time 2025-01-30 20:12:05 [2025-01-30 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366022', 'tblTempUsageDetail_20' ) start [2025-01-30 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366022', 'tblTempUsageDetail_20' ) end [2025-01-30 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366022', 'tblTempVendorCDR_20' ) start [2025-01-30 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366022', 'tblTempVendorCDR_20' ) end [2025-01-30 20:12:18] Production.INFO: ProcessCDR(1,14366022,1,1,2) [2025-01-30 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366022', 'tblTempUsageDetail_20' ) start [2025-01-30 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366022', 'tblTempUsageDetail_20' ) end [2025-01-30 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:12:23] Production.INFO: ==29561== Releasing lock... [2025-01-30 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:12:23] Production.INFO: 43 MB #Memory Used# [2025-01-30 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:13:06 [end_date_ymd] => 2025-01-30 20:13:06 [RateCDR] => 1 ) [2025-01-30 20:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:13:06' and `end` < '2025-01-30 20:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:13:19] Production.INFO: count ==1984 [2025-01-30 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:13:06 - End Time 2025-01-30 20:13:06 [2025-01-30 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366027', 'tblTempUsageDetail_20' ) start [2025-01-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366027', 'tblTempUsageDetail_20' ) end [2025-01-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366027', 'tblTempVendorCDR_20' ) start [2025-01-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366027', 'tblTempVendorCDR_20' ) end [2025-01-30 20:13:19] Production.INFO: ProcessCDR(1,14366027,1,1,2) [2025-01-30 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366027', 'tblTempUsageDetail_20' ) start [2025-01-30 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366027', 'tblTempUsageDetail_20' ) end [2025-01-30 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:13:22] Production.INFO: ==29675== Releasing lock... [2025-01-30 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:13:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:14:05 [end_date_ymd] => 2025-01-30 20:14:05 [RateCDR] => 1 ) [2025-01-30 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:14:05' and `end` < '2025-01-30 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:14:18] Production.INFO: count ==1984 [2025-01-30 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:14:05 - End Time 2025-01-30 20:14:05 [2025-01-30 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366032', 'tblTempUsageDetail_20' ) start [2025-01-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366032', 'tblTempUsageDetail_20' ) end [2025-01-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366032', 'tblTempVendorCDR_20' ) start [2025-01-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366032', 'tblTempVendorCDR_20' ) end [2025-01-30 20:14:18] Production.INFO: ProcessCDR(1,14366032,1,1,2) [2025-01-30 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366032', 'tblTempUsageDetail_20' ) start [2025-01-30 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366032', 'tblTempUsageDetail_20' ) end [2025-01-30 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:14:23] Production.INFO: ==29790== Releasing lock... [2025-01-30 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:14:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:15:05 [end_date_ymd] => 2025-01-30 20:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:15:05' and `end` < '2025-01-30 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-30 20:15:20] Production.INFO: count ==1982 [2025-01-30 20:15:21] Production.ERROR: pbx CDR StartTime 2025-01-30 17:15:05 - End Time 2025-01-30 20:15:05 [2025-01-30 20:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366037', 'tblTempUsageDetail_20' ) start [2025-01-30 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366037', 'tblTempUsageDetail_20' ) end [2025-01-30 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366037', 'tblTempVendorCDR_20' ) start [2025-01-30 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366037', 'tblTempVendorCDR_20' ) end [2025-01-30 20:15:21] Production.INFO: ProcessCDR(1,14366037,1,1,2) [2025-01-30 20:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366037', 'tblTempUsageDetail_20' ) start [2025-01-30 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366037', 'tblTempUsageDetail_20' ) end [2025-01-30 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:15:24] Production.INFO: ==29907== Releasing lock... [2025-01-30 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:15:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:16:05 [end_date_ymd] => 2025-01-30 20:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:16:05' and `end` < '2025-01-30 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-30 20:16:18] Production.INFO: count ==1983 [2025-01-30 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:16:05 - End Time 2025-01-30 20:16:05 [2025-01-30 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366042', 'tblTempUsageDetail_20' ) start [2025-01-30 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366042', 'tblTempUsageDetail_20' ) end [2025-01-30 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366042', 'tblTempVendorCDR_20' ) start [2025-01-30 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366042', 'tblTempVendorCDR_20' ) end [2025-01-30 20:16:18] Production.INFO: ProcessCDR(1,14366042,1,1,2) [2025-01-30 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366042', 'tblTempUsageDetail_20' ) start [2025-01-30 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366042', 'tblTempUsageDetail_20' ) end [2025-01-30 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:16:23] Production.INFO: ==30024== Releasing lock... [2025-01-30 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:16:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:17:05 [end_date_ymd] => 2025-01-30 20:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:17:05' and `end` < '2025-01-30 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-30 20:17:19] Production.INFO: count ==1980 [2025-01-30 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:17:05 - End Time 2025-01-30 20:17:05 [2025-01-30 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366047', 'tblTempUsageDetail_20' ) start [2025-01-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366047', 'tblTempUsageDetail_20' ) end [2025-01-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366047', 'tblTempVendorCDR_20' ) start [2025-01-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366047', 'tblTempVendorCDR_20' ) end [2025-01-30 20:17:19] Production.INFO: ProcessCDR(1,14366047,1,1,2) [2025-01-30 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366047', 'tblTempUsageDetail_20' ) start [2025-01-30 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366047', 'tblTempUsageDetail_20' ) end [2025-01-30 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:17:22] Production.INFO: ==30180== Releasing lock... [2025-01-30 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:17:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:18:06 [end_date_ymd] => 2025-01-30 20:18:06 [RateCDR] => 1 ) [2025-01-30 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:18:06' and `end` < '2025-01-30 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:18:19] Production.INFO: count ==1977 [2025-01-30 20:18:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:18:06 - End Time 2025-01-30 20:18:06 [2025-01-30 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366052', 'tblTempUsageDetail_20' ) start [2025-01-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366052', 'tblTempUsageDetail_20' ) end [2025-01-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366052', 'tblTempVendorCDR_20' ) start [2025-01-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366052', 'tblTempVendorCDR_20' ) end [2025-01-30 20:18:20] Production.INFO: ProcessCDR(1,14366052,1,1,2) [2025-01-30 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366052', 'tblTempUsageDetail_20' ) start [2025-01-30 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366052', 'tblTempUsageDetail_20' ) end [2025-01-30 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:18:23] Production.INFO: ==30308== Releasing lock... [2025-01-30 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:18:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:19:04 [end_date_ymd] => 2025-01-30 20:19:04 [RateCDR] => 1 ) [2025-01-30 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:19:04' and `end` < '2025-01-30 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:19:18] Production.INFO: count ==1966 [2025-01-30 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:19:04 - End Time 2025-01-30 20:19:04 [2025-01-30 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366057', 'tblTempUsageDetail_20' ) start [2025-01-30 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366057', 'tblTempUsageDetail_20' ) end [2025-01-30 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366057', 'tblTempVendorCDR_20' ) start [2025-01-30 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366057', 'tblTempVendorCDR_20' ) end [2025-01-30 20:19:18] Production.INFO: ProcessCDR(1,14366057,1,1,2) [2025-01-30 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366057', 'tblTempUsageDetail_20' ) start [2025-01-30 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366057', 'tblTempUsageDetail_20' ) end [2025-01-30 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:19:22] Production.INFO: ==30423== Releasing lock... [2025-01-30 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:19:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:20:06 [end_date_ymd] => 2025-01-30 20:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 17:20:06' and `end` < '2025-01-30 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-30 20:20:19] Production.INFO: count ==1968 [2025-01-30 20:20:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:20:06 - End Time 2025-01-30 20:20:06 [2025-01-30 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366063', 'tblTempUsageDetail_20' ) start [2025-01-30 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366063', 'tblTempUsageDetail_20' ) end [2025-01-30 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366063', 'tblTempVendorCDR_20' ) start [2025-01-30 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366063', 'tblTempVendorCDR_20' ) end [2025-01-30 20:20:20] Production.INFO: ProcessCDR(1,14366063,1,1,2) [2025-01-30 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366063', 'tblTempUsageDetail_20' ) start [2025-01-30 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366063', 'tblTempUsageDetail_20' ) end [2025-01-30 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:20:23] Production.INFO: ==30540== Releasing lock... [2025-01-30 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:20:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:21:05 [end_date_ymd] => 2025-01-30 20:21:05 [RateCDR] => 1 ) [2025-01-30 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:21:05' and `end` < '2025-01-30 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:21:18] Production.INFO: count ==1954 [2025-01-30 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:21:05 - End Time 2025-01-30 20:21:05 [2025-01-30 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366068', 'tblTempUsageDetail_20' ) start [2025-01-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366068', 'tblTempUsageDetail_20' ) end [2025-01-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366068', 'tblTempVendorCDR_20' ) start [2025-01-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366068', 'tblTempVendorCDR_20' ) end [2025-01-30 20:21:18] Production.INFO: ProcessCDR(1,14366068,1,1,2) [2025-01-30 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366068', 'tblTempUsageDetail_20' ) start [2025-01-30 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366068', 'tblTempUsageDetail_20' ) end [2025-01-30 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:21:23] Production.INFO: ==30657== Releasing lock... [2025-01-30 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:21:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:22:05 [end_date_ymd] => 2025-01-30 20:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:22:05' and `end` < '2025-01-30 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-30 20:22:19] Production.INFO: count ==1953 [2025-01-30 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:22:05 - End Time 2025-01-30 20:22:05 [2025-01-30 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366073', 'tblTempUsageDetail_20' ) start [2025-01-30 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366073', 'tblTempUsageDetail_20' ) end [2025-01-30 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366073', 'tblTempVendorCDR_20' ) start [2025-01-30 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366073', 'tblTempVendorCDR_20' ) end [2025-01-30 20:22:20] Production.INFO: ProcessCDR(1,14366073,1,1,2) [2025-01-30 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366073', 'tblTempUsageDetail_20' ) start [2025-01-30 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366073', 'tblTempUsageDetail_20' ) end [2025-01-30 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:22:23] Production.INFO: ==30775== Releasing lock... [2025-01-30 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:22:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:23:05 [end_date_ymd] => 2025-01-30 20:23:05 [RateCDR] => 1 ) [2025-01-30 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:23:05' and `end` < '2025-01-30 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:23:19] Production.INFO: count ==1955 [2025-01-30 20:23:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:23:05 - End Time 2025-01-30 20:23:05 [2025-01-30 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366078', 'tblTempUsageDetail_20' ) start [2025-01-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366078', 'tblTempUsageDetail_20' ) end [2025-01-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366078', 'tblTempVendorCDR_20' ) start [2025-01-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366078', 'tblTempVendorCDR_20' ) end [2025-01-30 20:23:19] Production.INFO: ProcessCDR(1,14366078,1,1,2) [2025-01-30 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366078', 'tblTempUsageDetail_20' ) start [2025-01-30 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366078', 'tblTempUsageDetail_20' ) end [2025-01-30 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:23:23] Production.INFO: ==30896== Releasing lock... [2025-01-30 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:23:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:24:06 [end_date_ymd] => 2025-01-30 20:24:06 [RateCDR] => 1 ) [2025-01-30 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:24:06' and `end` < '2025-01-30 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:24:19] Production.INFO: count ==1945 [2025-01-30 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:24:06 - End Time 2025-01-30 20:24:06 [2025-01-30 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366083', 'tblTempUsageDetail_20' ) start [2025-01-30 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366083', 'tblTempUsageDetail_20' ) end [2025-01-30 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366083', 'tblTempVendorCDR_20' ) start [2025-01-30 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366083', 'tblTempVendorCDR_20' ) end [2025-01-30 20:24:19] Production.INFO: ProcessCDR(1,14366083,1,1,2) [2025-01-30 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366083', 'tblTempUsageDetail_20' ) start [2025-01-30 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366083', 'tblTempUsageDetail_20' ) end [2025-01-30 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:24:23] Production.INFO: ==31015== Releasing lock... [2025-01-30 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:25:04 [end_date_ymd] => 2025-01-30 20:25:04 [RateCDR] => 1 ) [2025-01-30 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-30 17:25:04' and `end` < '2025-01-30 20: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-30 20:25:17] Production.INFO: count ==1945 [2025-01-30 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:25:04 - End Time 2025-01-30 20:25:04 [2025-01-30 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366088', 'tblTempUsageDetail_20' ) start [2025-01-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366088', 'tblTempUsageDetail_20' ) end [2025-01-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366088', 'tblTempVendorCDR_20' ) start [2025-01-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366088', 'tblTempVendorCDR_20' ) end [2025-01-30 20:25:18] Production.INFO: ProcessCDR(1,14366088,1,1,2) [2025-01-30 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366088', 'tblTempUsageDetail_20' ) start [2025-01-30 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366088', 'tblTempUsageDetail_20' ) end [2025-01-30 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:25:21] Production.INFO: ==31137== Releasing lock... [2025-01-30 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:25:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-30 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:26:06 [end_date_ymd] => 2025-01-30 20:26:06 [RateCDR] => 1 ) [2025-01-30 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:26:06' and `end` < '2025-01-30 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:26:19] Production.INFO: count ==1940 [2025-01-30 20:26:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:26:06 - End Time 2025-01-30 20:26:06 [2025-01-30 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366093', 'tblTempUsageDetail_20' ) start [2025-01-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366093', 'tblTempUsageDetail_20' ) end [2025-01-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366093', 'tblTempVendorCDR_20' ) start [2025-01-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366093', 'tblTempVendorCDR_20' ) end [2025-01-30 20:26:20] Production.INFO: ProcessCDR(1,14366093,1,1,2) [2025-01-30 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366093', 'tblTempUsageDetail_20' ) start [2025-01-30 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366093', 'tblTempUsageDetail_20' ) end [2025-01-30 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:26:23] Production.INFO: ==31256== Releasing lock... [2025-01-30 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:26:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-30 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:27:05 [end_date_ymd] => 2025-01-30 20:27:05 [RateCDR] => 1 ) [2025-01-30 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:27:05' and `end` < '2025-01-30 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:27:19] Production.INFO: count ==1939 [2025-01-30 20:27:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:27:05 - End Time 2025-01-30 20:27:05 [2025-01-30 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366098', 'tblTempUsageDetail_20' ) start [2025-01-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366098', 'tblTempUsageDetail_20' ) end [2025-01-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366098', 'tblTempVendorCDR_20' ) start [2025-01-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366098', 'tblTempVendorCDR_20' ) end [2025-01-30 20:27:20] Production.INFO: ProcessCDR(1,14366098,1,1,2) [2025-01-30 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366098', 'tblTempUsageDetail_20' ) start [2025-01-30 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366098', 'tblTempUsageDetail_20' ) end [2025-01-30 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:27:24] Production.INFO: ==31369== Releasing lock... [2025-01-30 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:27:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-30 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:28:05 [end_date_ymd] => 2025-01-30 20:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:28:05' and `end` < '2025-01-30 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-30 20:28:18] Production.INFO: count ==1940 [2025-01-30 20:28:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:28:05 - End Time 2025-01-30 20:28:05 [2025-01-30 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366103', 'tblTempUsageDetail_20' ) start [2025-01-30 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366103', 'tblTempUsageDetail_20' ) end [2025-01-30 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366103', 'tblTempVendorCDR_20' ) start [2025-01-30 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366103', 'tblTempVendorCDR_20' ) end [2025-01-30 20:28:19] Production.INFO: ProcessCDR(1,14366103,1,1,2) [2025-01-30 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366103', 'tblTempUsageDetail_20' ) start [2025-01-30 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366103', 'tblTempUsageDetail_20' ) end [2025-01-30 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:28:22] Production.INFO: ==31486== Releasing lock... [2025-01-30 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:28:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-30 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:29:06 [end_date_ymd] => 2025-01-30 20:29:06 [RateCDR] => 1 ) [2025-01-30 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:29:06' and `end` < '2025-01-30 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:29:19] Production.INFO: count ==1924 [2025-01-30 20:29:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:29:06 - End Time 2025-01-30 20:29:06 [2025-01-30 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366108', 'tblTempUsageDetail_20' ) start [2025-01-30 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366108', 'tblTempUsageDetail_20' ) end [2025-01-30 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366108', 'tblTempVendorCDR_20' ) start [2025-01-30 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366108', 'tblTempVendorCDR_20' ) end [2025-01-30 20:29:20] Production.INFO: ProcessCDR(1,14366108,1,1,2) [2025-01-30 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366108', 'tblTempUsageDetail_20' ) start [2025-01-30 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366108', 'tblTempUsageDetail_20' ) end [2025-01-30 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:29:24] Production.INFO: ==31606== Releasing lock... [2025-01-30 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:29:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-30 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:30:06 [end_date_ymd] => 2025-01-30 20:30:06 [RateCDR] => 1 ) [2025-01-30 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:30:06' and `end` < '2025-01-30 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:30:19] Production.INFO: count ==1922 [2025-01-30 20:30:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:30:06 - End Time 2025-01-30 20:30:06 [2025-01-30 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366114', 'tblTempUsageDetail_20' ) start [2025-01-30 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366114', 'tblTempUsageDetail_20' ) end [2025-01-30 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366114', 'tblTempVendorCDR_20' ) start [2025-01-30 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366114', 'tblTempVendorCDR_20' ) end [2025-01-30 20:30:20] Production.INFO: ProcessCDR(1,14366114,1,1,2) [2025-01-30 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366114', 'tblTempUsageDetail_20' ) start [2025-01-30 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366114', 'tblTempUsageDetail_20' ) end [2025-01-30 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:30:23] Production.INFO: ==31733== Releasing lock... [2025-01-30 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:30:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-30 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:31:05 [end_date_ymd] => 2025-01-30 20:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:31:05' and `end` < '2025-01-30 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-30 20:31:18] Production.INFO: count ==1872 [2025-01-30 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:31:05 - End Time 2025-01-30 20:31:05 [2025-01-30 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366119', 'tblTempUsageDetail_20' ) start [2025-01-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366119', 'tblTempUsageDetail_20' ) end [2025-01-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366119', 'tblTempVendorCDR_20' ) start [2025-01-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366119', 'tblTempVendorCDR_20' ) end [2025-01-30 20:31:19] Production.INFO: ProcessCDR(1,14366119,1,1,2) [2025-01-30 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366119', 'tblTempUsageDetail_20' ) start [2025-01-30 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366119', 'tblTempUsageDetail_20' ) end [2025-01-30 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:31:23] Production.INFO: ==31855== Releasing lock... [2025-01-30 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:31:23] Production.INFO: 42 MB #Memory Used# [2025-01-30 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:32:05 [end_date_ymd] => 2025-01-30 20:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:32:05' and `end` < '2025-01-30 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-30 20:32:18] Production.INFO: count ==1863 [2025-01-30 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:32:05 - End Time 2025-01-30 20:32:05 [2025-01-30 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366124', 'tblTempUsageDetail_20' ) start [2025-01-30 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366124', 'tblTempUsageDetail_20' ) end [2025-01-30 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366124', 'tblTempVendorCDR_20' ) start [2025-01-30 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366124', 'tblTempVendorCDR_20' ) end [2025-01-30 20:32:19] Production.INFO: ProcessCDR(1,14366124,1,1,2) [2025-01-30 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366124', 'tblTempUsageDetail_20' ) start [2025-01-30 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366124', 'tblTempUsageDetail_20' ) end [2025-01-30 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:32:22] Production.INFO: ==32014== Releasing lock... [2025-01-30 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:32:22] Production.INFO: 42 MB #Memory Used# [2025-01-30 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:33:05 [end_date_ymd] => 2025-01-30 20:33:05 [RateCDR] => 1 ) [2025-01-30 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:33:05' and `end` < '2025-01-30 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:33:19] Production.INFO: count ==1853 [2025-01-30 20:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:33:05 - End Time 2025-01-30 20:33:05 [2025-01-30 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366129', 'tblTempUsageDetail_20' ) start [2025-01-30 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366129', 'tblTempUsageDetail_20' ) end [2025-01-30 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366129', 'tblTempVendorCDR_20' ) start [2025-01-30 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366129', 'tblTempVendorCDR_20' ) end [2025-01-30 20:33:19] Production.INFO: ProcessCDR(1,14366129,1,1,2) [2025-01-30 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366129', 'tblTempUsageDetail_20' ) start [2025-01-30 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366129', 'tblTempUsageDetail_20' ) end [2025-01-30 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:33:22] Production.INFO: ==32134== Releasing lock... [2025-01-30 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:33:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-30 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:34:05 [end_date_ymd] => 2025-01-30 20:34:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:34:05' and `end` < '2025-01-30 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-30 20:34:18] Production.INFO: count ==1850 [2025-01-30 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:34:05 - End Time 2025-01-30 20:34:05 [2025-01-30 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366134', 'tblTempUsageDetail_20' ) start [2025-01-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366134', 'tblTempUsageDetail_20' ) end [2025-01-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366134', 'tblTempVendorCDR_20' ) start [2025-01-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366134', 'tblTempVendorCDR_20' ) end [2025-01-30 20:34:19] Production.INFO: ProcessCDR(1,14366134,1,1,2) [2025-01-30 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366134', 'tblTempUsageDetail_20' ) start [2025-01-30 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366134', 'tblTempUsageDetail_20' ) end [2025-01-30 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:34:22] Production.INFO: ==32247== Releasing lock... [2025-01-30 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:34:22] Production.INFO: 42 MB #Memory Used# [2025-01-30 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:35:06 [end_date_ymd] => 2025-01-30 20:35:06 [RateCDR] => 1 ) [2025-01-30 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:35:06' and `end` < '2025-01-30 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:35:19] Production.INFO: count ==1833 [2025-01-30 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:35:06 - End Time 2025-01-30 20:35:06 [2025-01-30 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366139', 'tblTempUsageDetail_20' ) start [2025-01-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366139', 'tblTempUsageDetail_20' ) end [2025-01-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366139', 'tblTempVendorCDR_20' ) start [2025-01-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366139', 'tblTempVendorCDR_20' ) end [2025-01-30 20:35:19] Production.INFO: ProcessCDR(1,14366139,1,1,2) [2025-01-30 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366139', 'tblTempUsageDetail_20' ) start [2025-01-30 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366139', 'tblTempUsageDetail_20' ) end [2025-01-30 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:35:22] Production.INFO: ==32377== Releasing lock... [2025-01-30 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:35:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-30 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:36:05 [end_date_ymd] => 2025-01-30 20:36:05 [RateCDR] => 1 ) [2025-01-30 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:36:05' and `end` < '2025-01-30 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:36:18] Production.INFO: count ==1829 [2025-01-30 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:36:05 - End Time 2025-01-30 20:36:05 [2025-01-30 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366144', 'tblTempUsageDetail_20' ) start [2025-01-30 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366144', 'tblTempUsageDetail_20' ) end [2025-01-30 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366144', 'tblTempVendorCDR_20' ) start [2025-01-30 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366144', 'tblTempVendorCDR_20' ) end [2025-01-30 20:36:18] Production.INFO: ProcessCDR(1,14366144,1,1,2) [2025-01-30 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366144', 'tblTempUsageDetail_20' ) start [2025-01-30 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366144', 'tblTempUsageDetail_20' ) end [2025-01-30 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:36:23] Production.INFO: ==32497== Releasing lock... [2025-01-30 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:36:23] Production.INFO: 42 MB #Memory Used# [2025-01-30 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:37:05 [end_date_ymd] => 2025-01-30 20:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:37:05' and `end` < '2025-01-30 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-30 20:37:18] Production.INFO: count ==1821 [2025-01-30 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:37:05 - End Time 2025-01-30 20:37:05 [2025-01-30 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366149', 'tblTempUsageDetail_20' ) start [2025-01-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366149', 'tblTempUsageDetail_20' ) end [2025-01-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366149', 'tblTempVendorCDR_20' ) start [2025-01-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366149', 'tblTempVendorCDR_20' ) end [2025-01-30 20:37:19] Production.INFO: ProcessCDR(1,14366149,1,1,2) [2025-01-30 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366149', 'tblTempUsageDetail_20' ) start [2025-01-30 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366149', 'tblTempUsageDetail_20' ) end [2025-01-30 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:37:22] Production.INFO: ==32622== Releasing lock... [2025-01-30 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:37:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-30 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:38:06 [end_date_ymd] => 2025-01-30 20:38:06 [RateCDR] => 1 ) [2025-01-30 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:38:06' and `end` < '2025-01-30 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:38:19] Production.INFO: count ==1819 [2025-01-30 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:38:06 - End Time 2025-01-30 20:38:06 [2025-01-30 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366154', 'tblTempUsageDetail_20' ) start [2025-01-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366154', 'tblTempUsageDetail_20' ) end [2025-01-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366154', 'tblTempVendorCDR_20' ) start [2025-01-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366154', 'tblTempVendorCDR_20' ) end [2025-01-30 20:38:19] Production.INFO: ProcessCDR(1,14366154,1,1,2) [2025-01-30 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366154', 'tblTempUsageDetail_20' ) start [2025-01-30 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366154', 'tblTempUsageDetail_20' ) end [2025-01-30 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:38:22] Production.INFO: ==32742== Releasing lock... [2025-01-30 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:38:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:39:05 [end_date_ymd] => 2025-01-30 20:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:39:05' and `end` < '2025-01-30 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-30 20:39:18] Production.INFO: count ==1817 [2025-01-30 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:39:05 - End Time 2025-01-30 20:39:05 [2025-01-30 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366159', 'tblTempUsageDetail_20' ) start [2025-01-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366159', 'tblTempUsageDetail_20' ) end [2025-01-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366159', 'tblTempVendorCDR_20' ) start [2025-01-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366159', 'tblTempVendorCDR_20' ) end [2025-01-30 20:39:18] Production.INFO: ProcessCDR(1,14366159,1,1,2) [2025-01-30 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366159', 'tblTempUsageDetail_20' ) start [2025-01-30 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366159', 'tblTempUsageDetail_20' ) end [2025-01-30 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:39:22] Production.INFO: ==399== Releasing lock... [2025-01-30 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:39:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:40:06 [end_date_ymd] => 2025-01-30 20:40:06 [RateCDR] => 1 ) [2025-01-30 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:40:06' and `end` < '2025-01-30 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:40:19] Production.INFO: count ==1818 [2025-01-30 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:40:06 - End Time 2025-01-30 20:40:06 [2025-01-30 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366164', 'tblTempUsageDetail_20' ) start [2025-01-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366164', 'tblTempUsageDetail_20' ) end [2025-01-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366164', 'tblTempVendorCDR_20' ) start [2025-01-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366164', 'tblTempVendorCDR_20' ) end [2025-01-30 20:40:19] Production.INFO: ProcessCDR(1,14366164,1,1,2) [2025-01-30 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366164', 'tblTempUsageDetail_20' ) start [2025-01-30 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366164', 'tblTempUsageDetail_20' ) end [2025-01-30 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:40:22] Production.INFO: ==475== Releasing lock... [2025-01-30 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:40:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-30 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:41:05 [end_date_ymd] => 2025-01-30 20:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:41:05' and `end` < '2025-01-30 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-30 20:41:18] Production.INFO: count ==1799 [2025-01-30 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:41:05 - End Time 2025-01-30 20:41:05 [2025-01-30 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366170', 'tblTempUsageDetail_20' ) start [2025-01-30 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366170', 'tblTempUsageDetail_20' ) end [2025-01-30 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366170', 'tblTempVendorCDR_20' ) start [2025-01-30 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366170', 'tblTempVendorCDR_20' ) end [2025-01-30 20:41:18] Production.INFO: ProcessCDR(1,14366170,1,1,2) [2025-01-30 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366170', 'tblTempUsageDetail_20' ) start [2025-01-30 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366170', 'tblTempUsageDetail_20' ) end [2025-01-30 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:41:21] Production.INFO: ==555== Releasing lock... [2025-01-30 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:41:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-30 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:42:05 [end_date_ymd] => 2025-01-30 20:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:42:05' and `end` < '2025-01-30 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-30 20:42:18] Production.INFO: count ==1793 [2025-01-30 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:42:05 - End Time 2025-01-30 20:42:05 [2025-01-30 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366175', 'tblTempUsageDetail_20' ) start [2025-01-30 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366175', 'tblTempUsageDetail_20' ) end [2025-01-30 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366175', 'tblTempVendorCDR_20' ) start [2025-01-30 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366175', 'tblTempVendorCDR_20' ) end [2025-01-30 20:42:19] Production.INFO: ProcessCDR(1,14366175,1,1,2) [2025-01-30 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366175', 'tblTempUsageDetail_20' ) start [2025-01-30 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366175', 'tblTempUsageDetail_20' ) end [2025-01-30 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:42:22] Production.INFO: ==643== Releasing lock... [2025-01-30 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:42:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-30 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:43:05 [end_date_ymd] => 2025-01-30 20:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:43:05' and `end` < '2025-01-30 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-30 20:43:18] Production.INFO: count ==1783 [2025-01-30 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:43:05 - End Time 2025-01-30 20:43:05 [2025-01-30 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366180', 'tblTempUsageDetail_20' ) start [2025-01-30 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366180', 'tblTempUsageDetail_20' ) end [2025-01-30 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366180', 'tblTempVendorCDR_20' ) start [2025-01-30 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366180', 'tblTempVendorCDR_20' ) end [2025-01-30 20:43:18] Production.INFO: ProcessCDR(1,14366180,1,1,2) [2025-01-30 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366180', 'tblTempUsageDetail_20' ) start [2025-01-30 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366180', 'tblTempUsageDetail_20' ) end [2025-01-30 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:43:23] Production.INFO: ==739== Releasing lock... [2025-01-30 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:43:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-30 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:44:05 [end_date_ymd] => 2025-01-30 20:44:05 [RateCDR] => 1 ) [2025-01-30 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:44:05' and `end` < '2025-01-30 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:44:19] Production.INFO: count ==1772 [2025-01-30 20:44:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:44:05 - End Time 2025-01-30 20:44:05 [2025-01-30 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366185', 'tblTempUsageDetail_20' ) start [2025-01-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366185', 'tblTempUsageDetail_20' ) end [2025-01-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366185', 'tblTempVendorCDR_20' ) start [2025-01-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366185', 'tblTempVendorCDR_20' ) end [2025-01-30 20:44:19] Production.INFO: ProcessCDR(1,14366185,1,1,2) [2025-01-30 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366185', 'tblTempUsageDetail_20' ) start [2025-01-30 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366185', 'tblTempUsageDetail_20' ) end [2025-01-30 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:44:23] Production.INFO: ==817== Releasing lock... [2025-01-30 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:44:23] Production.INFO: 41 MB #Memory Used# [2025-01-30 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:45:05 [end_date_ymd] => 2025-01-30 20:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:45:05' and `end` < '2025-01-30 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-30 20:45:18] Production.INFO: count ==1768 [2025-01-30 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:45:05 - End Time 2025-01-30 20:45:05 [2025-01-30 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366190', 'tblTempUsageDetail_20' ) start [2025-01-30 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366190', 'tblTempUsageDetail_20' ) end [2025-01-30 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366190', 'tblTempVendorCDR_20' ) start [2025-01-30 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366190', 'tblTempVendorCDR_20' ) end [2025-01-30 20:45:18] Production.INFO: ProcessCDR(1,14366190,1,1,2) [2025-01-30 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366190', 'tblTempUsageDetail_20' ) start [2025-01-30 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366190', 'tblTempUsageDetail_20' ) end [2025-01-30 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:45:21] Production.INFO: ==893== Releasing lock... [2025-01-30 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:45:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:46:05 [end_date_ymd] => 2025-01-30 20:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:46:05' and `end` < '2025-01-30 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-30 20:46:18] Production.INFO: count ==1767 [2025-01-30 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:46:05 - End Time 2025-01-30 20:46:05 [2025-01-30 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366195', 'tblTempUsageDetail_20' ) start [2025-01-30 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366195', 'tblTempUsageDetail_20' ) end [2025-01-30 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366195', 'tblTempVendorCDR_20' ) start [2025-01-30 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366195', 'tblTempVendorCDR_20' ) end [2025-01-30 20:46:19] Production.INFO: ProcessCDR(1,14366195,1,1,2) [2025-01-30 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366195', 'tblTempUsageDetail_20' ) start [2025-01-30 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366195', 'tblTempUsageDetail_20' ) end [2025-01-30 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:46:23] Production.INFO: ==972== Releasing lock... [2025-01-30 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:46:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:47:06 [end_date_ymd] => 2025-01-30 20:47:06 [RateCDR] => 1 ) [2025-01-30 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:47:06' and `end` < '2025-01-30 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:47:20] Production.INFO: count ==1762 [2025-01-30 20:47:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:47:06 - End Time 2025-01-30 20:47:06 [2025-01-30 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366200', 'tblTempUsageDetail_20' ) start [2025-01-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366200', 'tblTempUsageDetail_20' ) end [2025-01-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366200', 'tblTempVendorCDR_20' ) start [2025-01-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366200', 'tblTempVendorCDR_20' ) end [2025-01-30 20:47:20] Production.INFO: ProcessCDR(1,14366200,1,1,2) [2025-01-30 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366200', 'tblTempUsageDetail_20' ) start [2025-01-30 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366200', 'tblTempUsageDetail_20' ) end [2025-01-30 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:47:23] Production.INFO: ==1047== Releasing lock... [2025-01-30 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:47:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:48:05 [end_date_ymd] => 2025-01-30 20:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:48:05' and `end` < '2025-01-30 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-30 20:48:19] Production.INFO: count ==1752 [2025-01-30 20:48:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:48:05 - End Time 2025-01-30 20:48:05 [2025-01-30 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366205', 'tblTempUsageDetail_20' ) start [2025-01-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366205', 'tblTempUsageDetail_20' ) end [2025-01-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366205', 'tblTempVendorCDR_20' ) start [2025-01-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366205', 'tblTempVendorCDR_20' ) end [2025-01-30 20:48:20] Production.INFO: ProcessCDR(1,14366205,1,1,2) [2025-01-30 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366205', 'tblTempUsageDetail_20' ) start [2025-01-30 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366205', 'tblTempUsageDetail_20' ) end [2025-01-30 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:48:23] Production.INFO: ==1169== Releasing lock... [2025-01-30 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-30 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:49:05 [end_date_ymd] => 2025-01-30 20:49:05 [RateCDR] => 1 ) [2025-01-30 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:49:05' and `end` < '2025-01-30 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:49:18] Production.INFO: count ==1754 [2025-01-30 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:49:05 - End Time 2025-01-30 20:49:05 [2025-01-30 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366210', 'tblTempUsageDetail_20' ) start [2025-01-30 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366210', 'tblTempUsageDetail_20' ) end [2025-01-30 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366210', 'tblTempVendorCDR_20' ) start [2025-01-30 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366210', 'tblTempVendorCDR_20' ) end [2025-01-30 20:49:18] Production.INFO: ProcessCDR(1,14366210,1,1,2) [2025-01-30 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366210', 'tblTempUsageDetail_20' ) start [2025-01-30 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366210', 'tblTempUsageDetail_20' ) end [2025-01-30 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:49:22] Production.INFO: ==1260== Releasing lock... [2025-01-30 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:49:22] Production.INFO: 41 MB #Memory Used# [2025-01-30 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:50:06 [end_date_ymd] => 2025-01-30 20:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 17:50:06' and `end` < '2025-01-30 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-30 20:50:20] Production.INFO: count ==1753 [2025-01-30 20:50:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:50:06 - End Time 2025-01-30 20:50:06 [2025-01-30 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366215', 'tblTempUsageDetail_20' ) start [2025-01-30 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366215', 'tblTempUsageDetail_20' ) end [2025-01-30 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366215', 'tblTempVendorCDR_20' ) start [2025-01-30 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366215', 'tblTempVendorCDR_20' ) end [2025-01-30 20:50:20] Production.INFO: ProcessCDR(1,14366215,1,1,2) [2025-01-30 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366215', 'tblTempUsageDetail_20' ) start [2025-01-30 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366215', 'tblTempUsageDetail_20' ) end [2025-01-30 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:50:23] Production.INFO: ==1333== Releasing lock... [2025-01-30 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:50:23] Production.INFO: 41 MB #Memory Used# [2025-01-30 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:51:06 [end_date_ymd] => 2025-01-30 20:51:06 [RateCDR] => 1 ) [2025-01-30 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:51:06' and `end` < '2025-01-30 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:51:19] Production.INFO: count ==1731 [2025-01-30 20:51:20] Production.ERROR: pbx CDR StartTime 2025-01-30 17:51:06 - End Time 2025-01-30 20:51:06 [2025-01-30 20:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366221', 'tblTempUsageDetail_20' ) start [2025-01-30 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366221', 'tblTempUsageDetail_20' ) end [2025-01-30 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366221', 'tblTempVendorCDR_20' ) start [2025-01-30 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366221', 'tblTempVendorCDR_20' ) end [2025-01-30 20:51:20] Production.INFO: ProcessCDR(1,14366221,1,1,2) [2025-01-30 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366221', 'tblTempUsageDetail_20' ) start [2025-01-30 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366221', 'tblTempUsageDetail_20' ) end [2025-01-30 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:51:23] Production.INFO: ==1415== Releasing lock... [2025-01-30 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-30 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:52:05 [end_date_ymd] => 2025-01-30 20:52:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:52:05' and `end` < '2025-01-30 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-30 20:52:18] Production.INFO: count ==1731 [2025-01-30 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:52:05 - End Time 2025-01-30 20:52:05 [2025-01-30 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366226', 'tblTempUsageDetail_20' ) start [2025-01-30 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366226', 'tblTempUsageDetail_20' ) end [2025-01-30 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366226', 'tblTempVendorCDR_20' ) start [2025-01-30 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366226', 'tblTempVendorCDR_20' ) end [2025-01-30 20:52:19] Production.INFO: ProcessCDR(1,14366226,1,1,2) [2025-01-30 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366226', 'tblTempUsageDetail_20' ) start [2025-01-30 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366226', 'tblTempUsageDetail_20' ) end [2025-01-30 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:52:23] Production.INFO: ==1491== Releasing lock... [2025-01-30 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:52:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-30 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:53:05 [end_date_ymd] => 2025-01-30 20:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:53:05' and `end` < '2025-01-30 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-30 20:53:19] Production.INFO: count ==1722 [2025-01-30 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:53:05 - End Time 2025-01-30 20:53:05 [2025-01-30 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366231', 'tblTempUsageDetail_20' ) start [2025-01-30 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366231', 'tblTempUsageDetail_20' ) end [2025-01-30 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366231', 'tblTempVendorCDR_20' ) start [2025-01-30 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366231', 'tblTempVendorCDR_20' ) end [2025-01-30 20:53:19] Production.INFO: ProcessCDR(1,14366231,1,1,2) [2025-01-30 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366231', 'tblTempUsageDetail_20' ) start [2025-01-30 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366231', 'tblTempUsageDetail_20' ) end [2025-01-30 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:53:23] Production.INFO: ==1602== Releasing lock... [2025-01-30 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-30 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:54:05 [end_date_ymd] => 2025-01-30 20:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:54:05' and `end` < '2025-01-30 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-30 20:54:19] Production.INFO: count ==1711 [2025-01-30 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:54:05 - End Time 2025-01-30 20:54:05 [2025-01-30 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366236', 'tblTempUsageDetail_20' ) start [2025-01-30 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366236', 'tblTempUsageDetail_20' ) end [2025-01-30 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366236', 'tblTempVendorCDR_20' ) start [2025-01-30 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366236', 'tblTempVendorCDR_20' ) end [2025-01-30 20:54:19] Production.INFO: ProcessCDR(1,14366236,1,1,2) [2025-01-30 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366236', 'tblTempUsageDetail_20' ) start [2025-01-30 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366236', 'tblTempUsageDetail_20' ) end [2025-01-30 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:54:22] Production.INFO: ==1677== Releasing lock... [2025-01-30 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:54:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-30 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:55:05 [end_date_ymd] => 2025-01-30 20:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:55:05' and `end` < '2025-01-30 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-30 20:55:18] Production.INFO: count ==1690 [2025-01-30 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:55:05 - End Time 2025-01-30 20:55:05 [2025-01-30 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366241', 'tblTempUsageDetail_20' ) start [2025-01-30 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366241', 'tblTempUsageDetail_20' ) end [2025-01-30 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366241', 'tblTempVendorCDR_20' ) start [2025-01-30 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366241', 'tblTempVendorCDR_20' ) end [2025-01-30 20:55:18] Production.INFO: ProcessCDR(1,14366241,1,1,2) [2025-01-30 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366241', 'tblTempUsageDetail_20' ) start [2025-01-30 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366241', 'tblTempUsageDetail_20' ) end [2025-01-30 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:55:22] Production.INFO: ==1751== Releasing lock... [2025-01-30 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:55:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:56:06 [end_date_ymd] => 2025-01-30 20:56:06 [RateCDR] => 1 ) [2025-01-30 20: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-30 17:56:06' and `end` < '2025-01-30 20: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-30 20:56:19] Production.INFO: count ==1677 [2025-01-30 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:56:06 - End Time 2025-01-30 20:56:06 [2025-01-30 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366246', 'tblTempUsageDetail_20' ) start [2025-01-30 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366246', 'tblTempUsageDetail_20' ) end [2025-01-30 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366246', 'tblTempVendorCDR_20' ) start [2025-01-30 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366246', 'tblTempVendorCDR_20' ) end [2025-01-30 20:56:19] Production.INFO: ProcessCDR(1,14366246,1,1,2) [2025-01-30 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366246', 'tblTempUsageDetail_20' ) start [2025-01-30 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366246', 'tblTempUsageDetail_20' ) end [2025-01-30 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:56:22] Production.INFO: ==1828== Releasing lock... [2025-01-30 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:56:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:57:05 [end_date_ymd] => 2025-01-30 20:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 17:57:05' and `end` < '2025-01-30 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-30 20:57:18] Production.INFO: count ==1662 [2025-01-30 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:57:05 - End Time 2025-01-30 20:57:05 [2025-01-30 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366251', 'tblTempUsageDetail_20' ) start [2025-01-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366251', 'tblTempUsageDetail_20' ) end [2025-01-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366251', 'tblTempVendorCDR_20' ) start [2025-01-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366251', 'tblTempVendorCDR_20' ) end [2025-01-30 20:57:18] Production.INFO: ProcessCDR(1,14366251,1,1,2) [2025-01-30 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366251', 'tblTempUsageDetail_20' ) start [2025-01-30 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366251', 'tblTempUsageDetail_20' ) end [2025-01-30 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:57:22] Production.INFO: ==1902== Releasing lock... [2025-01-30 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:57:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:58:06 [end_date_ymd] => 2025-01-30 20:58:06 [RateCDR] => 1 ) [2025-01-30 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:58:06' and `end` < '2025-01-30 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:58:19] Production.INFO: count ==1647 [2025-01-30 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-30 17:58:06 - End Time 2025-01-30 20:58:06 [2025-01-30 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366256', 'tblTempUsageDetail_20' ) start [2025-01-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366256', 'tblTempUsageDetail_20' ) end [2025-01-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366256', 'tblTempVendorCDR_20' ) start [2025-01-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366256', 'tblTempVendorCDR_20' ) end [2025-01-30 20:58:19] Production.INFO: ProcessCDR(1,14366256,1,1,2) [2025-01-30 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366256', 'tblTempUsageDetail_20' ) start [2025-01-30 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366256', 'tblTempUsageDetail_20' ) end [2025-01-30 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:58:22] Production.INFO: ==1976== Releasing lock... [2025-01-30 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:58:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-30 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 17:59:05 [end_date_ymd] => 2025-01-30 20:59:05 [RateCDR] => 1 ) [2025-01-30 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 17:59:05' and `end` < '2025-01-30 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 20:59:18] Production.INFO: count ==1627 [2025-01-30 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-30 17:59:05 - End Time 2025-01-30 20:59:05 [2025-01-30 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366261', 'tblTempUsageDetail_20' ) start [2025-01-30 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366261', 'tblTempUsageDetail_20' ) end [2025-01-30 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366261', 'tblTempVendorCDR_20' ) start [2025-01-30 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366261', 'tblTempVendorCDR_20' ) end [2025-01-30 20:59:18] Production.INFO: ProcessCDR(1,14366261,1,1,2) [2025-01-30 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366261', 'tblTempUsageDetail_20' ) start [2025-01-30 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366261', 'tblTempUsageDetail_20' ) end [2025-01-30 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 20:59:21] Production.INFO: ==2055== Releasing lock... [2025-01-30 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 20:59:21] Production.INFO: 40 MB #Memory Used# [2025-01-30 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:00:06 [end_date_ymd] => 2025-01-30 21:00:06 [RateCDR] => 1 ) [2025-01-30 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-30 18:00:06' and `end` < '2025-01-30 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-30 21:00:19] Production.INFO: count ==1623 [2025-01-30 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:00:06 - End Time 2025-01-30 21:00:06 [2025-01-30 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366267', 'tblTempUsageDetail_20' ) start [2025-01-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366267', 'tblTempUsageDetail_20' ) end [2025-01-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366267', 'tblTempVendorCDR_20' ) start [2025-01-30 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366267', 'tblTempVendorCDR_20' ) end [2025-01-30 21:00:20] Production.INFO: ProcessCDR(1,14366267,1,1,2) [2025-01-30 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366267', 'tblTempUsageDetail_20' ) start [2025-01-30 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366267', 'tblTempUsageDetail_20' ) end [2025-01-30 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:00:23] Production.INFO: ==2131== Releasing lock... [2025-01-30 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:00:23] Production.INFO: 40 MB #Memory Used# [2025-01-30 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:01:05 [end_date_ymd] => 2025-01-30 21:01:05 [RateCDR] => 1 ) [2025-01-30 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:01:05' and `end` < '2025-01-30 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:01:18] Production.INFO: count ==1596 [2025-01-30 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:01:05 - End Time 2025-01-30 21:01:05 [2025-01-30 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366272', 'tblTempUsageDetail_20' ) start [2025-01-30 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366272', 'tblTempUsageDetail_20' ) end [2025-01-30 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366272', 'tblTempVendorCDR_20' ) start [2025-01-30 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366272', 'tblTempVendorCDR_20' ) end [2025-01-30 21:01:18] Production.INFO: ProcessCDR(1,14366272,1,1,2) [2025-01-30 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366272', 'tblTempUsageDetail_20' ) start [2025-01-30 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366272', 'tblTempUsageDetail_20' ) end [2025-01-30 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:01:21] Production.INFO: ==2230== Releasing lock... [2025-01-30 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:01:21] Production.INFO: 40 MB #Memory Used# [2025-01-30 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:02:05 [end_date_ymd] => 2025-01-30 21:02:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:02:05' and `end` < '2025-01-30 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-30 21:02:18] Production.INFO: count ==1595 [2025-01-30 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:02:05 - End Time 2025-01-30 21:02:05 [2025-01-30 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366277', 'tblTempUsageDetail_20' ) start [2025-01-30 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366277', 'tblTempUsageDetail_20' ) end [2025-01-30 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366277', 'tblTempVendorCDR_20' ) start [2025-01-30 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366277', 'tblTempVendorCDR_20' ) end [2025-01-30 21:02:19] Production.INFO: ProcessCDR(1,14366277,1,1,2) [2025-01-30 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366277', 'tblTempUsageDetail_20' ) start [2025-01-30 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366277', 'tblTempUsageDetail_20' ) end [2025-01-30 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:02:22] Production.INFO: ==2306== Releasing lock... [2025-01-30 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-30 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:03:05 [end_date_ymd] => 2025-01-30 21:03:05 [RateCDR] => 1 ) [2025-01-30 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:03:05' and `end` < '2025-01-30 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:03:19] Production.INFO: count ==1587 [2025-01-30 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:03:05 - End Time 2025-01-30 21:03:05 [2025-01-30 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366282', 'tblTempUsageDetail_20' ) start [2025-01-30 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366282', 'tblTempUsageDetail_20' ) end [2025-01-30 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366282', 'tblTempVendorCDR_20' ) start [2025-01-30 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366282', 'tblTempVendorCDR_20' ) end [2025-01-30 21:03:19] Production.INFO: ProcessCDR(1,14366282,1,1,2) [2025-01-30 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366282', 'tblTempUsageDetail_20' ) start [2025-01-30 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366282', 'tblTempUsageDetail_20' ) end [2025-01-30 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:03:22] Production.INFO: ==2421== Releasing lock... [2025-01-30 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-30 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:04:06 [end_date_ymd] => 2025-01-30 21:04:06 [RateCDR] => 1 ) [2025-01-30 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:04:06' and `end` < '2025-01-30 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:04:19] Production.INFO: count ==1571 [2025-01-30 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:04:06 - End Time 2025-01-30 21:04:06 [2025-01-30 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366287', 'tblTempUsageDetail_20' ) start [2025-01-30 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366287', 'tblTempUsageDetail_20' ) end [2025-01-30 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366287', 'tblTempVendorCDR_20' ) start [2025-01-30 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366287', 'tblTempVendorCDR_20' ) end [2025-01-30 21:04:19] Production.INFO: ProcessCDR(1,14366287,1,1,2) [2025-01-30 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366287', 'tblTempUsageDetail_20' ) start [2025-01-30 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366287', 'tblTempUsageDetail_20' ) end [2025-01-30 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:04:22] Production.INFO: ==2494== Releasing lock... [2025-01-30 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:05:05 [end_date_ymd] => 2025-01-30 21:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:05:05' and `end` < '2025-01-30 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-30 21:05:18] Production.INFO: count ==1573 [2025-01-30 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:05:05 - End Time 2025-01-30 21:05:05 [2025-01-30 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366292', 'tblTempUsageDetail_20' ) start [2025-01-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366292', 'tblTempUsageDetail_20' ) end [2025-01-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366292', 'tblTempVendorCDR_20' ) start [2025-01-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366292', 'tblTempVendorCDR_20' ) end [2025-01-30 21:05:18] Production.INFO: ProcessCDR(1,14366292,1,1,2) [2025-01-30 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366292', 'tblTempUsageDetail_20' ) start [2025-01-30 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366292', 'tblTempUsageDetail_20' ) end [2025-01-30 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:05:21] Production.INFO: ==2597== Releasing lock... [2025-01-30 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:05:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:06:05 [end_date_ymd] => 2025-01-30 21:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:06:05' and `end` < '2025-01-30 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-30 21:06:18] Production.INFO: count ==1576 [2025-01-30 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:06:05 - End Time 2025-01-30 21:06:05 [2025-01-30 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366297', 'tblTempUsageDetail_20' ) start [2025-01-30 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366297', 'tblTempUsageDetail_20' ) end [2025-01-30 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366297', 'tblTempVendorCDR_20' ) start [2025-01-30 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366297', 'tblTempVendorCDR_20' ) end [2025-01-30 21:06:19] Production.INFO: ProcessCDR(1,14366297,1,1,2) [2025-01-30 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366297', 'tblTempUsageDetail_20' ) start [2025-01-30 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366297', 'tblTempUsageDetail_20' ) end [2025-01-30 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:06:23] Production.INFO: ==2691== Releasing lock... [2025-01-30 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:07:05 [end_date_ymd] => 2025-01-30 21:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:07:05' and `end` < '2025-01-30 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-30 21:07:18] Production.INFO: count ==1575 [2025-01-30 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:07:05 - End Time 2025-01-30 21:07:05 [2025-01-30 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366302', 'tblTempUsageDetail_20' ) start [2025-01-30 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366302', 'tblTempUsageDetail_20' ) end [2025-01-30 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366302', 'tblTempVendorCDR_20' ) start [2025-01-30 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366302', 'tblTempVendorCDR_20' ) end [2025-01-30 21:07:18] Production.INFO: ProcessCDR(1,14366302,1,1,2) [2025-01-30 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366302', 'tblTempUsageDetail_20' ) start [2025-01-30 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366302', 'tblTempUsageDetail_20' ) end [2025-01-30 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:07:21] Production.INFO: ==2781== Releasing lock... [2025-01-30 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:07:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:08:05 [end_date_ymd] => 2025-01-30 21:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:08:05' and `end` < '2025-01-30 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-30 21:08:18] Production.INFO: count ==1574 [2025-01-30 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:08:05 - End Time 2025-01-30 21:08:05 [2025-01-30 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366307', 'tblTempUsageDetail_20' ) start [2025-01-30 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366307', 'tblTempUsageDetail_20' ) end [2025-01-30 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366307', 'tblTempVendorCDR_20' ) start [2025-01-30 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366307', 'tblTempVendorCDR_20' ) end [2025-01-30 21:08:18] Production.INFO: ProcessCDR(1,14366307,1,1,2) [2025-01-30 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366307', 'tblTempUsageDetail_20' ) start [2025-01-30 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366307', 'tblTempUsageDetail_20' ) end [2025-01-30 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:08:22] Production.INFO: ==2854== Releasing lock... [2025-01-30 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:09:05 [end_date_ymd] => 2025-01-30 21:09:05 [RateCDR] => 1 ) [2025-01-30 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:09:05' and `end` < '2025-01-30 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:09:18] Production.INFO: count ==1577 [2025-01-30 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:09:05 - End Time 2025-01-30 21:09:05 [2025-01-30 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366312', 'tblTempUsageDetail_20' ) start [2025-01-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366312', 'tblTempUsageDetail_20' ) end [2025-01-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366312', 'tblTempVendorCDR_20' ) start [2025-01-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366312', 'tblTempVendorCDR_20' ) end [2025-01-30 21:09:18] Production.INFO: ProcessCDR(1,14366312,1,1,2) [2025-01-30 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366312', 'tblTempUsageDetail_20' ) start [2025-01-30 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366312', 'tblTempUsageDetail_20' ) end [2025-01-30 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:09:21] Production.INFO: ==2935== Releasing lock... [2025-01-30 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:09:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:10:06 [end_date_ymd] => 2025-01-30 21:10:06 [RateCDR] => 1 ) [2025-01-30 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:10:06' and `end` < '2025-01-30 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:10:19] Production.INFO: count ==1574 [2025-01-30 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:10:06 - End Time 2025-01-30 21:10:06 [2025-01-30 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366318', 'tblTempUsageDetail_20' ) start [2025-01-30 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366318', 'tblTempUsageDetail_20' ) end [2025-01-30 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366318', 'tblTempVendorCDR_20' ) start [2025-01-30 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366318', 'tblTempVendorCDR_20' ) end [2025-01-30 21:10:19] Production.INFO: ProcessCDR(1,14366318,1,1,2) [2025-01-30 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366318', 'tblTempUsageDetail_20' ) start [2025-01-30 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366318', 'tblTempUsageDetail_20' ) end [2025-01-30 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:10:24] Production.INFO: ==3020== Releasing lock... [2025-01-30 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:10:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-30 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:11:05 [end_date_ymd] => 2025-01-30 21:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:11:05' and `end` < '2025-01-30 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-30 21:11:19] Production.INFO: count ==1527 [2025-01-30 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:11:05 - End Time 2025-01-30 21:11:05 [2025-01-30 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366323', 'tblTempUsageDetail_20' ) start [2025-01-30 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366323', 'tblTempUsageDetail_20' ) end [2025-01-30 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366323', 'tblTempVendorCDR_20' ) start [2025-01-30 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366323', 'tblTempVendorCDR_20' ) end [2025-01-30 21:11:19] Production.INFO: ProcessCDR(1,14366323,1,1,2) [2025-01-30 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366323', 'tblTempUsageDetail_20' ) start [2025-01-30 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366323', 'tblTempUsageDetail_20' ) end [2025-01-30 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:11:24] Production.INFO: ==3104== Releasing lock... [2025-01-30 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:11:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-30 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:12:06 [end_date_ymd] => 2025-01-30 21:12:06 [RateCDR] => 1 ) [2025-01-30 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:12:06' and `end` < '2025-01-30 21: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-30 21:12:19] Production.INFO: count ==1525 [2025-01-30 21:12:20] Production.ERROR: pbx CDR StartTime 2025-01-30 18:12:06 - End Time 2025-01-30 21:12:06 [2025-01-30 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366328', 'tblTempUsageDetail_20' ) start [2025-01-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366328', 'tblTempUsageDetail_20' ) end [2025-01-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366328', 'tblTempVendorCDR_20' ) start [2025-01-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366328', 'tblTempVendorCDR_20' ) end [2025-01-30 21:12:20] Production.INFO: ProcessCDR(1,14366328,1,1,2) [2025-01-30 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366328', 'tblTempUsageDetail_20' ) start [2025-01-30 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366328', 'tblTempUsageDetail_20' ) end [2025-01-30 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:12:23] Production.INFO: ==3183== Releasing lock... [2025-01-30 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:12:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-30 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:13:06 [end_date_ymd] => 2025-01-30 21:13:06 [RateCDR] => 1 ) [2025-01-30 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:13:06' and `end` < '2025-01-30 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:13:19] Production.INFO: count ==1517 [2025-01-30 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:13:06 - End Time 2025-01-30 21:13:06 [2025-01-30 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366333', 'tblTempUsageDetail_20' ) start [2025-01-30 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366333', 'tblTempUsageDetail_20' ) end [2025-01-30 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366333', 'tblTempVendorCDR_20' ) start [2025-01-30 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366333', 'tblTempVendorCDR_20' ) end [2025-01-30 21:13:19] Production.INFO: ProcessCDR(1,14366333,1,1,2) [2025-01-30 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366333', 'tblTempUsageDetail_20' ) start [2025-01-30 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366333', 'tblTempUsageDetail_20' ) end [2025-01-30 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:13:22] Production.INFO: ==3261== Releasing lock... [2025-01-30 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-30 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:14:05 [end_date_ymd] => 2025-01-30 21:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:14:05' and `end` < '2025-01-30 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-30 21:14:19] Production.INFO: count ==1517 [2025-01-30 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:14:05 - End Time 2025-01-30 21:14:05 [2025-01-30 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366338', 'tblTempUsageDetail_20' ) start [2025-01-30 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366338', 'tblTempUsageDetail_20' ) end [2025-01-30 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366338', 'tblTempVendorCDR_20' ) start [2025-01-30 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366338', 'tblTempVendorCDR_20' ) end [2025-01-30 21:14:19] Production.INFO: ProcessCDR(1,14366338,1,1,2) [2025-01-30 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366338', 'tblTempUsageDetail_20' ) start [2025-01-30 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366338', 'tblTempUsageDetail_20' ) end [2025-01-30 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:14:24] Production.INFO: ==3344== Releasing lock... [2025-01-30 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:14:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-30 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:15:06 [end_date_ymd] => 2025-01-30 21:15:06 [RateCDR] => 1 ) [2025-01-30 21: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-30 18:15:06' and `end` < '2025-01-30 21: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-30 21:15:19] Production.INFO: count ==1503 [2025-01-30 21:15:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:15:06 - End Time 2025-01-30 21:15:06 [2025-01-30 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366343', 'tblTempUsageDetail_20' ) start [2025-01-30 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366343', 'tblTempUsageDetail_20' ) end [2025-01-30 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366343', 'tblTempVendorCDR_20' ) start [2025-01-30 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366343', 'tblTempVendorCDR_20' ) end [2025-01-30 21:15:19] Production.INFO: ProcessCDR(1,14366343,1,1,2) [2025-01-30 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366343', 'tblTempUsageDetail_20' ) start [2025-01-30 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366343', 'tblTempUsageDetail_20' ) end [2025-01-30 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:15:22] Production.INFO: ==3425== Releasing lock... [2025-01-30 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:15:22] Production.INFO: 39 MB #Memory Used# [2025-01-30 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:16:05 [end_date_ymd] => 2025-01-30 21:16:05 [RateCDR] => 1 ) [2025-01-30 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:16:05' and `end` < '2025-01-30 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:16:18] Production.INFO: count ==1501 [2025-01-30 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:16:05 - End Time 2025-01-30 21:16:05 [2025-01-30 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366348', 'tblTempUsageDetail_20' ) start [2025-01-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366348', 'tblTempUsageDetail_20' ) end [2025-01-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366348', 'tblTempVendorCDR_20' ) start [2025-01-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366348', 'tblTempVendorCDR_20' ) end [2025-01-30 21:16:18] Production.INFO: ProcessCDR(1,14366348,1,1,2) [2025-01-30 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366348', 'tblTempUsageDetail_20' ) start [2025-01-30 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366348', 'tblTempUsageDetail_20' ) end [2025-01-30 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:16:21] Production.INFO: ==3510== Releasing lock... [2025-01-30 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:16:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-30 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:17:05 [end_date_ymd] => 2025-01-30 21:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:17:05' and `end` < '2025-01-30 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-30 21:17:19] Production.INFO: count ==1501 [2025-01-30 21:17:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:17:05 - End Time 2025-01-30 21:17:05 [2025-01-30 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366353', 'tblTempUsageDetail_20' ) start [2025-01-30 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366353', 'tblTempUsageDetail_20' ) end [2025-01-30 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366353', 'tblTempVendorCDR_20' ) start [2025-01-30 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366353', 'tblTempVendorCDR_20' ) end [2025-01-30 21:17:19] Production.INFO: ProcessCDR(1,14366353,1,1,2) [2025-01-30 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366353', 'tblTempUsageDetail_20' ) start [2025-01-30 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366353', 'tblTempUsageDetail_20' ) end [2025-01-30 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:17:22] Production.INFO: ==3586== Releasing lock... [2025-01-30 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:17:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-30 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:18:05 [end_date_ymd] => 2025-01-30 21:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:18:05' and `end` < '2025-01-30 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-30 21:18:18] Production.INFO: count ==1500 [2025-01-30 21:18:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:18:05 - End Time 2025-01-30 21:18:05 [2025-01-30 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366358', 'tblTempUsageDetail_20' ) start [2025-01-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366358', 'tblTempUsageDetail_20' ) end [2025-01-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366358', 'tblTempVendorCDR_20' ) start [2025-01-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366358', 'tblTempVendorCDR_20' ) end [2025-01-30 21:18:19] Production.INFO: ProcessCDR(1,14366358,1,1,2) [2025-01-30 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366358', 'tblTempUsageDetail_20' ) start [2025-01-30 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366358', 'tblTempUsageDetail_20' ) end [2025-01-30 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:18:22] Production.INFO: ==3659== Releasing lock... [2025-01-30 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:18:22] Production.INFO: 39 MB #Memory Used# [2025-01-30 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:19:06 [end_date_ymd] => 2025-01-30 21:19:06 [RateCDR] => 1 ) [2025-01-30 21:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:19:06' and `end` < '2025-01-30 21:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:19:19] Production.INFO: count ==1499 [2025-01-30 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:19:06 - End Time 2025-01-30 21:19:06 [2025-01-30 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366363', 'tblTempUsageDetail_20' ) start [2025-01-30 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366363', 'tblTempUsageDetail_20' ) end [2025-01-30 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366363', 'tblTempVendorCDR_20' ) start [2025-01-30 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366363', 'tblTempVendorCDR_20' ) end [2025-01-30 21:19:19] Production.INFO: ProcessCDR(1,14366363,1,1,2) [2025-01-30 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366363', 'tblTempUsageDetail_20' ) start [2025-01-30 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366363', 'tblTempUsageDetail_20' ) end [2025-01-30 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:19:22] Production.INFO: ==3773== Releasing lock... [2025-01-30 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:19:22] Production.INFO: 39 MB #Memory Used# [2025-01-30 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:20:06 [end_date_ymd] => 2025-01-30 21:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 18:20:06' and `end` < '2025-01-30 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-30 21:20:19] Production.INFO: count ==1500 [2025-01-30 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:20:06 - End Time 2025-01-30 21:20:06 [2025-01-30 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366369', 'tblTempUsageDetail_20' ) start [2025-01-30 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366369', 'tblTempUsageDetail_20' ) end [2025-01-30 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366369', 'tblTempVendorCDR_20' ) start [2025-01-30 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366369', 'tblTempVendorCDR_20' ) end [2025-01-30 21:20:19] Production.INFO: ProcessCDR(1,14366369,1,1,2) [2025-01-30 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366369', 'tblTempUsageDetail_20' ) start [2025-01-30 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366369', 'tblTempUsageDetail_20' ) end [2025-01-30 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:20:22] Production.INFO: ==3851== Releasing lock... [2025-01-30 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:20:22] Production.INFO: 39 MB #Memory Used# [2025-01-30 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:21:05 [end_date_ymd] => 2025-01-30 21:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:21:05' and `end` < '2025-01-30 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-30 21:21:18] Production.INFO: count ==1491 [2025-01-30 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:21:05 - End Time 2025-01-30 21:21:05 [2025-01-30 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366374', 'tblTempUsageDetail_20' ) start [2025-01-30 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366374', 'tblTempUsageDetail_20' ) end [2025-01-30 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366374', 'tblTempVendorCDR_20' ) start [2025-01-30 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366374', 'tblTempVendorCDR_20' ) end [2025-01-30 21:21:19] Production.INFO: ProcessCDR(1,14366374,1,1,2) [2025-01-30 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366374', 'tblTempUsageDetail_20' ) start [2025-01-30 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366374', 'tblTempUsageDetail_20' ) end [2025-01-30 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:21:22] Production.INFO: ==3930== Releasing lock... [2025-01-30 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:21:22] Production.INFO: 39 MB #Memory Used# [2025-01-30 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:22:05 [end_date_ymd] => 2025-01-30 21:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:22:05' and `end` < '2025-01-30 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-30 21:22:18] Production.INFO: count ==1491 [2025-01-30 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:22:05 - End Time 2025-01-30 21:22:05 [2025-01-30 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366379', 'tblTempUsageDetail_20' ) start [2025-01-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366379', 'tblTempUsageDetail_20' ) end [2025-01-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366379', 'tblTempVendorCDR_20' ) start [2025-01-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366379', 'tblTempVendorCDR_20' ) end [2025-01-30 21:22:18] Production.INFO: ProcessCDR(1,14366379,1,1,2) [2025-01-30 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366379', 'tblTempUsageDetail_20' ) start [2025-01-30 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366379', 'tblTempUsageDetail_20' ) end [2025-01-30 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:22:21] Production.INFO: ==4003== Releasing lock... [2025-01-30 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:22:21] Production.INFO: 39 MB #Memory Used# [2025-01-30 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:23:05 [end_date_ymd] => 2025-01-30 21:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:23:05' and `end` < '2025-01-30 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-30 21:23:18] Production.INFO: count ==1473 [2025-01-30 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:23:05 - End Time 2025-01-30 21:23:05 [2025-01-30 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366384', 'tblTempUsageDetail_20' ) start [2025-01-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366384', 'tblTempUsageDetail_20' ) end [2025-01-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366384', 'tblTempVendorCDR_20' ) start [2025-01-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366384', 'tblTempVendorCDR_20' ) end [2025-01-30 21:23:18] Production.INFO: ProcessCDR(1,14366384,1,1,2) [2025-01-30 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366384', 'tblTempUsageDetail_20' ) start [2025-01-30 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366384', 'tblTempUsageDetail_20' ) end [2025-01-30 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:23:21] Production.INFO: ==4081== Releasing lock... [2025-01-30 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:23:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-30 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:24:06 [end_date_ymd] => 2025-01-30 21:24:06 [RateCDR] => 1 ) [2025-01-30 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:24:06' and `end` < '2025-01-30 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:24:19] Production.INFO: count ==1472 [2025-01-30 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:24:06 - End Time 2025-01-30 21:24:06 [2025-01-30 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366389', 'tblTempUsageDetail_20' ) start [2025-01-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366389', 'tblTempUsageDetail_20' ) end [2025-01-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366389', 'tblTempVendorCDR_20' ) start [2025-01-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366389', 'tblTempVendorCDR_20' ) end [2025-01-30 21:24:19] Production.INFO: ProcessCDR(1,14366389,1,1,2) [2025-01-30 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366389', 'tblTempUsageDetail_20' ) start [2025-01-30 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366389', 'tblTempUsageDetail_20' ) end [2025-01-30 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:24:22] Production.INFO: ==4155== Releasing lock... [2025-01-30 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:24:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-30 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:25:05 [end_date_ymd] => 2025-01-30 21:25:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:25:05' and `end` < '2025-01-30 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-30 21:25:18] Production.INFO: count ==1457 [2025-01-30 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:25:05 - End Time 2025-01-30 21:25:05 [2025-01-30 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366394', 'tblTempUsageDetail_20' ) start [2025-01-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366394', 'tblTempUsageDetail_20' ) end [2025-01-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366394', 'tblTempVendorCDR_20' ) start [2025-01-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366394', 'tblTempVendorCDR_20' ) end [2025-01-30 21:25:18] Production.INFO: ProcessCDR(1,14366394,1,1,2) [2025-01-30 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366394', 'tblTempUsageDetail_20' ) start [2025-01-30 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366394', 'tblTempUsageDetail_20' ) end [2025-01-30 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:25:22] Production.INFO: ==4229== Releasing lock... [2025-01-30 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:25:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-30 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:26:06 [end_date_ymd] => 2025-01-30 21:26:06 [RateCDR] => 1 ) [2025-01-30 21: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-30 18:26:06' and `end` < '2025-01-30 21: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-30 21:26:19] Production.INFO: count ==1435 [2025-01-30 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:26:06 - End Time 2025-01-30 21:26:06 [2025-01-30 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366399', 'tblTempUsageDetail_20' ) start [2025-01-30 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366399', 'tblTempUsageDetail_20' ) end [2025-01-30 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366399', 'tblTempVendorCDR_20' ) start [2025-01-30 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366399', 'tblTempVendorCDR_20' ) end [2025-01-30 21:26:19] Production.INFO: ProcessCDR(1,14366399,1,1,2) [2025-01-30 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366399', 'tblTempUsageDetail_20' ) start [2025-01-30 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366399', 'tblTempUsageDetail_20' ) end [2025-01-30 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:26:23] Production.INFO: ==4306== Releasing lock... [2025-01-30 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:26:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:27:05 [end_date_ymd] => 2025-01-30 21:27:05 [RateCDR] => 1 ) [2025-01-30 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:27:05' and `end` < '2025-01-30 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:27:19] Production.INFO: count ==1431 [2025-01-30 21:27:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:27:05 - End Time 2025-01-30 21:27:05 [2025-01-30 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366404', 'tblTempUsageDetail_20' ) start [2025-01-30 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366404', 'tblTempUsageDetail_20' ) end [2025-01-30 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366404', 'tblTempVendorCDR_20' ) start [2025-01-30 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366404', 'tblTempVendorCDR_20' ) end [2025-01-30 21:27:19] Production.INFO: ProcessCDR(1,14366404,1,1,2) [2025-01-30 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366404', 'tblTempUsageDetail_20' ) start [2025-01-30 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366404', 'tblTempUsageDetail_20' ) end [2025-01-30 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:27:23] Production.INFO: ==4376== Releasing lock... [2025-01-30 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:27:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:28:05 [end_date_ymd] => 2025-01-30 21:28:05 [RateCDR] => 1 ) [2025-01-30 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:28:05' and `end` < '2025-01-30 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:28:18] Production.INFO: count ==1430 [2025-01-30 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:28:05 - End Time 2025-01-30 21:28:05 [2025-01-30 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366409', 'tblTempUsageDetail_20' ) start [2025-01-30 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366409', 'tblTempUsageDetail_20' ) end [2025-01-30 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366409', 'tblTempVendorCDR_20' ) start [2025-01-30 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366409', 'tblTempVendorCDR_20' ) end [2025-01-30 21:28:18] Production.INFO: ProcessCDR(1,14366409,1,1,2) [2025-01-30 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366409', 'tblTempUsageDetail_20' ) start [2025-01-30 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366409', 'tblTempUsageDetail_20' ) end [2025-01-30 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:28:22] Production.INFO: ==4449== Releasing lock... [2025-01-30 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:28:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:29:05 [end_date_ymd] => 2025-01-30 21:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:29:05' and `end` < '2025-01-30 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-30 21:29:19] Production.INFO: count ==1427 [2025-01-30 21:29:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:29:05 - End Time 2025-01-30 21:29:05 [2025-01-30 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366414', 'tblTempUsageDetail_20' ) start [2025-01-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366414', 'tblTempUsageDetail_20' ) end [2025-01-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366414', 'tblTempVendorCDR_20' ) start [2025-01-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366414', 'tblTempVendorCDR_20' ) end [2025-01-30 21:29:19] Production.INFO: ProcessCDR(1,14366414,1,1,2) [2025-01-30 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366414', 'tblTempUsageDetail_20' ) start [2025-01-30 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366414', 'tblTempUsageDetail_20' ) end [2025-01-30 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:29:22] Production.INFO: ==4524== Releasing lock... [2025-01-30 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:29:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:30:06 [end_date_ymd] => 2025-01-30 21:30:06 [RateCDR] => 1 ) [2025-01-30 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:30:06' and `end` < '2025-01-30 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:30:19] Production.INFO: count ==1423 [2025-01-30 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:30:06 - End Time 2025-01-30 21:30:06 [2025-01-30 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366418', 'tblTempUsageDetail_20' ) start [2025-01-30 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366418', 'tblTempUsageDetail_20' ) end [2025-01-30 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366418', 'tblTempVendorCDR_20' ) start [2025-01-30 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366418', 'tblTempVendorCDR_20' ) end [2025-01-30 21:30:19] Production.INFO: ProcessCDR(1,14366418,1,1,2) [2025-01-30 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366418', 'tblTempUsageDetail_20' ) start [2025-01-30 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366418', 'tblTempUsageDetail_20' ) end [2025-01-30 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:30:22] Production.INFO: ==4611== Releasing lock... [2025-01-30 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-30 21:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:31:04 [end_date_ymd] => 2025-01-30 21:31:04 [RateCDR] => 1 ) [2025-01-30 21: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-30 18:31:04' and `end` < '2025-01-30 21:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:31:17] Production.INFO: count ==1349 [2025-01-30 21:31:17] Production.ERROR: pbx CDR StartTime 2025-01-30 18:31:04 - End Time 2025-01-30 21:31:04 [2025-01-30 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366425', 'tblTempUsageDetail_20' ) start [2025-01-30 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366425', 'tblTempUsageDetail_20' ) end [2025-01-30 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366425', 'tblTempVendorCDR_20' ) start [2025-01-30 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366425', 'tblTempVendorCDR_20' ) end [2025-01-30 21:31:18] Production.INFO: ProcessCDR(1,14366425,1,1,2) [2025-01-30 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366425', 'tblTempUsageDetail_20' ) start [2025-01-30 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366425', 'tblTempUsageDetail_20' ) end [2025-01-30 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:31:21] Production.INFO: ==4696== Releasing lock... [2025-01-30 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:31:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-30 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:32:05 [end_date_ymd] => 2025-01-30 21:32:05 [RateCDR] => 1 ) [2025-01-30 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:32:05' and `end` < '2025-01-30 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:32:18] Production.INFO: count ==1348 [2025-01-30 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:32:05 - End Time 2025-01-30 21:32:05 [2025-01-30 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366430', 'tblTempUsageDetail_20' ) start [2025-01-30 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366430', 'tblTempUsageDetail_20' ) end [2025-01-30 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366430', 'tblTempVendorCDR_20' ) start [2025-01-30 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366430', 'tblTempVendorCDR_20' ) end [2025-01-30 21:32:18] Production.INFO: ProcessCDR(1,14366430,1,1,2) [2025-01-30 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366430', 'tblTempUsageDetail_20' ) start [2025-01-30 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366430', 'tblTempUsageDetail_20' ) end [2025-01-30 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:32:21] Production.INFO: ==4769== Releasing lock... [2025-01-30 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:32:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-30 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:33:05 [end_date_ymd] => 2025-01-30 21:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:33:05' and `end` < '2025-01-30 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-30 21:33:18] Production.INFO: count ==1339 [2025-01-30 21:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:33:05 - End Time 2025-01-30 21:33:05 [2025-01-30 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366435', 'tblTempUsageDetail_20' ) start [2025-01-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366435', 'tblTempUsageDetail_20' ) end [2025-01-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366435', 'tblTempVendorCDR_20' ) start [2025-01-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366435', 'tblTempVendorCDR_20' ) end [2025-01-30 21:33:19] Production.INFO: ProcessCDR(1,14366435,1,1,2) [2025-01-30 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366435', 'tblTempUsageDetail_20' ) start [2025-01-30 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366435', 'tblTempUsageDetail_20' ) end [2025-01-30 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:33:22] Production.INFO: ==4840== Releasing lock... [2025-01-30 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:33:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:34:06 [end_date_ymd] => 2025-01-30 21:34:06 [RateCDR] => 1 ) [2025-01-30 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:34:06' and `end` < '2025-01-30 21:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:34:19] Production.INFO: count ==1338 [2025-01-30 21:34:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:34:06 - End Time 2025-01-30 21:34:06 [2025-01-30 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366440', 'tblTempUsageDetail_20' ) start [2025-01-30 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366440', 'tblTempUsageDetail_20' ) end [2025-01-30 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366440', 'tblTempVendorCDR_20' ) start [2025-01-30 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366440', 'tblTempVendorCDR_20' ) end [2025-01-30 21:34:19] Production.INFO: ProcessCDR(1,14366440,1,1,2) [2025-01-30 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366440', 'tblTempUsageDetail_20' ) start [2025-01-30 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366440', 'tblTempUsageDetail_20' ) end [2025-01-30 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:34:22] Production.INFO: ==4955== Releasing lock... [2025-01-30 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:34:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:35:05 [end_date_ymd] => 2025-01-30 21:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:35:05' and `end` < '2025-01-30 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-30 21:35:18] Production.INFO: count ==1337 [2025-01-30 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:35:05 - End Time 2025-01-30 21:35:05 [2025-01-30 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366445', 'tblTempUsageDetail_20' ) start [2025-01-30 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366445', 'tblTempUsageDetail_20' ) end [2025-01-30 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366445', 'tblTempVendorCDR_20' ) start [2025-01-30 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366445', 'tblTempVendorCDR_20' ) end [2025-01-30 21:35:18] Production.INFO: ProcessCDR(1,14366445,1,1,2) [2025-01-30 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366445', 'tblTempUsageDetail_20' ) start [2025-01-30 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366445', 'tblTempUsageDetail_20' ) end [2025-01-30 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:35:21] Production.INFO: ==5072== Releasing lock... [2025-01-30 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:35:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:36:06 [end_date_ymd] => 2025-01-30 21:36:06 [RateCDR] => 1 ) [2025-01-30 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-30 18:36:06' and `end` < '2025-01-30 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-30 21:36:19] Production.INFO: count ==1333 [2025-01-30 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:36:06 - End Time 2025-01-30 21:36:06 [2025-01-30 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366450', 'tblTempUsageDetail_20' ) start [2025-01-30 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366450', 'tblTempUsageDetail_20' ) end [2025-01-30 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366450', 'tblTempVendorCDR_20' ) start [2025-01-30 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366450', 'tblTempVendorCDR_20' ) end [2025-01-30 21:36:19] Production.INFO: ProcessCDR(1,14366450,1,1,2) [2025-01-30 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366450', 'tblTempUsageDetail_20' ) start [2025-01-30 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366450', 'tblTempUsageDetail_20' ) end [2025-01-30 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:36:22] Production.INFO: ==5186== Releasing lock... [2025-01-30 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:36:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:37:05 [end_date_ymd] => 2025-01-30 21:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:37:05' and `end` < '2025-01-30 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-30 21:37:18] Production.INFO: count ==1322 [2025-01-30 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:37:05 - End Time 2025-01-30 21:37:05 [2025-01-30 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366455', 'tblTempUsageDetail_20' ) start [2025-01-30 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366455', 'tblTempUsageDetail_20' ) end [2025-01-30 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366455', 'tblTempVendorCDR_20' ) start [2025-01-30 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366455', 'tblTempVendorCDR_20' ) end [2025-01-30 21:37:18] Production.INFO: ProcessCDR(1,14366455,1,1,2) [2025-01-30 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366455', 'tblTempUsageDetail_20' ) start [2025-01-30 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366455', 'tblTempUsageDetail_20' ) end [2025-01-30 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:37:21] Production.INFO: ==5258== Releasing lock... [2025-01-30 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:37:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:38:05 [end_date_ymd] => 2025-01-30 21:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:38:05' and `end` < '2025-01-30 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-30 21:38:19] Production.INFO: count ==1320 [2025-01-30 21:38:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:38:05 - End Time 2025-01-30 21:38:05 [2025-01-30 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366460', 'tblTempUsageDetail_20' ) start [2025-01-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366460', 'tblTempUsageDetail_20' ) end [2025-01-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366460', 'tblTempVendorCDR_20' ) start [2025-01-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366460', 'tblTempVendorCDR_20' ) end [2025-01-30 21:38:19] Production.INFO: ProcessCDR(1,14366460,1,1,2) [2025-01-30 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366460', 'tblTempUsageDetail_20' ) start [2025-01-30 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366460', 'tblTempUsageDetail_20' ) end [2025-01-30 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:38:22] Production.INFO: ==5336== Releasing lock... [2025-01-30 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:38:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:39:04 [end_date_ymd] => 2025-01-30 21:39:04 [RateCDR] => 1 ) [2025-01-30 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-30 18:39:04' and `end` < '2025-01-30 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-30 21:39:17] Production.INFO: count ==1311 [2025-01-30 21:39:17] Production.ERROR: pbx CDR StartTime 2025-01-30 18:39:04 - End Time 2025-01-30 21:39:04 [2025-01-30 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366465', 'tblTempUsageDetail_20' ) start [2025-01-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366465', 'tblTempUsageDetail_20' ) end [2025-01-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366465', 'tblTempVendorCDR_20' ) start [2025-01-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366465', 'tblTempVendorCDR_20' ) end [2025-01-30 21:39:17] Production.INFO: ProcessCDR(1,14366465,1,1,2) [2025-01-30 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366465', 'tblTempUsageDetail_20' ) start [2025-01-30 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366465', 'tblTempUsageDetail_20' ) end [2025-01-30 21:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:39:20] Production.INFO: ==5411== Releasing lock... [2025-01-30 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:39:20] Production.INFO: 37.5 MB #Memory Used# [2025-01-30 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:40:05 [end_date_ymd] => 2025-01-30 21:40:05 [RateCDR] => 1 ) [2025-01-30 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:40:05' and `end` < '2025-01-30 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:40:18] Production.INFO: count ==1305 [2025-01-30 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:40:05 - End Time 2025-01-30 21:40:05 [2025-01-30 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366471', 'tblTempUsageDetail_20' ) start [2025-01-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366471', 'tblTempUsageDetail_20' ) end [2025-01-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366471', 'tblTempVendorCDR_20' ) start [2025-01-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366471', 'tblTempVendorCDR_20' ) end [2025-01-30 21:40:18] Production.INFO: ProcessCDR(1,14366471,1,1,2) [2025-01-30 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366471', 'tblTempUsageDetail_20' ) start [2025-01-30 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366471', 'tblTempUsageDetail_20' ) end [2025-01-30 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:40:22] Production.INFO: ==5487== Releasing lock... [2025-01-30 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:40:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-30 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:41:05 [end_date_ymd] => 2025-01-30 21:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:41:05' and `end` < '2025-01-30 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-30 21:41:18] Production.INFO: count ==1289 [2025-01-30 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:41:05 - End Time 2025-01-30 21:41:05 [2025-01-30 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366476', 'tblTempUsageDetail_20' ) start [2025-01-30 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366476', 'tblTempUsageDetail_20' ) end [2025-01-30 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366476', 'tblTempVendorCDR_20' ) start [2025-01-30 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366476', 'tblTempVendorCDR_20' ) end [2025-01-30 21:41:19] Production.INFO: ProcessCDR(1,14366476,1,1,2) [2025-01-30 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366476', 'tblTempUsageDetail_20' ) start [2025-01-30 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366476', 'tblTempUsageDetail_20' ) end [2025-01-30 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:41:23] Production.INFO: ==5564== Releasing lock... [2025-01-30 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:41:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-30 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:42:05 [end_date_ymd] => 2025-01-30 21:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:42:05' and `end` < '2025-01-30 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-30 21:42:18] Production.INFO: count ==1284 [2025-01-30 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:42:05 - End Time 2025-01-30 21:42:05 [2025-01-30 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366481', 'tblTempUsageDetail_20' ) start [2025-01-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366481', 'tblTempUsageDetail_20' ) end [2025-01-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366481', 'tblTempVendorCDR_20' ) start [2025-01-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366481', 'tblTempVendorCDR_20' ) end [2025-01-30 21:42:18] Production.INFO: ProcessCDR(1,14366481,1,1,2) [2025-01-30 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366481', 'tblTempUsageDetail_20' ) start [2025-01-30 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366481', 'tblTempUsageDetail_20' ) end [2025-01-30 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:42:22] Production.INFO: ==5638== Releasing lock... [2025-01-30 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-30 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:43:06 [end_date_ymd] => 2025-01-30 21:43:06 [RateCDR] => 1 ) [2025-01-30 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:43:06' and `end` < '2025-01-30 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:43:18] Production.INFO: count ==1277 [2025-01-30 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:43:06 - End Time 2025-01-30 21:43:06 [2025-01-30 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366486', 'tblTempUsageDetail_20' ) start [2025-01-30 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366486', 'tblTempUsageDetail_20' ) end [2025-01-30 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366486', 'tblTempVendorCDR_20' ) start [2025-01-30 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366486', 'tblTempVendorCDR_20' ) end [2025-01-30 21:43:19] Production.INFO: ProcessCDR(1,14366486,1,1,2) [2025-01-30 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366486', 'tblTempUsageDetail_20' ) start [2025-01-30 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366486', 'tblTempUsageDetail_20' ) end [2025-01-30 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:43:22] Production.INFO: ==5714== Releasing lock... [2025-01-30 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-30 21:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:44:04 [end_date_ymd] => 2025-01-30 21:44:04 [RateCDR] => 1 ) [2025-01-30 21: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-30 18:44:04' and `end` < '2025-01-30 21: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-30 21:44:18] Production.INFO: count ==1264 [2025-01-30 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:44:04 - End Time 2025-01-30 21:44:04 [2025-01-30 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366491', 'tblTempUsageDetail_20' ) start [2025-01-30 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366491', 'tblTempUsageDetail_20' ) end [2025-01-30 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366491', 'tblTempVendorCDR_20' ) start [2025-01-30 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366491', 'tblTempVendorCDR_20' ) end [2025-01-30 21:44:18] Production.INFO: ProcessCDR(1,14366491,1,1,2) [2025-01-30 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366491', 'tblTempUsageDetail_20' ) start [2025-01-30 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366491', 'tblTempUsageDetail_20' ) end [2025-01-30 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:44:21] Production.INFO: ==5785== Releasing lock... [2025-01-30 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:44:21] Production.INFO: 37 MB #Memory Used# [2025-01-30 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:45:05 [end_date_ymd] => 2025-01-30 21:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:45:05' and `end` < '2025-01-30 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-30 21:45:18] Production.INFO: count ==1261 [2025-01-30 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:45:05 - End Time 2025-01-30 21:45:05 [2025-01-30 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366496', 'tblTempUsageDetail_20' ) start [2025-01-30 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366496', 'tblTempUsageDetail_20' ) end [2025-01-30 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366496', 'tblTempVendorCDR_20' ) start [2025-01-30 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366496', 'tblTempVendorCDR_20' ) end [2025-01-30 21:45:19] Production.INFO: ProcessCDR(1,14366496,1,1,2) [2025-01-30 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366496', 'tblTempUsageDetail_20' ) start [2025-01-30 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366496', 'tblTempUsageDetail_20' ) end [2025-01-30 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:45:22] Production.INFO: ==5862== Releasing lock... [2025-01-30 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:45:22] Production.INFO: 37 MB #Memory Used# [2025-01-30 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:46:05 [end_date_ymd] => 2025-01-30 21:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:46:05' and `end` < '2025-01-30 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-30 21:46:18] Production.INFO: count ==1261 [2025-01-30 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:46:05 - End Time 2025-01-30 21:46:05 [2025-01-30 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366501', 'tblTempUsageDetail_20' ) start [2025-01-30 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366501', 'tblTempUsageDetail_20' ) end [2025-01-30 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366501', 'tblTempVendorCDR_20' ) start [2025-01-30 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366501', 'tblTempVendorCDR_20' ) end [2025-01-30 21:46:18] Production.INFO: ProcessCDR(1,14366501,1,1,2) [2025-01-30 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366501', 'tblTempUsageDetail_20' ) start [2025-01-30 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366501', 'tblTempUsageDetail_20' ) end [2025-01-30 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:46:21] Production.INFO: ==5944== Releasing lock... [2025-01-30 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:46:21] Production.INFO: 37 MB #Memory Used# [2025-01-30 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:47:05 [end_date_ymd] => 2025-01-30 21:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:47:05' and `end` < '2025-01-30 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-30 21:47:18] Production.INFO: count ==1259 [2025-01-30 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:47:05 - End Time 2025-01-30 21:47:05 [2025-01-30 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366506', 'tblTempUsageDetail_20' ) start [2025-01-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366506', 'tblTempUsageDetail_20' ) end [2025-01-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366506', 'tblTempVendorCDR_20' ) start [2025-01-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366506', 'tblTempVendorCDR_20' ) end [2025-01-30 21:47:18] Production.INFO: ProcessCDR(1,14366506,1,1,2) [2025-01-30 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366506', 'tblTempUsageDetail_20' ) start [2025-01-30 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366506', 'tblTempUsageDetail_20' ) end [2025-01-30 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:47:21] Production.INFO: ==6020== Releasing lock... [2025-01-30 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:47:21] Production.INFO: 37 MB #Memory Used# [2025-01-30 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:48:05 [end_date_ymd] => 2025-01-30 21:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:48:05' and `end` < '2025-01-30 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-30 21:48:18] Production.INFO: count ==1259 [2025-01-30 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:48:05 - End Time 2025-01-30 21:48:05 [2025-01-30 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366511', 'tblTempUsageDetail_20' ) start [2025-01-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366511', 'tblTempUsageDetail_20' ) end [2025-01-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366511', 'tblTempVendorCDR_20' ) start [2025-01-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366511', 'tblTempVendorCDR_20' ) end [2025-01-30 21:48:18] Production.INFO: ProcessCDR(1,14366511,1,1,2) [2025-01-30 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366511', 'tblTempUsageDetail_20' ) start [2025-01-30 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366511', 'tblTempUsageDetail_20' ) end [2025-01-30 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:48:21] Production.INFO: ==6113== Releasing lock... [2025-01-30 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:48:21] Production.INFO: 37 MB #Memory Used# [2025-01-30 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:49:05 [end_date_ymd] => 2025-01-30 21:49:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:49:05' and `end` < '2025-01-30 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-30 21:49:18] Production.INFO: count ==1254 [2025-01-30 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:49:05 - End Time 2025-01-30 21:49:05 [2025-01-30 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366516', 'tblTempUsageDetail_20' ) start [2025-01-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366516', 'tblTempUsageDetail_20' ) end [2025-01-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366516', 'tblTempVendorCDR_20' ) start [2025-01-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366516', 'tblTempVendorCDR_20' ) end [2025-01-30 21:49:18] Production.INFO: ProcessCDR(1,14366516,1,1,2) [2025-01-30 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366516', 'tblTempUsageDetail_20' ) start [2025-01-30 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366516', 'tblTempUsageDetail_20' ) end [2025-01-30 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:49:23] Production.INFO: ==6207== Releasing lock... [2025-01-30 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:49:23] Production.INFO: 37 MB #Memory Used# [2025-01-30 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:50:06 [end_date_ymd] => 2025-01-30 21:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 18:50:06' and `end` < '2025-01-30 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-30 21:50:19] Production.INFO: count ==1248 [2025-01-30 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:50:06 - End Time 2025-01-30 21:50:06 [2025-01-30 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366521', 'tblTempUsageDetail_20' ) start [2025-01-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366521', 'tblTempUsageDetail_20' ) end [2025-01-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366521', 'tblTempVendorCDR_20' ) start [2025-01-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366521', 'tblTempVendorCDR_20' ) end [2025-01-30 21:50:19] Production.INFO: ProcessCDR(1,14366521,1,1,2) [2025-01-30 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366521', 'tblTempUsageDetail_20' ) start [2025-01-30 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366521', 'tblTempUsageDetail_20' ) end [2025-01-30 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:50:23] Production.INFO: ==6341== Releasing lock... [2025-01-30 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:50:23] Production.INFO: 37 MB #Memory Used# [2025-01-30 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:51:05 [end_date_ymd] => 2025-01-30 21:51:05 [RateCDR] => 1 ) [2025-01-30 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:51:05' and `end` < '2025-01-30 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:51:19] Production.INFO: count ==1197 [2025-01-30 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:51:05 - End Time 2025-01-30 21:51:05 [2025-01-30 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366527', 'tblTempUsageDetail_20' ) start [2025-01-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366527', 'tblTempUsageDetail_20' ) end [2025-01-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366527', 'tblTempVendorCDR_20' ) start [2025-01-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366527', 'tblTempVendorCDR_20' ) end [2025-01-30 21:51:19] Production.INFO: ProcessCDR(1,14366527,1,1,2) [2025-01-30 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366527', 'tblTempUsageDetail_20' ) start [2025-01-30 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366527', 'tblTempUsageDetail_20' ) end [2025-01-30 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:51:22] Production.INFO: ==6426== Releasing lock... [2025-01-30 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:51:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:52:05 [end_date_ymd] => 2025-01-30 21:52:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:52:05' and `end` < '2025-01-30 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-30 21:52:18] Production.INFO: count ==1195 [2025-01-30 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:52:05 - End Time 2025-01-30 21:52:05 [2025-01-30 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366532', 'tblTempUsageDetail_20' ) start [2025-01-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366532', 'tblTempUsageDetail_20' ) end [2025-01-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366532', 'tblTempVendorCDR_20' ) start [2025-01-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366532', 'tblTempVendorCDR_20' ) end [2025-01-30 21:52:18] Production.INFO: ProcessCDR(1,14366532,1,1,2) [2025-01-30 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366532', 'tblTempUsageDetail_20' ) start [2025-01-30 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366532', 'tblTempUsageDetail_20' ) end [2025-01-30 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:52:22] Production.INFO: ==6515== Releasing lock... [2025-01-30 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:53:05 [end_date_ymd] => 2025-01-30 21:53:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:53:05' and `end` < '2025-01-30 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-30 21:53:18] Production.INFO: count ==1192 [2025-01-30 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:53:05 - End Time 2025-01-30 21:53:05 [2025-01-30 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366537', 'tblTempUsageDetail_20' ) start [2025-01-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366537', 'tblTempUsageDetail_20' ) end [2025-01-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366537', 'tblTempVendorCDR_20' ) start [2025-01-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366537', 'tblTempVendorCDR_20' ) end [2025-01-30 21:53:18] Production.INFO: ProcessCDR(1,14366537,1,1,2) [2025-01-30 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366537', 'tblTempUsageDetail_20' ) start [2025-01-30 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366537', 'tblTempUsageDetail_20' ) end [2025-01-30 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:53:21] Production.INFO: ==6605== Releasing lock... [2025-01-30 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:53:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:54:06 [end_date_ymd] => 2025-01-30 21:54:06 [RateCDR] => 1 ) [2025-01-30 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:54:06' and `end` < '2025-01-30 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:54:18] Production.INFO: count ==1190 [2025-01-30 21:54:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:54:06 - End Time 2025-01-30 21:54:06 [2025-01-30 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366542', 'tblTempUsageDetail_20' ) start [2025-01-30 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366542', 'tblTempUsageDetail_20' ) end [2025-01-30 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366542', 'tblTempVendorCDR_20' ) start [2025-01-30 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366542', 'tblTempVendorCDR_20' ) end [2025-01-30 21:54:19] Production.INFO: ProcessCDR(1,14366542,1,1,2) [2025-01-30 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366542', 'tblTempUsageDetail_20' ) start [2025-01-30 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366542', 'tblTempUsageDetail_20' ) end [2025-01-30 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:54:22] Production.INFO: ==6695== Releasing lock... [2025-01-30 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:54:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:55:05 [end_date_ymd] => 2025-01-30 21:55:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:55:05' and `end` < '2025-01-30 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-30 21:55:18] Production.INFO: count ==1190 [2025-01-30 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:55:05 - End Time 2025-01-30 21:55:05 [2025-01-30 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366547', 'tblTempUsageDetail_20' ) start [2025-01-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366547', 'tblTempUsageDetail_20' ) end [2025-01-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366547', 'tblTempVendorCDR_20' ) start [2025-01-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366547', 'tblTempVendorCDR_20' ) end [2025-01-30 21:55:18] Production.INFO: ProcessCDR(1,14366547,1,1,2) [2025-01-30 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366547', 'tblTempUsageDetail_20' ) start [2025-01-30 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366547', 'tblTempUsageDetail_20' ) end [2025-01-30 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:55:21] Production.INFO: ==6784== Releasing lock... [2025-01-30 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:56:05 [end_date_ymd] => 2025-01-30 21:56:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:56:05' and `end` < '2025-01-30 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-30 21:56:18] Production.INFO: count ==1189 [2025-01-30 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:56:05 - End Time 2025-01-30 21:56:05 [2025-01-30 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366552', 'tblTempUsageDetail_20' ) start [2025-01-30 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366552', 'tblTempUsageDetail_20' ) end [2025-01-30 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366552', 'tblTempVendorCDR_20' ) start [2025-01-30 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366552', 'tblTempVendorCDR_20' ) end [2025-01-30 21:56:18] Production.INFO: ProcessCDR(1,14366552,1,1,2) [2025-01-30 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366552', 'tblTempUsageDetail_20' ) start [2025-01-30 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366552', 'tblTempUsageDetail_20' ) end [2025-01-30 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:56:23] Production.INFO: ==6869== Releasing lock... [2025-01-30 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:56:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:57:05 [end_date_ymd] => 2025-01-30 21:57:05 [RateCDR] => 1 ) [2025-01-30 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-30 18:57:05' and `end` < '2025-01-30 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-30 21:57:18] Production.INFO: count ==1190 [2025-01-30 21:57:18] Production.ERROR: pbx CDR StartTime 2025-01-30 18:57:05 - End Time 2025-01-30 21:57:05 [2025-01-30 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366557', 'tblTempUsageDetail_20' ) start [2025-01-30 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366557', 'tblTempUsageDetail_20' ) end [2025-01-30 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366557', 'tblTempVendorCDR_20' ) start [2025-01-30 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366557', 'tblTempVendorCDR_20' ) end [2025-01-30 21:57:18] Production.INFO: ProcessCDR(1,14366557,1,1,2) [2025-01-30 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366557', 'tblTempUsageDetail_20' ) start [2025-01-30 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366557', 'tblTempUsageDetail_20' ) end [2025-01-30 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:57:23] Production.INFO: ==6956== Releasing lock... [2025-01-30 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:57:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:58:06 [end_date_ymd] => 2025-01-30 21:58:06 [RateCDR] => 1 ) [2025-01-30 21:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 18:58:06' and `end` < '2025-01-30 21:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 21:58:19] Production.INFO: count ==1186 [2025-01-30 21:58:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:58:06 - End Time 2025-01-30 21:58:06 [2025-01-30 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366562', 'tblTempUsageDetail_20' ) start [2025-01-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366562', 'tblTempUsageDetail_20' ) end [2025-01-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366562', 'tblTempVendorCDR_20' ) start [2025-01-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366562', 'tblTempVendorCDR_20' ) end [2025-01-30 21:58:19] Production.INFO: ProcessCDR(1,14366562,1,1,2) [2025-01-30 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366562', 'tblTempUsageDetail_20' ) start [2025-01-30 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366562', 'tblTempUsageDetail_20' ) end [2025-01-30 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:58:22] Production.INFO: ==7044== Releasing lock... [2025-01-30 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:58:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 18:59:04 [end_date_ymd] => 2025-01-30 21:59:04 [RateCDR] => 1 ) [2025-01-30 21: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-30 18:59:04' and `end` < '2025-01-30 21: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-30 21:59:18] Production.INFO: count ==1186 [2025-01-30 21:59:19] Production.ERROR: pbx CDR StartTime 2025-01-30 18:59:04 - End Time 2025-01-30 21:59:04 [2025-01-30 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366567', 'tblTempUsageDetail_20' ) start [2025-01-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366567', 'tblTempUsageDetail_20' ) end [2025-01-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366567', 'tblTempVendorCDR_20' ) start [2025-01-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366567', 'tblTempVendorCDR_20' ) end [2025-01-30 21:59:19] Production.INFO: ProcessCDR(1,14366567,1,1,2) [2025-01-30 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366567', 'tblTempUsageDetail_20' ) start [2025-01-30 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366567', 'tblTempUsageDetail_20' ) end [2025-01-30 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 21:59:22] Production.INFO: ==7128== Releasing lock... [2025-01-30 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 21:59:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:00:07 [end_date_ymd] => 2025-01-30 22:00:07 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:00:07' and `end` < '2025-01-30 22: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-30 22:00:19] Production.INFO: count ==1185 [2025-01-30 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:00:07 - End Time 2025-01-30 22:00:07 [2025-01-30 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366572', 'tblTempUsageDetail_20' ) start [2025-01-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366572', 'tblTempUsageDetail_20' ) end [2025-01-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366572', 'tblTempVendorCDR_20' ) start [2025-01-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366572', 'tblTempVendorCDR_20' ) end [2025-01-30 22:00:19] Production.INFO: ProcessCDR(1,14366572,1,1,2) [2025-01-30 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366572', 'tblTempUsageDetail_20' ) start [2025-01-30 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366572', 'tblTempUsageDetail_20' ) end [2025-01-30 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:00:23] Production.INFO: ==7219== Releasing lock... [2025-01-30 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:00:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-30 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:01:05 [end_date_ymd] => 2025-01-30 22:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:01:05' and `end` < '2025-01-30 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-30 22:01:18] Production.INFO: count ==1160 [2025-01-30 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:01:05 - End Time 2025-01-30 22:01:05 [2025-01-30 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366578', 'tblTempUsageDetail_20' ) start [2025-01-30 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366578', 'tblTempUsageDetail_20' ) end [2025-01-30 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366578', 'tblTempVendorCDR_20' ) start [2025-01-30 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366578', 'tblTempVendorCDR_20' ) end [2025-01-30 22:01:18] Production.INFO: ProcessCDR(1,14366578,1,1,2) [2025-01-30 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366578', 'tblTempUsageDetail_20' ) start [2025-01-30 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366578', 'tblTempUsageDetail_20' ) end [2025-01-30 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:01:22] Production.INFO: ==7325== Releasing lock... [2025-01-30 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:02:05 [end_date_ymd] => 2025-01-30 22:02:05 [RateCDR] => 1 ) [2025-01-30 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:02:05' and `end` < '2025-01-30 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:02:18] Production.INFO: count ==1160 [2025-01-30 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:02:05 - End Time 2025-01-30 22:02:05 [2025-01-30 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366583', 'tblTempUsageDetail_20' ) start [2025-01-30 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366583', 'tblTempUsageDetail_20' ) end [2025-01-30 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366583', 'tblTempVendorCDR_20' ) start [2025-01-30 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366583', 'tblTempVendorCDR_20' ) end [2025-01-30 22:02:18] Production.INFO: ProcessCDR(1,14366583,1,1,2) [2025-01-30 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366583', 'tblTempUsageDetail_20' ) start [2025-01-30 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366583', 'tblTempUsageDetail_20' ) end [2025-01-30 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:02:22] Production.INFO: ==7414== Releasing lock... [2025-01-30 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:02:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:03:05 [end_date_ymd] => 2025-01-30 22:03:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:03:05' and `end` < '2025-01-30 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-30 22:03:18] Production.INFO: count ==1160 [2025-01-30 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:03:05 - End Time 2025-01-30 22:03:05 [2025-01-30 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366588', 'tblTempUsageDetail_20' ) start [2025-01-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366588', 'tblTempUsageDetail_20' ) end [2025-01-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366588', 'tblTempVendorCDR_20' ) start [2025-01-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366588', 'tblTempVendorCDR_20' ) end [2025-01-30 22:03:18] Production.INFO: ProcessCDR(1,14366588,1,1,2) [2025-01-30 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366588', 'tblTempUsageDetail_20' ) start [2025-01-30 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366588', 'tblTempUsageDetail_20' ) end [2025-01-30 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:03:22] Production.INFO: ==7502== Releasing lock... [2025-01-30 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:03:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:04:05 [end_date_ymd] => 2025-01-30 22:04:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:04:05' and `end` < '2025-01-30 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-30 22:04:18] Production.INFO: count ==1161 [2025-01-30 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:04:05 - End Time 2025-01-30 22:04:05 [2025-01-30 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366593', 'tblTempUsageDetail_20' ) start [2025-01-30 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366593', 'tblTempUsageDetail_20' ) end [2025-01-30 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366593', 'tblTempVendorCDR_20' ) start [2025-01-30 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366593', 'tblTempVendorCDR_20' ) end [2025-01-30 22:04:18] Production.INFO: ProcessCDR(1,14366593,1,1,2) [2025-01-30 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366593', 'tblTempUsageDetail_20' ) start [2025-01-30 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366593', 'tblTempUsageDetail_20' ) end [2025-01-30 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:04:22] Production.INFO: ==7589== Releasing lock... [2025-01-30 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:04:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:05:06 [end_date_ymd] => 2025-01-30 22:05:06 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:05:06' and `end` < '2025-01-30 22: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-30 22:05:19] Production.INFO: count ==1158 [2025-01-30 22:05:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:05:06 - End Time 2025-01-30 22:05:06 [2025-01-30 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366598', 'tblTempUsageDetail_20' ) start [2025-01-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366598', 'tblTempUsageDetail_20' ) end [2025-01-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366598', 'tblTempVendorCDR_20' ) start [2025-01-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366598', 'tblTempVendorCDR_20' ) end [2025-01-30 22:05:19] Production.INFO: ProcessCDR(1,14366598,1,1,2) [2025-01-30 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366598', 'tblTempUsageDetail_20' ) start [2025-01-30 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366598', 'tblTempUsageDetail_20' ) end [2025-01-30 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:05:22] Production.INFO: ==7714== Releasing lock... [2025-01-30 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:06:05 [end_date_ymd] => 2025-01-30 22:06:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:06:05' and `end` < '2025-01-30 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-30 22:06:19] Production.INFO: count ==1147 [2025-01-30 22:06:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:06:05 - End Time 2025-01-30 22:06:05 [2025-01-30 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366603', 'tblTempUsageDetail_20' ) start [2025-01-30 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366603', 'tblTempUsageDetail_20' ) end [2025-01-30 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366603', 'tblTempVendorCDR_20' ) start [2025-01-30 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366603', 'tblTempVendorCDR_20' ) end [2025-01-30 22:06:19] Production.INFO: ProcessCDR(1,14366603,1,1,2) [2025-01-30 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366603', 'tblTempUsageDetail_20' ) start [2025-01-30 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366603', 'tblTempUsageDetail_20' ) end [2025-01-30 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:06:23] Production.INFO: ==7806== Releasing lock... [2025-01-30 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:07:06 [end_date_ymd] => 2025-01-30 22:07:06 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:07:06' and `end` < '2025-01-30 22: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-30 22:07:18] Production.INFO: count ==1140 [2025-01-30 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:07:06 - End Time 2025-01-30 22:07:06 [2025-01-30 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366608', 'tblTempUsageDetail_20' ) start [2025-01-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366608', 'tblTempUsageDetail_20' ) end [2025-01-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366608', 'tblTempVendorCDR_20' ) start [2025-01-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366608', 'tblTempVendorCDR_20' ) end [2025-01-30 22:07:19] Production.INFO: ProcessCDR(1,14366608,1,1,2) [2025-01-30 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366608', 'tblTempUsageDetail_20' ) start [2025-01-30 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366608', 'tblTempUsageDetail_20' ) end [2025-01-30 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:07:22] Production.INFO: ==7894== Releasing lock... [2025-01-30 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:07:22] Production.INFO: 36 MB #Memory Used# [2025-01-30 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:08:05 [end_date_ymd] => 2025-01-30 22:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:08:05' and `end` < '2025-01-30 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-30 22:08:18] Production.INFO: count ==1139 [2025-01-30 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:08:05 - End Time 2025-01-30 22:08:05 [2025-01-30 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366613', 'tblTempUsageDetail_20' ) start [2025-01-30 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366613', 'tblTempUsageDetail_20' ) end [2025-01-30 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366613', 'tblTempVendorCDR_20' ) start [2025-01-30 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366613', 'tblTempVendorCDR_20' ) end [2025-01-30 22:08:18] Production.INFO: ProcessCDR(1,14366613,1,1,2) [2025-01-30 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366613', 'tblTempUsageDetail_20' ) start [2025-01-30 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366613', 'tblTempUsageDetail_20' ) end [2025-01-30 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:08:21] Production.INFO: ==7987== Releasing lock... [2025-01-30 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:08:21] Production.INFO: 36 MB #Memory Used# [2025-01-30 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:09:05 [end_date_ymd] => 2025-01-30 22:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:09:05' and `end` < '2025-01-30 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-30 22:09:19] Production.INFO: count ==1137 [2025-01-30 22:09:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:09:05 - End Time 2025-01-30 22:09:05 [2025-01-30 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366618', 'tblTempUsageDetail_20' ) start [2025-01-30 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366618', 'tblTempUsageDetail_20' ) end [2025-01-30 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366618', 'tblTempVendorCDR_20' ) start [2025-01-30 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366618', 'tblTempVendorCDR_20' ) end [2025-01-30 22:09:19] Production.INFO: ProcessCDR(1,14366618,1,1,2) [2025-01-30 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366618', 'tblTempUsageDetail_20' ) start [2025-01-30 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366618', 'tblTempUsageDetail_20' ) end [2025-01-30 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:09:22] Production.INFO: ==8073== Releasing lock... [2025-01-30 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:09:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-30 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:10:05 [end_date_ymd] => 2025-01-30 22:10:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:10:05' and `end` < '2025-01-30 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-30 22:10:18] Production.INFO: count ==1139 [2025-01-30 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:10:05 - End Time 2025-01-30 22:10:05 [2025-01-30 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366624', 'tblTempUsageDetail_20' ) start [2025-01-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366624', 'tblTempUsageDetail_20' ) end [2025-01-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366624', 'tblTempVendorCDR_20' ) start [2025-01-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366624', 'tblTempVendorCDR_20' ) end [2025-01-30 22:10:18] Production.INFO: ProcessCDR(1,14366624,1,1,2) [2025-01-30 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366624', 'tblTempUsageDetail_20' ) start [2025-01-30 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366624', 'tblTempUsageDetail_20' ) end [2025-01-30 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:10:22] Production.INFO: ==8160== Releasing lock... [2025-01-30 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:10:22] Production.INFO: 36 MB #Memory Used# [2025-01-30 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:11:05 [end_date_ymd] => 2025-01-30 22:11:05 [RateCDR] => 1 ) [2025-01-30 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:11:05' and `end` < '2025-01-30 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:11:18] Production.INFO: count ==1114 [2025-01-30 22:11:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:11:05 - End Time 2025-01-30 22:11:05 [2025-01-30 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366629', 'tblTempUsageDetail_20' ) start [2025-01-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366629', 'tblTempUsageDetail_20' ) end [2025-01-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366629', 'tblTempVendorCDR_20' ) start [2025-01-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366629', 'tblTempVendorCDR_20' ) end [2025-01-30 22:11:19] Production.INFO: ProcessCDR(1,14366629,1,1,2) [2025-01-30 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366629', 'tblTempUsageDetail_20' ) start [2025-01-30 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366629', 'tblTempUsageDetail_20' ) end [2025-01-30 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:11:22] Production.INFO: ==8253== Releasing lock... [2025-01-30 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:11:22] Production.INFO: 36 MB #Memory Used# [2025-01-30 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:12:05 [end_date_ymd] => 2025-01-30 22:12:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:12:05' and `end` < '2025-01-30 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-30 22:12:18] Production.INFO: count ==1115 [2025-01-30 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:12:05 - End Time 2025-01-30 22:12:05 [2025-01-30 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366634', 'tblTempUsageDetail_20' ) start [2025-01-30 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366634', 'tblTempUsageDetail_20' ) end [2025-01-30 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366634', 'tblTempVendorCDR_20' ) start [2025-01-30 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366634', 'tblTempVendorCDR_20' ) end [2025-01-30 22:12:18] Production.INFO: ProcessCDR(1,14366634,1,1,2) [2025-01-30 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366634', 'tblTempUsageDetail_20' ) start [2025-01-30 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366634', 'tblTempUsageDetail_20' ) end [2025-01-30 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:12:21] Production.INFO: ==8339== Releasing lock... [2025-01-30 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:12:21] Production.INFO: 36 MB #Memory Used# [2025-01-30 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:13:05 [end_date_ymd] => 2025-01-30 22:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:13:05' and `end` < '2025-01-30 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-30 22:13:19] Production.INFO: count ==1111 [2025-01-30 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:13:05 - End Time 2025-01-30 22:13:05 [2025-01-30 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366639', 'tblTempUsageDetail_20' ) start [2025-01-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366639', 'tblTempUsageDetail_20' ) end [2025-01-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366639', 'tblTempVendorCDR_20' ) start [2025-01-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366639', 'tblTempVendorCDR_20' ) end [2025-01-30 22:13:19] Production.INFO: ProcessCDR(1,14366639,1,1,2) [2025-01-30 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366639', 'tblTempUsageDetail_20' ) start [2025-01-30 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366639', 'tblTempUsageDetail_20' ) end [2025-01-30 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:13:22] Production.INFO: ==8432== Releasing lock... [2025-01-30 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:13:22] Production.INFO: 36 MB #Memory Used# [2025-01-30 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:14:05 [end_date_ymd] => 2025-01-30 22:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:14:05' and `end` < '2025-01-30 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-30 22:14:18] Production.INFO: count ==1112 [2025-01-30 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:14:05 - End Time 2025-01-30 22:14:05 [2025-01-30 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366644', 'tblTempUsageDetail_20' ) start [2025-01-30 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366644', 'tblTempUsageDetail_20' ) end [2025-01-30 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366644', 'tblTempVendorCDR_20' ) start [2025-01-30 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366644', 'tblTempVendorCDR_20' ) end [2025-01-30 22:14:18] Production.INFO: ProcessCDR(1,14366644,1,1,2) [2025-01-30 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366644', 'tblTempUsageDetail_20' ) start [2025-01-30 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366644', 'tblTempUsageDetail_20' ) end [2025-01-30 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:14:21] Production.INFO: ==8515== Releasing lock... [2025-01-30 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:14:21] Production.INFO: 36 MB #Memory Used# [2025-01-30 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:15:05 [end_date_ymd] => 2025-01-30 22:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:15:05' and `end` < '2025-01-30 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-30 22:15:19] Production.INFO: count ==1106 [2025-01-30 22:15:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:15:05 - End Time 2025-01-30 22:15:05 [2025-01-30 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366649', 'tblTempUsageDetail_20' ) start [2025-01-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366649', 'tblTempUsageDetail_20' ) end [2025-01-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366649', 'tblTempVendorCDR_20' ) start [2025-01-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366649', 'tblTempVendorCDR_20' ) end [2025-01-30 22:15:19] Production.INFO: ProcessCDR(1,14366649,1,1,2) [2025-01-30 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366649', 'tblTempUsageDetail_20' ) start [2025-01-30 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366649', 'tblTempUsageDetail_20' ) end [2025-01-30 22:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:15:24] Production.INFO: ==8607== Releasing lock... [2025-01-30 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:15:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:16:05 [end_date_ymd] => 2025-01-30 22:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:16:05' and `end` < '2025-01-30 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-30 22:16:17] Production.INFO: count ==1107 [2025-01-30 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:16:05 - End Time 2025-01-30 22:16:05 [2025-01-30 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366654', 'tblTempUsageDetail_20' ) start [2025-01-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366654', 'tblTempUsageDetail_20' ) end [2025-01-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366654', 'tblTempVendorCDR_20' ) start [2025-01-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366654', 'tblTempVendorCDR_20' ) end [2025-01-30 22:16:18] Production.INFO: ProcessCDR(1,14366654,1,1,2) [2025-01-30 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366654', 'tblTempUsageDetail_20' ) start [2025-01-30 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366654', 'tblTempUsageDetail_20' ) end [2025-01-30 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:16:22] Production.INFO: ==8696== Releasing lock... [2025-01-30 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:16:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:17:05 [end_date_ymd] => 2025-01-30 22:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:17:05' and `end` < '2025-01-30 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-30 22:17:18] Production.INFO: count ==1101 [2025-01-30 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:17:05 - End Time 2025-01-30 22:17:05 [2025-01-30 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366659', 'tblTempUsageDetail_20' ) start [2025-01-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366659', 'tblTempUsageDetail_20' ) end [2025-01-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366659', 'tblTempVendorCDR_20' ) start [2025-01-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366659', 'tblTempVendorCDR_20' ) end [2025-01-30 22:17:18] Production.INFO: ProcessCDR(1,14366659,1,1,2) [2025-01-30 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366659', 'tblTempUsageDetail_20' ) start [2025-01-30 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366659', 'tblTempUsageDetail_20' ) end [2025-01-30 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:17:21] Production.INFO: ==8780== Releasing lock... [2025-01-30 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:17:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:18:05 [end_date_ymd] => 2025-01-30 22:18:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:18:05' and `end` < '2025-01-30 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:18:17] Production.INFO: count ==1098 [2025-01-30 22:18:17] Production.ERROR: pbx CDR StartTime 2025-01-30 19:18:05 - End Time 2025-01-30 22:18:05 [2025-01-30 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366664', 'tblTempUsageDetail_20' ) start [2025-01-30 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366664', 'tblTempUsageDetail_20' ) end [2025-01-30 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366664', 'tblTempVendorCDR_20' ) start [2025-01-30 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366664', 'tblTempVendorCDR_20' ) end [2025-01-30 22:18:17] Production.INFO: ProcessCDR(1,14366664,1,1,2) [2025-01-30 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366664', 'tblTempUsageDetail_20' ) start [2025-01-30 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366664', 'tblTempUsageDetail_20' ) end [2025-01-30 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:18:21] Production.INFO: ==8866== Releasing lock... [2025-01-30 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:18:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:19:05 [end_date_ymd] => 2025-01-30 22:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:19:05' and `end` < '2025-01-30 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-30 22:19:18] Production.INFO: count ==1096 [2025-01-30 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:19:05 - End Time 2025-01-30 22:19:05 [2025-01-30 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366669', 'tblTempUsageDetail_20' ) start [2025-01-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366669', 'tblTempUsageDetail_20' ) end [2025-01-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366669', 'tblTempVendorCDR_20' ) start [2025-01-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366669', 'tblTempVendorCDR_20' ) end [2025-01-30 22:19:18] Production.INFO: ProcessCDR(1,14366669,1,1,2) [2025-01-30 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366669', 'tblTempUsageDetail_20' ) start [2025-01-30 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366669', 'tblTempUsageDetail_20' ) end [2025-01-30 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:19:23] Production.INFO: ==8951== Releasing lock... [2025-01-30 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:19:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:20:06 [end_date_ymd] => 2025-01-30 22:20:06 [RateCDR] => 1 ) [2025-01-30 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:20:06' and `end` < '2025-01-30 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:20:19] Production.INFO: count ==1093 [2025-01-30 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:20:06 - End Time 2025-01-30 22:20:06 [2025-01-30 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366675', 'tblTempUsageDetail_20' ) start [2025-01-30 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366675', 'tblTempUsageDetail_20' ) end [2025-01-30 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366675', 'tblTempVendorCDR_20' ) start [2025-01-30 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366675', 'tblTempVendorCDR_20' ) end [2025-01-30 22:20:19] Production.INFO: ProcessCDR(1,14366675,1,1,2) [2025-01-30 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366675', 'tblTempUsageDetail_20' ) start [2025-01-30 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366675', 'tblTempUsageDetail_20' ) end [2025-01-30 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:20:22] Production.INFO: ==9038== Releasing lock... [2025-01-30 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:20:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-30 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:21:05 [end_date_ymd] => 2025-01-30 22:21:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:21:05' and `end` < '2025-01-30 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-30 22:21:18] Production.INFO: count ==1042 [2025-01-30 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:21:05 - End Time 2025-01-30 22:21:05 [2025-01-30 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366680', 'tblTempUsageDetail_20' ) start [2025-01-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366680', 'tblTempUsageDetail_20' ) end [2025-01-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366680', 'tblTempVendorCDR_20' ) start [2025-01-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366680', 'tblTempVendorCDR_20' ) end [2025-01-30 22:21:18] Production.INFO: ProcessCDR(1,14366680,1,1,2) [2025-01-30 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366680', 'tblTempUsageDetail_20' ) start [2025-01-30 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366680', 'tblTempUsageDetail_20' ) end [2025-01-30 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:21:21] Production.INFO: ==9167== Releasing lock... [2025-01-30 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:21:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-30 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:22:06 [end_date_ymd] => 2025-01-30 22:22:06 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:22:06' and `end` < '2025-01-30 22: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-30 22:22:19] Production.INFO: count ==1037 [2025-01-30 22:22:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:22:06 - End Time 2025-01-30 22:22:06 [2025-01-30 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366685', 'tblTempUsageDetail_20' ) start [2025-01-30 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366685', 'tblTempUsageDetail_20' ) end [2025-01-30 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366685', 'tblTempVendorCDR_20' ) start [2025-01-30 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366685', 'tblTempVendorCDR_20' ) end [2025-01-30 22:22:19] Production.INFO: ProcessCDR(1,14366685,1,1,2) [2025-01-30 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366685', 'tblTempUsageDetail_20' ) start [2025-01-30 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366685', 'tblTempUsageDetail_20' ) end [2025-01-30 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:22:23] Production.INFO: ==9251== Releasing lock... [2025-01-30 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:22:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:23:05 [end_date_ymd] => 2025-01-30 22:23:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:23:05' and `end` < '2025-01-30 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-30 22:23:19] Production.INFO: count ==1038 [2025-01-30 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:23:05 - End Time 2025-01-30 22:23:05 [2025-01-30 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366690', 'tblTempUsageDetail_20' ) start [2025-01-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366690', 'tblTempUsageDetail_20' ) end [2025-01-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366690', 'tblTempVendorCDR_20' ) start [2025-01-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366690', 'tblTempVendorCDR_20' ) end [2025-01-30 22:23:19] Production.INFO: ProcessCDR(1,14366690,1,1,2) [2025-01-30 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366690', 'tblTempUsageDetail_20' ) start [2025-01-30 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366690', 'tblTempUsageDetail_20' ) end [2025-01-30 22:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:23:24] Production.INFO: ==9339== Releasing lock... [2025-01-30 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:23:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:24:05 [end_date_ymd] => 2025-01-30 22:24:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:24:05' and `end` < '2025-01-30 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-30 22:24:19] Production.INFO: count ==1039 [2025-01-30 22:24:20] Production.ERROR: pbx CDR StartTime 2025-01-30 19:24:05 - End Time 2025-01-30 22:24:05 [2025-01-30 22:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366695', 'tblTempUsageDetail_20' ) start [2025-01-30 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366695', 'tblTempUsageDetail_20' ) end [2025-01-30 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366695', 'tblTempVendorCDR_20' ) start [2025-01-30 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366695', 'tblTempVendorCDR_20' ) end [2025-01-30 22:24:20] Production.INFO: ProcessCDR(1,14366695,1,1,2) [2025-01-30 22:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366695', 'tblTempUsageDetail_20' ) start [2025-01-30 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366695', 'tblTempUsageDetail_20' ) end [2025-01-30 22:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:24:24] Production.INFO: ==9422== Releasing lock... [2025-01-30 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:24:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:25:04 [end_date_ymd] => 2025-01-30 22:25:04 [RateCDR] => 1 ) [2025-01-30 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-30 19:25:04' and `end` < '2025-01-30 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-30 22:25:17] Production.INFO: count ==1034 [2025-01-30 22:25:17] Production.ERROR: pbx CDR StartTime 2025-01-30 19:25:04 - End Time 2025-01-30 22:25:04 [2025-01-30 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366700', 'tblTempUsageDetail_20' ) start [2025-01-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366700', 'tblTempUsageDetail_20' ) end [2025-01-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366700', 'tblTempVendorCDR_20' ) start [2025-01-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366700', 'tblTempVendorCDR_20' ) end [2025-01-30 22:25:17] Production.INFO: ProcessCDR(1,14366700,1,1,2) [2025-01-30 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366700', 'tblTempUsageDetail_20' ) start [2025-01-30 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366700', 'tblTempUsageDetail_20' ) end [2025-01-30 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:25:22] Production.INFO: ==9510== Releasing lock... [2025-01-30 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:26:06 [end_date_ymd] => 2025-01-30 22:26:06 [RateCDR] => 1 ) [2025-01-30 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-30 19:26:06' and `end` < '2025-01-30 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-30 22:26:19] Production.INFO: count ==1028 [2025-01-30 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:26:06 - End Time 2025-01-30 22:26:06 [2025-01-30 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366705', 'tblTempUsageDetail_20' ) start [2025-01-30 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366705', 'tblTempUsageDetail_20' ) end [2025-01-30 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366705', 'tblTempVendorCDR_20' ) start [2025-01-30 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366705', 'tblTempVendorCDR_20' ) end [2025-01-30 22:26:19] Production.INFO: ProcessCDR(1,14366705,1,1,2) [2025-01-30 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366705', 'tblTempUsageDetail_20' ) start [2025-01-30 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366705', 'tblTempUsageDetail_20' ) end [2025-01-30 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:26:22] Production.INFO: ==9586== Releasing lock... [2025-01-30 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:27:06 [end_date_ymd] => 2025-01-30 22:27:06 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:27:06' and `end` < '2025-01-30 22: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-30 22:27:19] Production.INFO: count ==1025 [2025-01-30 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:27:06 - End Time 2025-01-30 22:27:06 [2025-01-30 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366710', 'tblTempUsageDetail_20' ) start [2025-01-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366710', 'tblTempUsageDetail_20' ) end [2025-01-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366710', 'tblTempVendorCDR_20' ) start [2025-01-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366710', 'tblTempVendorCDR_20' ) end [2025-01-30 22:27:19] Production.INFO: ProcessCDR(1,14366710,1,1,2) [2025-01-30 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366710', 'tblTempUsageDetail_20' ) start [2025-01-30 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366710', 'tblTempUsageDetail_20' ) end [2025-01-30 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:27:23] Production.INFO: ==9661== Releasing lock... [2025-01-30 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:27:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-30 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:28:05 [end_date_ymd] => 2025-01-30 22:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:28:05' and `end` < '2025-01-30 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-30 22:28:18] Production.INFO: count ==1007 [2025-01-30 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:28:05 - End Time 2025-01-30 22:28:05 [2025-01-30 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366715', 'tblTempUsageDetail_20' ) start [2025-01-30 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366715', 'tblTempUsageDetail_20' ) end [2025-01-30 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366715', 'tblTempVendorCDR_20' ) start [2025-01-30 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366715', 'tblTempVendorCDR_20' ) end [2025-01-30 22:28:18] Production.INFO: ProcessCDR(1,14366715,1,1,2) [2025-01-30 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366715', 'tblTempUsageDetail_20' ) start [2025-01-30 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366715', 'tblTempUsageDetail_20' ) end [2025-01-30 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:28:21] Production.INFO: ==9739== Releasing lock... [2025-01-30 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:28:21] Production.INFO: 35 MB #Memory Used# [2025-01-30 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:29:06 [end_date_ymd] => 2025-01-30 22:29:06 [RateCDR] => 1 ) [2025-01-30 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:29:06' and `end` < '2025-01-30 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:29:18] Production.INFO: count ==1007 [2025-01-30 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:29:06 - End Time 2025-01-30 22:29:06 [2025-01-30 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366720', 'tblTempUsageDetail_20' ) start [2025-01-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366720', 'tblTempUsageDetail_20' ) end [2025-01-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366720', 'tblTempVendorCDR_20' ) start [2025-01-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366720', 'tblTempVendorCDR_20' ) end [2025-01-30 22:29:19] Production.INFO: ProcessCDR(1,14366720,1,1,2) [2025-01-30 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366720', 'tblTempUsageDetail_20' ) start [2025-01-30 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366720', 'tblTempUsageDetail_20' ) end [2025-01-30 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:29:22] Production.INFO: ==9809== Releasing lock... [2025-01-30 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:29:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:30:06 [end_date_ymd] => 2025-01-30 22:30:06 [RateCDR] => 1 ) [2025-01-30 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:30:06' and `end` < '2025-01-30 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:30:19] Production.INFO: count ==990 [2025-01-30 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:30:06 - End Time 2025-01-30 22:30:06 [2025-01-30 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366726', 'tblTempUsageDetail_20' ) start [2025-01-30 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366726', 'tblTempUsageDetail_20' ) end [2025-01-30 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366726', 'tblTempVendorCDR_20' ) start [2025-01-30 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366726', 'tblTempVendorCDR_20' ) end [2025-01-30 22:30:19] Production.INFO: ProcessCDR(1,14366726,1,1,2) [2025-01-30 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366726', 'tblTempUsageDetail_20' ) start [2025-01-30 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366726', 'tblTempUsageDetail_20' ) end [2025-01-30 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:30:22] Production.INFO: ==9890== Releasing lock... [2025-01-30 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:30:22] Production.INFO: 35 MB #Memory Used# [2025-01-30 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:31:05 [end_date_ymd] => 2025-01-30 22:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:31:05' and `end` < '2025-01-30 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-30 22:31:18] Production.INFO: count ==970 [2025-01-30 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:31:05 - End Time 2025-01-30 22:31:05 [2025-01-30 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366731', 'tblTempUsageDetail_20' ) start [2025-01-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366731', 'tblTempUsageDetail_20' ) end [2025-01-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366731', 'tblTempVendorCDR_20' ) start [2025-01-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366731', 'tblTempVendorCDR_20' ) end [2025-01-30 22:31:18] Production.INFO: ProcessCDR(1,14366731,1,1,2) [2025-01-30 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366731', 'tblTempUsageDetail_20' ) start [2025-01-30 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366731', 'tblTempUsageDetail_20' ) end [2025-01-30 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:31:23] Production.INFO: ==9969== Releasing lock... [2025-01-30 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:31:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:32:05 [end_date_ymd] => 2025-01-30 22:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:32:05' and `end` < '2025-01-30 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-30 22:32:19] Production.INFO: count ==969 [2025-01-30 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:32:05 - End Time 2025-01-30 22:32:05 [2025-01-30 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366736', 'tblTempUsageDetail_20' ) start [2025-01-30 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366736', 'tblTempUsageDetail_20' ) end [2025-01-30 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366736', 'tblTempVendorCDR_20' ) start [2025-01-30 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366736', 'tblTempVendorCDR_20' ) end [2025-01-30 22:32:19] Production.INFO: ProcessCDR(1,14366736,1,1,2) [2025-01-30 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366736', 'tblTempUsageDetail_20' ) start [2025-01-30 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366736', 'tblTempUsageDetail_20' ) end [2025-01-30 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:32:22] Production.INFO: ==10063== Releasing lock... [2025-01-30 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:32:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:33:05 [end_date_ymd] => 2025-01-30 22:33:05 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:33:05' and `end` < '2025-01-30 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-30 22:33:19] Production.INFO: count ==966 [2025-01-30 22:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:33:05 - End Time 2025-01-30 22:33:05 [2025-01-30 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366741', 'tblTempUsageDetail_20' ) start [2025-01-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366741', 'tblTempUsageDetail_20' ) end [2025-01-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366741', 'tblTempVendorCDR_20' ) start [2025-01-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366741', 'tblTempVendorCDR_20' ) end [2025-01-30 22:33:19] Production.INFO: ProcessCDR(1,14366741,1,1,2) [2025-01-30 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366741', 'tblTempUsageDetail_20' ) start [2025-01-30 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366741', 'tblTempUsageDetail_20' ) end [2025-01-30 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:33:22] Production.INFO: ==10151== Releasing lock... [2025-01-30 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:33:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:34:05 [end_date_ymd] => 2025-01-30 22:34:05 [RateCDR] => 1 ) [2025-01-30 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:34:05' and `end` < '2025-01-30 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:34:19] Production.INFO: count ==966 [2025-01-30 22:34:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:34:05 - End Time 2025-01-30 22:34:05 [2025-01-30 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366746', 'tblTempUsageDetail_20' ) start [2025-01-30 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366746', 'tblTempUsageDetail_20' ) end [2025-01-30 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366746', 'tblTempVendorCDR_20' ) start [2025-01-30 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366746', 'tblTempVendorCDR_20' ) end [2025-01-30 22:34:19] Production.INFO: ProcessCDR(1,14366746,1,1,2) [2025-01-30 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366746', 'tblTempUsageDetail_20' ) start [2025-01-30 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366746', 'tblTempUsageDetail_20' ) end [2025-01-30 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:34:22] Production.INFO: ==10227== Releasing lock... [2025-01-30 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:34:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:35:05 [end_date_ymd] => 2025-01-30 22:35:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:35:05' and `end` < '2025-01-30 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-30 22:35:18] Production.INFO: count ==965 [2025-01-30 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:35:05 - End Time 2025-01-30 22:35:05 [2025-01-30 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366751', 'tblTempUsageDetail_20' ) start [2025-01-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366751', 'tblTempUsageDetail_20' ) end [2025-01-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366751', 'tblTempVendorCDR_20' ) start [2025-01-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366751', 'tblTempVendorCDR_20' ) end [2025-01-30 22:35:18] Production.INFO: ProcessCDR(1,14366751,1,1,2) [2025-01-30 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366751', 'tblTempUsageDetail_20' ) start [2025-01-30 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366751', 'tblTempUsageDetail_20' ) end [2025-01-30 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:35:22] Production.INFO: ==10301== Releasing lock... [2025-01-30 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:35:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:36:05 [end_date_ymd] => 2025-01-30 22:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:36:05' and `end` < '2025-01-30 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-30 22:36:18] Production.INFO: count ==962 [2025-01-30 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:36:05 - End Time 2025-01-30 22:36:05 [2025-01-30 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366756', 'tblTempUsageDetail_20' ) start [2025-01-30 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366756', 'tblTempUsageDetail_20' ) end [2025-01-30 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366756', 'tblTempVendorCDR_20' ) start [2025-01-30 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366756', 'tblTempVendorCDR_20' ) end [2025-01-30 22:36:18] Production.INFO: ProcessCDR(1,14366756,1,1,2) [2025-01-30 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366756', 'tblTempUsageDetail_20' ) start [2025-01-30 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366756', 'tblTempUsageDetail_20' ) end [2025-01-30 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:36:21] Production.INFO: ==10412== Releasing lock... [2025-01-30 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:36:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:37:06 [end_date_ymd] => 2025-01-30 22:37:06 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:37:06' and `end` < '2025-01-30 22: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-30 22:37:19] Production.INFO: count ==966 [2025-01-30 22:37:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:37:06 - End Time 2025-01-30 22:37:06 [2025-01-30 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366761', 'tblTempUsageDetail_20' ) start [2025-01-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366761', 'tblTempUsageDetail_20' ) end [2025-01-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366761', 'tblTempVendorCDR_20' ) start [2025-01-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366761', 'tblTempVendorCDR_20' ) end [2025-01-30 22:37:19] Production.INFO: ProcessCDR(1,14366761,1,1,2) [2025-01-30 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366761', 'tblTempUsageDetail_20' ) start [2025-01-30 22:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366761', 'tblTempUsageDetail_20' ) end [2025-01-30 22:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:37:24] Production.INFO: ==10489== Releasing lock... [2025-01-30 22:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:37:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:38:05 [end_date_ymd] => 2025-01-30 22:38:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:38:05' and `end` < '2025-01-30 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-30 22:38:18] Production.INFO: count ==968 [2025-01-30 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:38:05 - End Time 2025-01-30 22:38:05 [2025-01-30 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366766', 'tblTempUsageDetail_20' ) start [2025-01-30 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366766', 'tblTempUsageDetail_20' ) end [2025-01-30 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366766', 'tblTempVendorCDR_20' ) start [2025-01-30 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366766', 'tblTempVendorCDR_20' ) end [2025-01-30 22:38:18] Production.INFO: ProcessCDR(1,14366766,1,1,2) [2025-01-30 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366766', 'tblTempUsageDetail_20' ) start [2025-01-30 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366766', 'tblTempUsageDetail_20' ) end [2025-01-30 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:38:22] Production.INFO: ==10560== Releasing lock... [2025-01-30 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:38:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:39:06 [end_date_ymd] => 2025-01-30 22:39:06 [RateCDR] => 1 ) [2025-01-30 22:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:39:06' and `end` < '2025-01-30 22:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:39:19] Production.INFO: count ==961 [2025-01-30 22:39:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:39:06 - End Time 2025-01-30 22:39:06 [2025-01-30 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366771', 'tblTempUsageDetail_20' ) start [2025-01-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366771', 'tblTempUsageDetail_20' ) end [2025-01-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366771', 'tblTempVendorCDR_20' ) start [2025-01-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366771', 'tblTempVendorCDR_20' ) end [2025-01-30 22:39:19] Production.INFO: ProcessCDR(1,14366771,1,1,2) [2025-01-30 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366771', 'tblTempUsageDetail_20' ) start [2025-01-30 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366771', 'tblTempUsageDetail_20' ) end [2025-01-30 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:39:22] Production.INFO: ==10632== Releasing lock... [2025-01-30 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:39:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:40:06 [end_date_ymd] => 2025-01-30 22:40:06 [RateCDR] => 1 ) [2025-01-30 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-30 19:40:06' and `end` < '2025-01-30 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-30 22:40:19] Production.INFO: count ==960 [2025-01-30 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:40:06 - End Time 2025-01-30 22:40:06 [2025-01-30 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366777', 'tblTempUsageDetail_20' ) start [2025-01-30 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366777', 'tblTempUsageDetail_20' ) end [2025-01-30 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366777', 'tblTempVendorCDR_20' ) start [2025-01-30 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366777', 'tblTempVendorCDR_20' ) end [2025-01-30 22:40:19] Production.INFO: ProcessCDR(1,14366777,1,1,2) [2025-01-30 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366777', 'tblTempUsageDetail_20' ) start [2025-01-30 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366777', 'tblTempUsageDetail_20' ) end [2025-01-30 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:40:22] Production.INFO: ==10708== Releasing lock... [2025-01-30 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-30 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:41:05 [end_date_ymd] => 2025-01-30 22:41:05 [RateCDR] => 1 ) [2025-01-30 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:41:05' and `end` < '2025-01-30 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:41:18] Production.INFO: count ==921 [2025-01-30 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:41:05 - End Time 2025-01-30 22:41:05 [2025-01-30 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366782', 'tblTempUsageDetail_20' ) start [2025-01-30 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366782', 'tblTempUsageDetail_20' ) end [2025-01-30 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366782', 'tblTempVendorCDR_20' ) start [2025-01-30 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366782', 'tblTempVendorCDR_20' ) end [2025-01-30 22:41:18] Production.INFO: ProcessCDR(1,14366782,1,1,2) [2025-01-30 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366782', 'tblTempUsageDetail_20' ) start [2025-01-30 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366782', 'tblTempUsageDetail_20' ) end [2025-01-30 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:41:21] Production.INFO: ==10783== Releasing lock... [2025-01-30 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:41:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:42:05 [end_date_ymd] => 2025-01-30 22:42:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:42:05' and `end` < '2025-01-30 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-30 22:42:20] Production.INFO: count ==920 [2025-01-30 22:42:20] Production.ERROR: pbx CDR StartTime 2025-01-30 19:42:05 - End Time 2025-01-30 22:42:05 [2025-01-30 22:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366787', 'tblTempUsageDetail_20' ) start [2025-01-30 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366787', 'tblTempUsageDetail_20' ) end [2025-01-30 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366787', 'tblTempVendorCDR_20' ) start [2025-01-30 22:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366787', 'tblTempVendorCDR_20' ) end [2025-01-30 22:42:20] Production.INFO: ProcessCDR(1,14366787,1,1,2) [2025-01-30 22:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366787', 'tblTempUsageDetail_20' ) start [2025-01-30 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366787', 'tblTempUsageDetail_20' ) end [2025-01-30 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:42:23] Production.INFO: ==10857== Releasing lock... [2025-01-30 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:42:23] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:43:05 [end_date_ymd] => 2025-01-30 22:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:43:05' and `end` < '2025-01-30 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-30 22:43:18] Production.INFO: count ==917 [2025-01-30 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:43:05 - End Time 2025-01-30 22:43:05 [2025-01-30 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366792', 'tblTempUsageDetail_20' ) start [2025-01-30 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366792', 'tblTempUsageDetail_20' ) end [2025-01-30 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366792', 'tblTempVendorCDR_20' ) start [2025-01-30 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366792', 'tblTempVendorCDR_20' ) end [2025-01-30 22:43:18] Production.INFO: ProcessCDR(1,14366792,1,1,2) [2025-01-30 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366792', 'tblTempUsageDetail_20' ) start [2025-01-30 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366792', 'tblTempUsageDetail_20' ) end [2025-01-30 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:43:21] Production.INFO: ==10945== Releasing lock... [2025-01-30 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:43:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:44:05 [end_date_ymd] => 2025-01-30 22:44:05 [RateCDR] => 1 ) [2025-01-30 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:44:05' and `end` < '2025-01-30 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:44:18] Production.INFO: count ==917 [2025-01-30 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:44:05 - End Time 2025-01-30 22:44:05 [2025-01-30 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366797', 'tblTempUsageDetail_20' ) start [2025-01-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366797', 'tblTempUsageDetail_20' ) end [2025-01-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366797', 'tblTempVendorCDR_20' ) start [2025-01-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366797', 'tblTempVendorCDR_20' ) end [2025-01-30 22:44:18] Production.INFO: ProcessCDR(1,14366797,1,1,2) [2025-01-30 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366797', 'tblTempUsageDetail_20' ) start [2025-01-30 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366797', 'tblTempUsageDetail_20' ) end [2025-01-30 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:44:21] Production.INFO: ==11021== Releasing lock... [2025-01-30 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:44:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:45:06 [end_date_ymd] => 2025-01-30 22:45:06 [RateCDR] => 1 ) [2025-01-30 22:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:45:06' and `end` < '2025-01-30 22:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:45:19] Production.INFO: count ==919 [2025-01-30 22:45:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:45:06 - End Time 2025-01-30 22:45:06 [2025-01-30 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366802', 'tblTempUsageDetail_20' ) start [2025-01-30 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366802', 'tblTempUsageDetail_20' ) end [2025-01-30 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366802', 'tblTempVendorCDR_20' ) start [2025-01-30 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366802', 'tblTempVendorCDR_20' ) end [2025-01-30 22:45:19] Production.INFO: ProcessCDR(1,14366802,1,1,2) [2025-01-30 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366802', 'tblTempUsageDetail_20' ) start [2025-01-30 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366802', 'tblTempUsageDetail_20' ) end [2025-01-30 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:45:22] Production.INFO: ==11101== Releasing lock... [2025-01-30 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:45:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:46:06 [end_date_ymd] => 2025-01-30 22:46:06 [RateCDR] => 1 ) [2025-01-30 22: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-30 19:46:06' and `end` < '2025-01-30 22: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-30 22:46:18] Production.INFO: count ==922 [2025-01-30 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:46:06 - End Time 2025-01-30 22:46:06 [2025-01-30 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366807', 'tblTempUsageDetail_20' ) start [2025-01-30 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366807', 'tblTempUsageDetail_20' ) end [2025-01-30 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366807', 'tblTempVendorCDR_20' ) start [2025-01-30 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366807', 'tblTempVendorCDR_20' ) end [2025-01-30 22:46:18] Production.INFO: ProcessCDR(1,14366807,1,1,2) [2025-01-30 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366807', 'tblTempUsageDetail_20' ) start [2025-01-30 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366807', 'tblTempUsageDetail_20' ) end [2025-01-30 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:46:22] Production.INFO: ==11176== Releasing lock... [2025-01-30 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:46:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:47:05 [end_date_ymd] => 2025-01-30 22:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:47:05' and `end` < '2025-01-30 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-30 22:47:19] Production.INFO: count ==922 [2025-01-30 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:47:05 - End Time 2025-01-30 22:47:05 [2025-01-30 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366812', 'tblTempUsageDetail_20' ) start [2025-01-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366812', 'tblTempUsageDetail_20' ) end [2025-01-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366812', 'tblTempVendorCDR_20' ) start [2025-01-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366812', 'tblTempVendorCDR_20' ) end [2025-01-30 22:47:19] Production.INFO: ProcessCDR(1,14366812,1,1,2) [2025-01-30 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366812', 'tblTempUsageDetail_20' ) start [2025-01-30 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366812', 'tblTempUsageDetail_20' ) end [2025-01-30 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:47:22] Production.INFO: ==11251== Releasing lock... [2025-01-30 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:47:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:48:05 [end_date_ymd] => 2025-01-30 22:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:48:05' and `end` < '2025-01-30 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-30 22:48:18] Production.INFO: count ==921 [2025-01-30 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:48:05 - End Time 2025-01-30 22:48:05 [2025-01-30 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366817', 'tblTempUsageDetail_20' ) start [2025-01-30 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366817', 'tblTempUsageDetail_20' ) end [2025-01-30 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366817', 'tblTempVendorCDR_20' ) start [2025-01-30 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366817', 'tblTempVendorCDR_20' ) end [2025-01-30 22:48:19] Production.INFO: ProcessCDR(1,14366817,1,1,2) [2025-01-30 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366817', 'tblTempUsageDetail_20' ) start [2025-01-30 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366817', 'tblTempUsageDetail_20' ) end [2025-01-30 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:48:22] Production.INFO: ==11325== Releasing lock... [2025-01-30 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:48:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:49:05 [end_date_ymd] => 2025-01-30 22:49:05 [RateCDR] => 1 ) [2025-01-30 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:49:05' and `end` < '2025-01-30 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:49:17] Production.INFO: count ==920 [2025-01-30 22:49:17] Production.ERROR: pbx CDR StartTime 2025-01-30 19:49:05 - End Time 2025-01-30 22:49:05 [2025-01-30 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366822', 'tblTempUsageDetail_20' ) start [2025-01-30 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366822', 'tblTempUsageDetail_20' ) end [2025-01-30 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366822', 'tblTempVendorCDR_20' ) start [2025-01-30 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366822', 'tblTempVendorCDR_20' ) end [2025-01-30 22:49:17] Production.INFO: ProcessCDR(1,14366822,1,1,2) [2025-01-30 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366822', 'tblTempUsageDetail_20' ) start [2025-01-30 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366822', 'tblTempUsageDetail_20' ) end [2025-01-30 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:49:21] Production.INFO: ==11403== Releasing lock... [2025-01-30 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:50:06 [end_date_ymd] => 2025-01-30 22:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 19:50:06' and `end` < '2025-01-30 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-30 22:50:19] Production.INFO: count ==919 [2025-01-30 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:50:06 - End Time 2025-01-30 22:50:06 [2025-01-30 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366828', 'tblTempUsageDetail_20' ) start [2025-01-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366828', 'tblTempUsageDetail_20' ) end [2025-01-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366828', 'tblTempVendorCDR_20' ) start [2025-01-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366828', 'tblTempVendorCDR_20' ) end [2025-01-30 22:50:19] Production.INFO: ProcessCDR(1,14366828,1,1,2) [2025-01-30 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366828', 'tblTempUsageDetail_20' ) start [2025-01-30 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366828', 'tblTempUsageDetail_20' ) end [2025-01-30 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:50:22] Production.INFO: ==11478== Releasing lock... [2025-01-30 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:50:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:51:05 [end_date_ymd] => 2025-01-30 22:51:05 [RateCDR] => 1 ) [2025-01-30 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:51:05' and `end` < '2025-01-30 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:51:19] Production.INFO: count ==912 [2025-01-30 22:51:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:51:05 - End Time 2025-01-30 22:51:05 [2025-01-30 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366833', 'tblTempUsageDetail_20' ) start [2025-01-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366833', 'tblTempUsageDetail_20' ) end [2025-01-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366833', 'tblTempVendorCDR_20' ) start [2025-01-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366833', 'tblTempVendorCDR_20' ) end [2025-01-30 22:51:19] Production.INFO: ProcessCDR(1,14366833,1,1,2) [2025-01-30 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366833', 'tblTempUsageDetail_20' ) start [2025-01-30 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366833', 'tblTempUsageDetail_20' ) end [2025-01-30 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:51:22] Production.INFO: ==11591== Releasing lock... [2025-01-30 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:51:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:52:06 [end_date_ymd] => 2025-01-30 22:52:06 [RateCDR] => 1 ) [2025-01-30 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:52:06' and `end` < '2025-01-30 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:52:18] Production.INFO: count ==913 [2025-01-30 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:52:06 - End Time 2025-01-30 22:52:06 [2025-01-30 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366838', 'tblTempUsageDetail_20' ) start [2025-01-30 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366838', 'tblTempUsageDetail_20' ) end [2025-01-30 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366838', 'tblTempVendorCDR_20' ) start [2025-01-30 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366838', 'tblTempVendorCDR_20' ) end [2025-01-30 22:52:18] Production.INFO: ProcessCDR(1,14366838,1,1,2) [2025-01-30 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366838', 'tblTempUsageDetail_20' ) start [2025-01-30 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366838', 'tblTempUsageDetail_20' ) end [2025-01-30 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:52:23] Production.INFO: ==11663== Releasing lock... [2025-01-30 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:52:23] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:53:04 [end_date_ymd] => 2025-01-30 22:53:04 [RateCDR] => 1 ) [2025-01-30 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:53:04' and `end` < '2025-01-30 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-30 22:53:19] Production.INFO: count ==916 [2025-01-30 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:53:04 - End Time 2025-01-30 22:53:04 [2025-01-30 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366843', 'tblTempUsageDetail_20' ) start [2025-01-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366843', 'tblTempUsageDetail_20' ) end [2025-01-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366843', 'tblTempVendorCDR_20' ) start [2025-01-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366843', 'tblTempVendorCDR_20' ) end [2025-01-30 22:53:19] Production.INFO: ProcessCDR(1,14366843,1,1,2) [2025-01-30 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366843', 'tblTempUsageDetail_20' ) start [2025-01-30 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366843', 'tblTempUsageDetail_20' ) end [2025-01-30 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:53:22] Production.INFO: ==11736== Releasing lock... [2025-01-30 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:53:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:54:05 [end_date_ymd] => 2025-01-30 22:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:54:05' and `end` < '2025-01-30 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-30 22:54:18] Production.INFO: count ==923 [2025-01-30 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:54:05 - End Time 2025-01-30 22:54:05 [2025-01-30 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366848', 'tblTempUsageDetail_20' ) start [2025-01-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366848', 'tblTempUsageDetail_20' ) end [2025-01-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366848', 'tblTempVendorCDR_20' ) start [2025-01-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366848', 'tblTempVendorCDR_20' ) end [2025-01-30 22:54:18] Production.INFO: ProcessCDR(1,14366848,1,1,2) [2025-01-30 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366848', 'tblTempUsageDetail_20' ) start [2025-01-30 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366848', 'tblTempUsageDetail_20' ) end [2025-01-30 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:54:23] Production.INFO: ==11811== Releasing lock... [2025-01-30 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:54:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:55:06 [end_date_ymd] => 2025-01-30 22:55:06 [RateCDR] => 1 ) [2025-01-30 22:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:55:06' and `end` < '2025-01-30 22:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:55:18] Production.INFO: count ==922 [2025-01-30 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:55:06 - End Time 2025-01-30 22:55:06 [2025-01-30 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366853', 'tblTempUsageDetail_20' ) start [2025-01-30 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366853', 'tblTempUsageDetail_20' ) end [2025-01-30 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366853', 'tblTempVendorCDR_20' ) start [2025-01-30 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366853', 'tblTempVendorCDR_20' ) end [2025-01-30 22:55:19] Production.INFO: ProcessCDR(1,14366853,1,1,2) [2025-01-30 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366853', 'tblTempUsageDetail_20' ) start [2025-01-30 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366853', 'tblTempUsageDetail_20' ) end [2025-01-30 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:55:22] Production.INFO: ==11884== Releasing lock... [2025-01-30 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:55:22] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:56:05 [end_date_ymd] => 2025-01-30 22:56:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:56:05' and `end` < '2025-01-30 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-30 22:56:19] Production.INFO: count ==914 [2025-01-30 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-30 19:56:05 - End Time 2025-01-30 22:56:05 [2025-01-30 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366858', 'tblTempUsageDetail_20' ) start [2025-01-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366858', 'tblTempUsageDetail_20' ) end [2025-01-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366858', 'tblTempVendorCDR_20' ) start [2025-01-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366858', 'tblTempVendorCDR_20' ) end [2025-01-30 22:56:19] Production.INFO: ProcessCDR(1,14366858,1,1,2) [2025-01-30 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366858', 'tblTempUsageDetail_20' ) start [2025-01-30 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366858', 'tblTempUsageDetail_20' ) end [2025-01-30 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:56:23] Production.INFO: ==11980== Releasing lock... [2025-01-30 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:56:23] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:57:06 [end_date_ymd] => 2025-01-30 22:57:06 [RateCDR] => 1 ) [2025-01-30 22:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:57:06' and `end` < '2025-01-30 22:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:57:20] Production.INFO: count ==914 [2025-01-30 22:57:20] Production.ERROR: pbx CDR StartTime 2025-01-30 19:57:06 - End Time 2025-01-30 22:57:06 [2025-01-30 22:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366863', 'tblTempUsageDetail_20' ) start [2025-01-30 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366863', 'tblTempUsageDetail_20' ) end [2025-01-30 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366863', 'tblTempVendorCDR_20' ) start [2025-01-30 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366863', 'tblTempVendorCDR_20' ) end [2025-01-30 22:57:20] Production.INFO: ProcessCDR(1,14366863,1,1,2) [2025-01-30 22:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366863', 'tblTempUsageDetail_20' ) start [2025-01-30 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366863', 'tblTempUsageDetail_20' ) end [2025-01-30 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:57:23] Production.INFO: ==12053== Releasing lock... [2025-01-30 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:57:23] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:58:05 [end_date_ymd] => 2025-01-30 22:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 19:58:05' and `end` < '2025-01-30 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-30 22:58:18] Production.INFO: count ==914 [2025-01-30 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:58:05 - End Time 2025-01-30 22:58:05 [2025-01-30 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366868', 'tblTempUsageDetail_20' ) start [2025-01-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366868', 'tblTempUsageDetail_20' ) end [2025-01-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366868', 'tblTempVendorCDR_20' ) start [2025-01-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366868', 'tblTempVendorCDR_20' ) end [2025-01-30 22:58:18] Production.INFO: ProcessCDR(1,14366868,1,1,2) [2025-01-30 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366868', 'tblTempUsageDetail_20' ) start [2025-01-30 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366868', 'tblTempUsageDetail_20' ) end [2025-01-30 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:58:21] Production.INFO: ==12127== Releasing lock... [2025-01-30 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:58:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 19:59:06 [end_date_ymd] => 2025-01-30 22:59:06 [RateCDR] => 1 ) [2025-01-30 22:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 19:59:06' and `end` < '2025-01-30 22:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 22:59:18] Production.INFO: count ==913 [2025-01-30 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-30 19:59:06 - End Time 2025-01-30 22:59:06 [2025-01-30 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366873', 'tblTempUsageDetail_20' ) start [2025-01-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366873', 'tblTempUsageDetail_20' ) end [2025-01-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366873', 'tblTempVendorCDR_20' ) start [2025-01-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366873', 'tblTempVendorCDR_20' ) end [2025-01-30 22:59:18] Production.INFO: ProcessCDR(1,14366873,1,1,2) [2025-01-30 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366873', 'tblTempUsageDetail_20' ) start [2025-01-30 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366873', 'tblTempUsageDetail_20' ) end [2025-01-30 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 22:59:22] Production.INFO: ==12202== Releasing lock... [2025-01-30 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 22:59:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:00:06 [end_date_ymd] => 2025-01-30 23:00:06 [RateCDR] => 1 ) [2025-01-30 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:00:06' and `end` < '2025-01-30 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:00:18] Production.INFO: count ==913 [2025-01-30 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:00:06 - End Time 2025-01-30 23:00:06 [2025-01-30 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366879', 'tblTempUsageDetail_20' ) start [2025-01-30 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366879', 'tblTempUsageDetail_20' ) end [2025-01-30 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366879', 'tblTempVendorCDR_20' ) start [2025-01-30 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366879', 'tblTempVendorCDR_20' ) end [2025-01-30 23:00:19] Production.INFO: ProcessCDR(1,14366879,1,1,2) [2025-01-30 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366879', 'tblTempUsageDetail_20' ) start [2025-01-30 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366879', 'tblTempUsageDetail_20' ) end [2025-01-30 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:00:22] Production.INFO: ==12282== Releasing lock... [2025-01-30 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:00:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-30 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:01:05 [end_date_ymd] => 2025-01-30 23:01:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:01:05' and `end` < '2025-01-30 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-30 23:01:18] Production.INFO: count ==889 [2025-01-30 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:01:05 - End Time 2025-01-30 23:01:05 [2025-01-30 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366884', 'tblTempUsageDetail_20' ) start [2025-01-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366884', 'tblTempUsageDetail_20' ) end [2025-01-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366884', 'tblTempVendorCDR_20' ) start [2025-01-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366884', 'tblTempVendorCDR_20' ) end [2025-01-30 23:01:18] Production.INFO: ProcessCDR(1,14366884,1,1,2) [2025-01-30 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366884', 'tblTempUsageDetail_20' ) start [2025-01-30 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366884', 'tblTempUsageDetail_20' ) end [2025-01-30 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:01:21] Production.INFO: ==12446== Releasing lock... [2025-01-30 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:01:21] Production.INFO: 34 MB #Memory Used# [2025-01-30 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:02:05 [end_date_ymd] => 2025-01-30 23:02:05 [RateCDR] => 1 ) [2025-01-30 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:02:05' and `end` < '2025-01-30 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:02:18] Production.INFO: count ==888 [2025-01-30 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:02:05 - End Time 2025-01-30 23:02:05 [2025-01-30 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366889', 'tblTempUsageDetail_20' ) start [2025-01-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366889', 'tblTempUsageDetail_20' ) end [2025-01-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366889', 'tblTempVendorCDR_20' ) start [2025-01-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366889', 'tblTempVendorCDR_20' ) end [2025-01-30 23:02:18] Production.INFO: ProcessCDR(1,14366889,1,1,2) [2025-01-30 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366889', 'tblTempUsageDetail_20' ) start [2025-01-30 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366889', 'tblTempUsageDetail_20' ) end [2025-01-30 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:02:21] Production.INFO: ==12518== Releasing lock... [2025-01-30 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:02:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:03:06 [end_date_ymd] => 2025-01-30 23:03:06 [RateCDR] => 1 ) [2025-01-30 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:03:06' and `end` < '2025-01-30 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:03:20] Production.INFO: count ==888 [2025-01-30 23:03:20] Production.ERROR: pbx CDR StartTime 2025-01-30 20:03:06 - End Time 2025-01-30 23:03:06 [2025-01-30 23:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366894', 'tblTempUsageDetail_20' ) start [2025-01-30 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366894', 'tblTempUsageDetail_20' ) end [2025-01-30 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366894', 'tblTempVendorCDR_20' ) start [2025-01-30 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366894', 'tblTempVendorCDR_20' ) end [2025-01-30 23:03:20] Production.INFO: ProcessCDR(1,14366894,1,1,2) [2025-01-30 23:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366894', 'tblTempUsageDetail_20' ) start [2025-01-30 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366894', 'tblTempUsageDetail_20' ) end [2025-01-30 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:03:23] Production.INFO: ==12593== Releasing lock... [2025-01-30 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:03:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:04:04 [end_date_ymd] => 2025-01-30 23:04:04 [RateCDR] => 1 ) [2025-01-30 23: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-30 20:04:04' and `end` < '2025-01-30 23: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-30 23:04:18] Production.INFO: count ==888 [2025-01-30 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:04:04 - End Time 2025-01-30 23:04:04 [2025-01-30 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366899', 'tblTempUsageDetail_20' ) start [2025-01-30 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366899', 'tblTempUsageDetail_20' ) end [2025-01-30 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366899', 'tblTempVendorCDR_20' ) start [2025-01-30 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366899', 'tblTempVendorCDR_20' ) end [2025-01-30 23:04:18] Production.INFO: ProcessCDR(1,14366899,1,1,2) [2025-01-30 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366899', 'tblTempUsageDetail_20' ) start [2025-01-30 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366899', 'tblTempUsageDetail_20' ) end [2025-01-30 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:04:22] Production.INFO: ==12667== Releasing lock... [2025-01-30 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:05:05 [end_date_ymd] => 2025-01-30 23:05:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:05:05' and `end` < '2025-01-30 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-30 23:05:18] Production.INFO: count ==888 [2025-01-30 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:05:05 - End Time 2025-01-30 23:05:05 [2025-01-30 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366904', 'tblTempUsageDetail_20' ) start [2025-01-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366904', 'tblTempUsageDetail_20' ) end [2025-01-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366904', 'tblTempVendorCDR_20' ) start [2025-01-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366904', 'tblTempVendorCDR_20' ) end [2025-01-30 23:05:18] Production.INFO: ProcessCDR(1,14366904,1,1,2) [2025-01-30 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366904', 'tblTempUsageDetail_20' ) start [2025-01-30 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366904', 'tblTempUsageDetail_20' ) end [2025-01-30 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:05:21] Production.INFO: ==12819== Releasing lock... [2025-01-30 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:06:05 [end_date_ymd] => 2025-01-30 23:06:05 [RateCDR] => 1 ) [2025-01-30 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:06:05' and `end` < '2025-01-30 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:06:20] Production.INFO: count ==886 [2025-01-30 23:06:20] Production.ERROR: pbx CDR StartTime 2025-01-30 20:06:05 - End Time 2025-01-30 23:06:05 [2025-01-30 23:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366909', 'tblTempUsageDetail_20' ) start [2025-01-30 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366909', 'tblTempUsageDetail_20' ) end [2025-01-30 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366909', 'tblTempVendorCDR_20' ) start [2025-01-30 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366909', 'tblTempVendorCDR_20' ) end [2025-01-30 23:06:20] Production.INFO: ProcessCDR(1,14366909,1,1,2) [2025-01-30 23:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366909', 'tblTempUsageDetail_20' ) start [2025-01-30 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366909', 'tblTempUsageDetail_20' ) end [2025-01-30 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:06:23] Production.INFO: ==12893== Releasing lock... [2025-01-30 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:06:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:07:05 [end_date_ymd] => 2025-01-30 23:07:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:07:05' and `end` < '2025-01-30 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-30 23:07:18] Production.INFO: count ==885 [2025-01-30 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:07:05 - End Time 2025-01-30 23:07:05 [2025-01-30 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366914', 'tblTempUsageDetail_20' ) start [2025-01-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366914', 'tblTempUsageDetail_20' ) end [2025-01-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366914', 'tblTempVendorCDR_20' ) start [2025-01-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366914', 'tblTempVendorCDR_20' ) end [2025-01-30 23:07:18] Production.INFO: ProcessCDR(1,14366914,1,1,2) [2025-01-30 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366914', 'tblTempUsageDetail_20' ) start [2025-01-30 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366914', 'tblTempUsageDetail_20' ) end [2025-01-30 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:07:21] Production.INFO: ==13004== Releasing lock... [2025-01-30 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:08:05 [end_date_ymd] => 2025-01-30 23:08:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:08:05' and `end` < '2025-01-30 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-30 23:08:18] Production.INFO: count ==874 [2025-01-30 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:08:05 - End Time 2025-01-30 23:08:05 [2025-01-30 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366919', 'tblTempUsageDetail_20' ) start [2025-01-30 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366919', 'tblTempUsageDetail_20' ) end [2025-01-30 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366919', 'tblTempVendorCDR_20' ) start [2025-01-30 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366919', 'tblTempVendorCDR_20' ) end [2025-01-30 23:08:18] Production.INFO: ProcessCDR(1,14366919,1,1,2) [2025-01-30 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366919', 'tblTempUsageDetail_20' ) start [2025-01-30 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366919', 'tblTempUsageDetail_20' ) end [2025-01-30 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:08:22] Production.INFO: ==13154== Releasing lock... [2025-01-30 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:09:05 [end_date_ymd] => 2025-01-30 23:09:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:09:05' and `end` < '2025-01-30 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-30 23:09:18] Production.INFO: count ==875 [2025-01-30 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:09:05 - End Time 2025-01-30 23:09:05 [2025-01-30 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366924', 'tblTempUsageDetail_20' ) start [2025-01-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366924', 'tblTempUsageDetail_20' ) end [2025-01-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366924', 'tblTempVendorCDR_20' ) start [2025-01-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366924', 'tblTempVendorCDR_20' ) end [2025-01-30 23:09:18] Production.INFO: ProcessCDR(1,14366924,1,1,2) [2025-01-30 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366924', 'tblTempUsageDetail_20' ) start [2025-01-30 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366924', 'tblTempUsageDetail_20' ) end [2025-01-30 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:09:22] Production.INFO: ==13229== Releasing lock... [2025-01-30 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:10:05 [end_date_ymd] => 2025-01-30 23:10:05 [RateCDR] => 1 ) [2025-01-30 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:10:05' and `end` < '2025-01-30 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:10:18] Production.INFO: count ==870 [2025-01-30 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:10:05 - End Time 2025-01-30 23:10:05 [2025-01-30 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366930', 'tblTempUsageDetail_20' ) start [2025-01-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366930', 'tblTempUsageDetail_20' ) end [2025-01-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366930', 'tblTempVendorCDR_20' ) start [2025-01-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366930', 'tblTempVendorCDR_20' ) end [2025-01-30 23:10:18] Production.INFO: ProcessCDR(1,14366930,1,1,2) [2025-01-30 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366930', 'tblTempUsageDetail_20' ) start [2025-01-30 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366930', 'tblTempUsageDetail_20' ) end [2025-01-30 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:10:23] Production.INFO: ==13305== Releasing lock... [2025-01-30 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:11:05 [end_date_ymd] => 2025-01-30 23:11:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:11:05' and `end` < '2025-01-30 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-30 23:11:18] Production.INFO: count ==856 [2025-01-30 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:11:05 - End Time 2025-01-30 23:11:05 [2025-01-30 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366935', 'tblTempUsageDetail_20' ) start [2025-01-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366935', 'tblTempUsageDetail_20' ) end [2025-01-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366935', 'tblTempVendorCDR_20' ) start [2025-01-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366935', 'tblTempVendorCDR_20' ) end [2025-01-30 23:11:18] Production.INFO: ProcessCDR(1,14366935,1,1,2) [2025-01-30 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366935', 'tblTempUsageDetail_20' ) start [2025-01-30 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366935', 'tblTempUsageDetail_20' ) end [2025-01-30 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:11:21] Production.INFO: ==13381== Releasing lock... [2025-01-30 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:11:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:12:06 [end_date_ymd] => 2025-01-30 23:12:06 [RateCDR] => 1 ) [2025-01-30 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:12:06' and `end` < '2025-01-30 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:12:19] Production.INFO: count ==863 [2025-01-30 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:12:06 - End Time 2025-01-30 23:12:06 [2025-01-30 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366940', 'tblTempUsageDetail_20' ) start [2025-01-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366940', 'tblTempUsageDetail_20' ) end [2025-01-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366940', 'tblTempVendorCDR_20' ) start [2025-01-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366940', 'tblTempVendorCDR_20' ) end [2025-01-30 23:12:19] Production.INFO: ProcessCDR(1,14366940,1,1,2) [2025-01-30 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366940', 'tblTempUsageDetail_20' ) start [2025-01-30 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366940', 'tblTempUsageDetail_20' ) end [2025-01-30 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:12:22] Production.INFO: ==13531== Releasing lock... [2025-01-30 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:12:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:13:05 [end_date_ymd] => 2025-01-30 23:13:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:13:05' and `end` < '2025-01-30 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-30 23:13:19] Production.INFO: count ==860 [2025-01-30 23:13:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:13:05 - End Time 2025-01-30 23:13:05 [2025-01-30 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366945', 'tblTempUsageDetail_20' ) start [2025-01-30 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366945', 'tblTempUsageDetail_20' ) end [2025-01-30 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366945', 'tblTempVendorCDR_20' ) start [2025-01-30 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366945', 'tblTempVendorCDR_20' ) end [2025-01-30 23:13:19] Production.INFO: ProcessCDR(1,14366945,1,1,2) [2025-01-30 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366945', 'tblTempUsageDetail_20' ) start [2025-01-30 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366945', 'tblTempUsageDetail_20' ) end [2025-01-30 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:13:22] Production.INFO: ==13607== Releasing lock... [2025-01-30 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:13:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:14:05 [end_date_ymd] => 2025-01-30 23:14:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:14:05' and `end` < '2025-01-30 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-30 23:14:18] Production.INFO: count ==859 [2025-01-30 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:14:05 - End Time 2025-01-30 23:14:05 [2025-01-30 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366950', 'tblTempUsageDetail_20' ) start [2025-01-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366950', 'tblTempUsageDetail_20' ) end [2025-01-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366950', 'tblTempVendorCDR_20' ) start [2025-01-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366950', 'tblTempVendorCDR_20' ) end [2025-01-30 23:14:18] Production.INFO: ProcessCDR(1,14366950,1,1,2) [2025-01-30 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366950', 'tblTempUsageDetail_20' ) start [2025-01-30 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366950', 'tblTempUsageDetail_20' ) end [2025-01-30 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:14:22] Production.INFO: ==13691== Releasing lock... [2025-01-30 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:14:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:15:05 [end_date_ymd] => 2025-01-30 23:15:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:15:05' and `end` < '2025-01-30 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-30 23:15:18] Production.INFO: count ==858 [2025-01-30 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:15:05 - End Time 2025-01-30 23:15:05 [2025-01-30 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366955', 'tblTempUsageDetail_20' ) start [2025-01-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366955', 'tblTempUsageDetail_20' ) end [2025-01-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366955', 'tblTempVendorCDR_20' ) start [2025-01-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366955', 'tblTempVendorCDR_20' ) end [2025-01-30 23:15:18] Production.INFO: ProcessCDR(1,14366955,1,1,2) [2025-01-30 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366955', 'tblTempUsageDetail_20' ) start [2025-01-30 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366955', 'tblTempUsageDetail_20' ) end [2025-01-30 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:15:21] Production.INFO: ==13854== Releasing lock... [2025-01-30 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:16:05 [end_date_ymd] => 2025-01-30 23:16:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:16:05' and `end` < '2025-01-30 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-30 23:16:18] Production.INFO: count ==858 [2025-01-30 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:16:05 - End Time 2025-01-30 23:16:05 [2025-01-30 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366960', 'tblTempUsageDetail_20' ) start [2025-01-30 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366960', 'tblTempUsageDetail_20' ) end [2025-01-30 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366960', 'tblTempVendorCDR_20' ) start [2025-01-30 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366960', 'tblTempVendorCDR_20' ) end [2025-01-30 23:16:18] Production.INFO: ProcessCDR(1,14366960,1,1,2) [2025-01-30 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366960', 'tblTempUsageDetail_20' ) start [2025-01-30 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366960', 'tblTempUsageDetail_20' ) end [2025-01-30 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:16:23] Production.INFO: ==13933== Releasing lock... [2025-01-30 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:16:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:17:05 [end_date_ymd] => 2025-01-30 23:17:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:17:05' and `end` < '2025-01-30 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-30 23:17:18] Production.INFO: count ==856 [2025-01-30 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:17:05 - End Time 2025-01-30 23:17:05 [2025-01-30 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366965', 'tblTempUsageDetail_20' ) start [2025-01-30 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366965', 'tblTempUsageDetail_20' ) end [2025-01-30 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366965', 'tblTempVendorCDR_20' ) start [2025-01-30 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366965', 'tblTempVendorCDR_20' ) end [2025-01-30 23:17:19] Production.INFO: ProcessCDR(1,14366965,1,1,2) [2025-01-30 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366965', 'tblTempUsageDetail_20' ) start [2025-01-30 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366965', 'tblTempUsageDetail_20' ) end [2025-01-30 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:17:22] Production.INFO: ==14015== Releasing lock... [2025-01-30 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:17:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:18:06 [end_date_ymd] => 2025-01-30 23:18:06 [RateCDR] => 1 ) [2025-01-30 23:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:18:06' and `end` < '2025-01-30 23:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:18:19] Production.INFO: count ==854 [2025-01-30 23:18:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:18:06 - End Time 2025-01-30 23:18:06 [2025-01-30 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366970', 'tblTempUsageDetail_20' ) start [2025-01-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366970', 'tblTempUsageDetail_20' ) end [2025-01-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366970', 'tblTempVendorCDR_20' ) start [2025-01-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366970', 'tblTempVendorCDR_20' ) end [2025-01-30 23:18:19] Production.INFO: ProcessCDR(1,14366970,1,1,2) [2025-01-30 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366970', 'tblTempUsageDetail_20' ) start [2025-01-30 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366970', 'tblTempUsageDetail_20' ) end [2025-01-30 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:18:23] Production.INFO: ==14094== Releasing lock... [2025-01-30 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:18:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:19:05 [end_date_ymd] => 2025-01-30 23:19:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:19:05' and `end` < '2025-01-30 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-30 23:19:18] Production.INFO: count ==858 [2025-01-30 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:19:05 - End Time 2025-01-30 23:19:05 [2025-01-30 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366975', 'tblTempUsageDetail_20' ) start [2025-01-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366975', 'tblTempUsageDetail_20' ) end [2025-01-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366975', 'tblTempVendorCDR_20' ) start [2025-01-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366975', 'tblTempVendorCDR_20' ) end [2025-01-30 23:19:18] Production.INFO: ProcessCDR(1,14366975,1,1,2) [2025-01-30 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366975', 'tblTempUsageDetail_20' ) start [2025-01-30 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366975', 'tblTempUsageDetail_20' ) end [2025-01-30 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:19:21] Production.INFO: ==14177== Releasing lock... [2025-01-30 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:19:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:20:06 [end_date_ymd] => 2025-01-30 23:20:06 [RateCDR] => 1 ) [2025-01-30 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-30 20:20:06' and `end` < '2025-01-30 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-30 23:20:19] Production.INFO: count ==859 [2025-01-30 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:20:06 - End Time 2025-01-30 23:20:06 [2025-01-30 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366980', 'tblTempUsageDetail_20' ) start [2025-01-30 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366980', 'tblTempUsageDetail_20' ) end [2025-01-30 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366980', 'tblTempVendorCDR_20' ) start [2025-01-30 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366980', 'tblTempVendorCDR_20' ) end [2025-01-30 23:20:19] Production.INFO: ProcessCDR(1,14366980,1,1,2) [2025-01-30 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366980', 'tblTempUsageDetail_20' ) start [2025-01-30 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366980', 'tblTempUsageDetail_20' ) end [2025-01-30 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:20:23] Production.INFO: ==14258== Releasing lock... [2025-01-30 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:20:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:21:05 [end_date_ymd] => 2025-01-30 23:21:05 [RateCDR] => 1 ) [2025-01-30 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:21:05' and `end` < '2025-01-30 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:21:19] Production.INFO: count ==846 [2025-01-30 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:21:05 - End Time 2025-01-30 23:21:05 [2025-01-30 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366986', 'tblTempUsageDetail_20' ) start [2025-01-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366986', 'tblTempUsageDetail_20' ) end [2025-01-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366986', 'tblTempVendorCDR_20' ) start [2025-01-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366986', 'tblTempVendorCDR_20' ) end [2025-01-30 23:21:19] Production.INFO: ProcessCDR(1,14366986,1,1,2) [2025-01-30 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366986', 'tblTempUsageDetail_20' ) start [2025-01-30 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366986', 'tblTempUsageDetail_20' ) end [2025-01-30 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:21:23] Production.INFO: ==14330== Releasing lock... [2025-01-30 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:21:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:22:05 [end_date_ymd] => 2025-01-30 23:22:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:22:05' and `end` < '2025-01-30 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-30 23:22:18] Production.INFO: count ==846 [2025-01-30 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:22:05 - End Time 2025-01-30 23:22:05 [2025-01-30 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366991', 'tblTempUsageDetail_20' ) start [2025-01-30 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366991', 'tblTempUsageDetail_20' ) end [2025-01-30 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366991', 'tblTempVendorCDR_20' ) start [2025-01-30 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366991', 'tblTempVendorCDR_20' ) end [2025-01-30 23:22:18] Production.INFO: ProcessCDR(1,14366991,1,1,2) [2025-01-30 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366991', 'tblTempUsageDetail_20' ) start [2025-01-30 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366991', 'tblTempUsageDetail_20' ) end [2025-01-30 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:22:21] Production.INFO: ==14453== Releasing lock... [2025-01-30 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:23:05 [end_date_ymd] => 2025-01-30 23:23:05 [RateCDR] => 1 ) [2025-01-30 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:23:05' and `end` < '2025-01-30 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:23:20] Production.INFO: count ==864 [2025-01-30 23:23:20] Production.ERROR: pbx CDR StartTime 2025-01-30 20:23:05 - End Time 2025-01-30 23:23:05 [2025-01-30 23:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366996', 'tblTempUsageDetail_20' ) start [2025-01-30 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14366996', 'tblTempUsageDetail_20' ) end [2025-01-30 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366996', 'tblTempVendorCDR_20' ) start [2025-01-30 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14366996', 'tblTempVendorCDR_20' ) end [2025-01-30 23:23:20] Production.INFO: ProcessCDR(1,14366996,1,1,2) [2025-01-30 23:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14366996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14366996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14366996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14366996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366996', 'tblTempUsageDetail_20' ) start [2025-01-30 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14366996', 'tblTempUsageDetail_20' ) end [2025-01-30 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:23:23] Production.INFO: ==14530== Releasing lock... [2025-01-30 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:23:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:24:05 [end_date_ymd] => 2025-01-30 23:24:05 [RateCDR] => 1 ) [2025-01-30 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:24:05' and `end` < '2025-01-30 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-30 23:24:18] Production.INFO: count ==867 [2025-01-30 23:24:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:24:05 - End Time 2025-01-30 23:24:05 [2025-01-30 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367001', 'tblTempUsageDetail_20' ) start [2025-01-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367001', 'tblTempUsageDetail_20' ) end [2025-01-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367001', 'tblTempVendorCDR_20' ) start [2025-01-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367001', 'tblTempVendorCDR_20' ) end [2025-01-30 23:24:19] Production.INFO: ProcessCDR(1,14367001,1,1,2) [2025-01-30 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367001', 'tblTempUsageDetail_20' ) start [2025-01-30 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367001', 'tblTempUsageDetail_20' ) end [2025-01-30 23:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:24:24] Production.INFO: ==14612== Releasing lock... [2025-01-30 23:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:24:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:25:04 [end_date_ymd] => 2025-01-30 23:25:04 [RateCDR] => 1 ) [2025-01-30 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-30 20:25:04' and `end` < '2025-01-30 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:25:17] Production.INFO: count ==867 [2025-01-30 23:25:17] Production.ERROR: pbx CDR StartTime 2025-01-30 20:25:04 - End Time 2025-01-30 23:25:04 [2025-01-30 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367006', 'tblTempUsageDetail_20' ) start [2025-01-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367006', 'tblTempUsageDetail_20' ) end [2025-01-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367006', 'tblTempVendorCDR_20' ) start [2025-01-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367006', 'tblTempVendorCDR_20' ) end [2025-01-30 23:25:17] Production.INFO: ProcessCDR(1,14367006,1,1,2) [2025-01-30 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367006', 'tblTempUsageDetail_20' ) start [2025-01-30 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367006', 'tblTempUsageDetail_20' ) end [2025-01-30 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:25:21] Production.INFO: ==14689== Releasing lock... [2025-01-30 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:25:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:26:05 [end_date_ymd] => 2025-01-30 23:26:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:26:05' and `end` < '2025-01-30 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-30 23:26:18] Production.INFO: count ==867 [2025-01-30 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:26:05 - End Time 2025-01-30 23:26:05 [2025-01-30 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367011', 'tblTempUsageDetail_20' ) start [2025-01-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367011', 'tblTempUsageDetail_20' ) end [2025-01-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367011', 'tblTempVendorCDR_20' ) start [2025-01-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367011', 'tblTempVendorCDR_20' ) end [2025-01-30 23:26:18] Production.INFO: ProcessCDR(1,14367011,1,1,2) [2025-01-30 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367011', 'tblTempUsageDetail_20' ) start [2025-01-30 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367011', 'tblTempUsageDetail_20' ) end [2025-01-30 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:26:21] Production.INFO: ==14776== Releasing lock... [2025-01-30 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:26:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:27:04 [end_date_ymd] => 2025-01-30 23:27:04 [RateCDR] => 1 ) [2025-01-30 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:27:04' and `end` < '2025-01-30 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:27:19] Production.INFO: count ==866 [2025-01-30 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:27:04 - End Time 2025-01-30 23:27:04 [2025-01-30 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367016', 'tblTempUsageDetail_20' ) start [2025-01-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367016', 'tblTempUsageDetail_20' ) end [2025-01-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367016', 'tblTempVendorCDR_20' ) start [2025-01-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367016', 'tblTempVendorCDR_20' ) end [2025-01-30 23:27:19] Production.INFO: ProcessCDR(1,14367016,1,1,2) [2025-01-30 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367016', 'tblTempUsageDetail_20' ) start [2025-01-30 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367016', 'tblTempUsageDetail_20' ) end [2025-01-30 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:27:22] Production.INFO: ==14860== Releasing lock... [2025-01-30 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:27:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:28:05 [end_date_ymd] => 2025-01-30 23:28:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:28:05' and `end` < '2025-01-30 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-30 23:28:18] Production.INFO: count ==858 [2025-01-30 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:28:05 - End Time 2025-01-30 23:28:05 [2025-01-30 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367021', 'tblTempUsageDetail_20' ) start [2025-01-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367021', 'tblTempUsageDetail_20' ) end [2025-01-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367021', 'tblTempVendorCDR_20' ) start [2025-01-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367021', 'tblTempVendorCDR_20' ) end [2025-01-30 23:28:18] Production.INFO: ProcessCDR(1,14367021,1,1,2) [2025-01-30 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367021', 'tblTempUsageDetail_20' ) start [2025-01-30 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367021', 'tblTempUsageDetail_20' ) end [2025-01-30 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:28:21] Production.INFO: ==14932== Releasing lock... [2025-01-30 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:29:05 [end_date_ymd] => 2025-01-30 23:29:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:29:05' and `end` < '2025-01-30 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-30 23:29:18] Production.INFO: count ==857 [2025-01-30 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:29:05 - End Time 2025-01-30 23:29:05 [2025-01-30 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367026', 'tblTempUsageDetail_20' ) start [2025-01-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367026', 'tblTempUsageDetail_20' ) end [2025-01-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367026', 'tblTempVendorCDR_20' ) start [2025-01-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367026', 'tblTempVendorCDR_20' ) end [2025-01-30 23:29:18] Production.INFO: ProcessCDR(1,14367026,1,1,2) [2025-01-30 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367026', 'tblTempUsageDetail_20' ) start [2025-01-30 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367026', 'tblTempUsageDetail_20' ) end [2025-01-30 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:29:21] Production.INFO: ==15014== Releasing lock... [2025-01-30 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:29:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:30:06 [end_date_ymd] => 2025-01-30 23:30:06 [RateCDR] => 1 ) [2025-01-30 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:30:06' and `end` < '2025-01-30 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:30:18] Production.INFO: count ==859 [2025-01-30 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:30:06 - End Time 2025-01-30 23:30:06 [2025-01-30 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367032', 'tblTempUsageDetail_20' ) start [2025-01-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367032', 'tblTempUsageDetail_20' ) end [2025-01-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367032', 'tblTempVendorCDR_20' ) start [2025-01-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367032', 'tblTempVendorCDR_20' ) end [2025-01-30 23:30:18] Production.INFO: ProcessCDR(1,14367032,1,1,2) [2025-01-30 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367032', 'tblTempUsageDetail_20' ) start [2025-01-30 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367032', 'tblTempUsageDetail_20' ) end [2025-01-30 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:30:22] Production.INFO: ==15102== Releasing lock... [2025-01-30 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:31:05 [end_date_ymd] => 2025-01-30 23:31:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:31:05' and `end` < '2025-01-30 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-30 23:31:18] Production.INFO: count ==854 [2025-01-30 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:31:05 - End Time 2025-01-30 23:31:05 [2025-01-30 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367037', 'tblTempUsageDetail_20' ) start [2025-01-30 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367037', 'tblTempUsageDetail_20' ) end [2025-01-30 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367037', 'tblTempVendorCDR_20' ) start [2025-01-30 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367037', 'tblTempVendorCDR_20' ) end [2025-01-30 23:31:18] Production.INFO: ProcessCDR(1,14367037,1,1,2) [2025-01-30 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367037', 'tblTempUsageDetail_20' ) start [2025-01-30 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367037', 'tblTempUsageDetail_20' ) end [2025-01-30 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:31:21] Production.INFO: ==15185== Releasing lock... [2025-01-30 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:32:05 [end_date_ymd] => 2025-01-30 23:32:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:32:05' and `end` < '2025-01-30 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-30 23:32:19] Production.INFO: count ==857 [2025-01-30 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:32:05 - End Time 2025-01-30 23:32:05 [2025-01-30 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367042', 'tblTempUsageDetail_20' ) start [2025-01-30 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367042', 'tblTempUsageDetail_20' ) end [2025-01-30 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367042', 'tblTempVendorCDR_20' ) start [2025-01-30 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367042', 'tblTempVendorCDR_20' ) end [2025-01-30 23:32:19] Production.INFO: ProcessCDR(1,14367042,1,1,2) [2025-01-30 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367042', 'tblTempUsageDetail_20' ) start [2025-01-30 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367042', 'tblTempUsageDetail_20' ) end [2025-01-30 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:32:22] Production.INFO: ==15258== Releasing lock... [2025-01-30 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:32:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:33:05 [end_date_ymd] => 2025-01-30 23:33:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:33:05' and `end` < '2025-01-30 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-30 23:33:19] Production.INFO: count ==857 [2025-01-30 23:33:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:33:05 - End Time 2025-01-30 23:33:05 [2025-01-30 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367047', 'tblTempUsageDetail_20' ) start [2025-01-30 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367047', 'tblTempUsageDetail_20' ) end [2025-01-30 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367047', 'tblTempVendorCDR_20' ) start [2025-01-30 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367047', 'tblTempVendorCDR_20' ) end [2025-01-30 23:33:19] Production.INFO: ProcessCDR(1,14367047,1,1,2) [2025-01-30 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367047', 'tblTempUsageDetail_20' ) start [2025-01-30 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367047', 'tblTempUsageDetail_20' ) end [2025-01-30 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:33:22] Production.INFO: ==15336== Releasing lock... [2025-01-30 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:34:05 [end_date_ymd] => 2025-01-30 23:34:05 [RateCDR] => 1 ) [2025-01-30 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:34:05' and `end` < '2025-01-30 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:34:17] Production.INFO: count ==857 [2025-01-30 23:34:17] Production.ERROR: pbx CDR StartTime 2025-01-30 20:34:05 - End Time 2025-01-30 23:34:05 [2025-01-30 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367052', 'tblTempUsageDetail_20' ) start [2025-01-30 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367052', 'tblTempUsageDetail_20' ) end [2025-01-30 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367052', 'tblTempVendorCDR_20' ) start [2025-01-30 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367052', 'tblTempVendorCDR_20' ) end [2025-01-30 23:34:17] Production.INFO: ProcessCDR(1,14367052,1,1,2) [2025-01-30 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367052', 'tblTempUsageDetail_20' ) start [2025-01-30 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367052', 'tblTempUsageDetail_20' ) end [2025-01-30 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:34:21] Production.INFO: ==15418== Releasing lock... [2025-01-30 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:35:05 [end_date_ymd] => 2025-01-30 23:35:05 [RateCDR] => 1 ) [2025-01-30 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:35:05' and `end` < '2025-01-30 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:35:19] Production.INFO: count ==857 [2025-01-30 23:35:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:35:05 - End Time 2025-01-30 23:35:05 [2025-01-30 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367057', 'tblTempUsageDetail_20' ) start [2025-01-30 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367057', 'tblTempUsageDetail_20' ) end [2025-01-30 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367057', 'tblTempVendorCDR_20' ) start [2025-01-30 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367057', 'tblTempVendorCDR_20' ) end [2025-01-30 23:35:19] Production.INFO: ProcessCDR(1,14367057,1,1,2) [2025-01-30 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367057', 'tblTempUsageDetail_20' ) start [2025-01-30 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367057', 'tblTempUsageDetail_20' ) end [2025-01-30 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:35:22] Production.INFO: ==15496== Releasing lock... [2025-01-30 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:36:05 [end_date_ymd] => 2025-01-30 23:36:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:36:05' and `end` < '2025-01-30 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-30 23:36:17] Production.INFO: count ==859 [2025-01-30 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:36:05 - End Time 2025-01-30 23:36:05 [2025-01-30 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367062', 'tblTempUsageDetail_20' ) start [2025-01-30 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367062', 'tblTempUsageDetail_20' ) end [2025-01-30 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367062', 'tblTempVendorCDR_20' ) start [2025-01-30 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367062', 'tblTempVendorCDR_20' ) end [2025-01-30 23:36:18] Production.INFO: ProcessCDR(1,14367062,1,1,2) [2025-01-30 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367062', 'tblTempUsageDetail_20' ) start [2025-01-30 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367062', 'tblTempUsageDetail_20' ) end [2025-01-30 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:36:21] Production.INFO: ==15573== Releasing lock... [2025-01-30 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:37:05 [end_date_ymd] => 2025-01-30 23:37:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:37:05' and `end` < '2025-01-30 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-30 23:37:18] Production.INFO: count ==859 [2025-01-30 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:37:05 - End Time 2025-01-30 23:37:05 [2025-01-30 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367067', 'tblTempUsageDetail_20' ) start [2025-01-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367067', 'tblTempUsageDetail_20' ) end [2025-01-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367067', 'tblTempVendorCDR_20' ) start [2025-01-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367067', 'tblTempVendorCDR_20' ) end [2025-01-30 23:37:18] Production.INFO: ProcessCDR(1,14367067,1,1,2) [2025-01-30 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367067', 'tblTempUsageDetail_20' ) start [2025-01-30 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367067', 'tblTempUsageDetail_20' ) end [2025-01-30 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:37:21] Production.INFO: ==15668== Releasing lock... [2025-01-30 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:38:06 [end_date_ymd] => 2025-01-30 23:38:06 [RateCDR] => 1 ) [2025-01-30 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-30 20:38:06' and `end` < '2025-01-30 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-30 23:38:19] Production.INFO: count ==859 [2025-01-30 23:38:20] Production.ERROR: pbx CDR StartTime 2025-01-30 20:38:06 - End Time 2025-01-30 23:38:06 [2025-01-30 23:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367072', 'tblTempUsageDetail_20' ) start [2025-01-30 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367072', 'tblTempUsageDetail_20' ) end [2025-01-30 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367072', 'tblTempVendorCDR_20' ) start [2025-01-30 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367072', 'tblTempVendorCDR_20' ) end [2025-01-30 23:38:20] Production.INFO: ProcessCDR(1,14367072,1,1,2) [2025-01-30 23:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367072', 'tblTempUsageDetail_20' ) start [2025-01-30 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367072', 'tblTempUsageDetail_20' ) end [2025-01-30 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:38:23] Production.INFO: ==15794== Releasing lock... [2025-01-30 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:38:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:39:05 [end_date_ymd] => 2025-01-30 23:39:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:39:05' and `end` < '2025-01-30 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-30 23:39:19] Production.INFO: count ==859 [2025-01-30 23:39:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:39:05 - End Time 2025-01-30 23:39:05 [2025-01-30 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367077', 'tblTempUsageDetail_20' ) start [2025-01-30 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367077', 'tblTempUsageDetail_20' ) end [2025-01-30 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367077', 'tblTempVendorCDR_20' ) start [2025-01-30 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367077', 'tblTempVendorCDR_20' ) end [2025-01-30 23:39:19] Production.INFO: ProcessCDR(1,14367077,1,1,2) [2025-01-30 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367077', 'tblTempUsageDetail_20' ) start [2025-01-30 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367077', 'tblTempUsageDetail_20' ) end [2025-01-30 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:39:22] Production.INFO: ==15882== Releasing lock... [2025-01-30 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:40:05 [end_date_ymd] => 2025-01-30 23:40:05 [RateCDR] => 1 ) [2025-01-30 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:40:05' and `end` < '2025-01-30 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:40:18] Production.INFO: count ==857 [2025-01-30 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:40:05 - End Time 2025-01-30 23:40:05 [2025-01-30 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367083', 'tblTempUsageDetail_20' ) start [2025-01-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367083', 'tblTempUsageDetail_20' ) end [2025-01-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367083', 'tblTempVendorCDR_20' ) start [2025-01-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367083', 'tblTempVendorCDR_20' ) end [2025-01-30 23:40:18] Production.INFO: ProcessCDR(1,14367083,1,1,2) [2025-01-30 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367083', 'tblTempUsageDetail_20' ) start [2025-01-30 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367083', 'tblTempUsageDetail_20' ) end [2025-01-30 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:40:21] Production.INFO: ==15956== Releasing lock... [2025-01-30 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:40:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:41:05 [end_date_ymd] => 2025-01-30 23:41:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:41:05' and `end` < '2025-01-30 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-30 23:41:19] Production.INFO: count ==847 [2025-01-30 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:41:05 - End Time 2025-01-30 23:41:05 [2025-01-30 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367088', 'tblTempUsageDetail_20' ) start [2025-01-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367088', 'tblTempUsageDetail_20' ) end [2025-01-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367088', 'tblTempVendorCDR_20' ) start [2025-01-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367088', 'tblTempVendorCDR_20' ) end [2025-01-30 23:41:19] Production.INFO: ProcessCDR(1,14367088,1,1,2) [2025-01-30 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367088', 'tblTempUsageDetail_20' ) start [2025-01-30 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367088', 'tblTempUsageDetail_20' ) end [2025-01-30 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:41:22] Production.INFO: ==16043== Releasing lock... [2025-01-30 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:42:06 [end_date_ymd] => 2025-01-30 23:42:06 [RateCDR] => 1 ) [2025-01-30 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:42:06' and `end` < '2025-01-30 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:42:20] Production.INFO: count ==847 [2025-01-30 23:42:20] Production.ERROR: pbx CDR StartTime 2025-01-30 20:42:06 - End Time 2025-01-30 23:42:06 [2025-01-30 23:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367093', 'tblTempUsageDetail_20' ) start [2025-01-30 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367093', 'tblTempUsageDetail_20' ) end [2025-01-30 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367093', 'tblTempVendorCDR_20' ) start [2025-01-30 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367093', 'tblTempVendorCDR_20' ) end [2025-01-30 23:42:20] Production.INFO: ProcessCDR(1,14367093,1,1,2) [2025-01-30 23:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367093', 'tblTempUsageDetail_20' ) start [2025-01-30 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367093', 'tblTempUsageDetail_20' ) end [2025-01-30 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:42:23] Production.INFO: ==16143== Releasing lock... [2025-01-30 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:43:05 [end_date_ymd] => 2025-01-30 23:43:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:43:05' and `end` < '2025-01-30 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-30 23:43:18] Production.INFO: count ==846 [2025-01-30 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:43:05 - End Time 2025-01-30 23:43:05 [2025-01-30 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367098', 'tblTempUsageDetail_20' ) start [2025-01-30 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367098', 'tblTempUsageDetail_20' ) end [2025-01-30 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367098', 'tblTempVendorCDR_20' ) start [2025-01-30 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367098', 'tblTempVendorCDR_20' ) end [2025-01-30 23:43:18] Production.INFO: ProcessCDR(1,14367098,1,1,2) [2025-01-30 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367098', 'tblTempUsageDetail_20' ) start [2025-01-30 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367098', 'tblTempUsageDetail_20' ) end [2025-01-30 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:43:21] Production.INFO: ==16227== Releasing lock... [2025-01-30 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:44:05 [end_date_ymd] => 2025-01-30 23:44:05 [RateCDR] => 1 ) [2025-01-30 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:44:05' and `end` < '2025-01-30 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:44:19] Production.INFO: count ==845 [2025-01-30 23:44:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:44:05 - End Time 2025-01-30 23:44:05 [2025-01-30 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367103', 'tblTempUsageDetail_20' ) start [2025-01-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367103', 'tblTempUsageDetail_20' ) end [2025-01-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367103', 'tblTempVendorCDR_20' ) start [2025-01-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367103', 'tblTempVendorCDR_20' ) end [2025-01-30 23:44:19] Production.INFO: ProcessCDR(1,14367103,1,1,2) [2025-01-30 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367103', 'tblTempUsageDetail_20' ) start [2025-01-30 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367103', 'tblTempUsageDetail_20' ) end [2025-01-30 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:44:22] Production.INFO: ==16317== Releasing lock... [2025-01-30 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:45:05 [end_date_ymd] => 2025-01-30 23:45:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:45:05' and `end` < '2025-01-30 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-30 23:45:18] Production.INFO: count ==845 [2025-01-30 23:45:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:45:05 - End Time 2025-01-30 23:45:05 [2025-01-30 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367108', 'tblTempUsageDetail_20' ) start [2025-01-30 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367108', 'tblTempUsageDetail_20' ) end [2025-01-30 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367108', 'tblTempVendorCDR_20' ) start [2025-01-30 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367108', 'tblTempVendorCDR_20' ) end [2025-01-30 23:45:19] Production.INFO: ProcessCDR(1,14367108,1,1,2) [2025-01-30 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367108', 'tblTempUsageDetail_20' ) start [2025-01-30 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367108', 'tblTempUsageDetail_20' ) end [2025-01-30 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:45:22] Production.INFO: ==16408== Releasing lock... [2025-01-30 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:46:05 [end_date_ymd] => 2025-01-30 23:46:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:46:05' and `end` < '2025-01-30 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-30 23:46:18] Production.INFO: count ==844 [2025-01-30 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:46:05 - End Time 2025-01-30 23:46:05 [2025-01-30 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367113', 'tblTempUsageDetail_20' ) start [2025-01-30 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367113', 'tblTempUsageDetail_20' ) end [2025-01-30 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367113', 'tblTempVendorCDR_20' ) start [2025-01-30 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367113', 'tblTempVendorCDR_20' ) end [2025-01-30 23:46:18] Production.INFO: ProcessCDR(1,14367113,1,1,2) [2025-01-30 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367113', 'tblTempUsageDetail_20' ) start [2025-01-30 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367113', 'tblTempUsageDetail_20' ) end [2025-01-30 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:46:21] Production.INFO: ==16501== Releasing lock... [2025-01-30 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:47:05 [end_date_ymd] => 2025-01-30 23:47:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:47:05' and `end` < '2025-01-30 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-30 23:47:19] Production.INFO: count ==841 [2025-01-30 23:47:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:47:05 - End Time 2025-01-30 23:47:05 [2025-01-30 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367118', 'tblTempUsageDetail_20' ) start [2025-01-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367118', 'tblTempUsageDetail_20' ) end [2025-01-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367118', 'tblTempVendorCDR_20' ) start [2025-01-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367118', 'tblTempVendorCDR_20' ) end [2025-01-30 23:47:19] Production.INFO: ProcessCDR(1,14367118,1,1,2) [2025-01-30 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367118', 'tblTempUsageDetail_20' ) start [2025-01-30 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367118', 'tblTempUsageDetail_20' ) end [2025-01-30 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:47:22] Production.INFO: ==16592== Releasing lock... [2025-01-30 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:48:05 [end_date_ymd] => 2025-01-30 23:48:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:48:05' and `end` < '2025-01-30 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-30 23:48:19] Production.INFO: count ==841 [2025-01-30 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:48:05 - End Time 2025-01-30 23:48:05 [2025-01-30 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367123', 'tblTempUsageDetail_20' ) start [2025-01-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367123', 'tblTempUsageDetail_20' ) end [2025-01-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367123', 'tblTempVendorCDR_20' ) start [2025-01-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367123', 'tblTempVendorCDR_20' ) end [2025-01-30 23:48:19] Production.INFO: ProcessCDR(1,14367123,1,1,2) [2025-01-30 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367123', 'tblTempUsageDetail_20' ) start [2025-01-30 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367123', 'tblTempUsageDetail_20' ) end [2025-01-30 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:48:22] Production.INFO: ==16680== Releasing lock... [2025-01-30 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:49:04 [end_date_ymd] => 2025-01-30 23:49:04 [RateCDR] => 1 ) [2025-01-30 23: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-30 20:49:04' and `end` < '2025-01-30 23: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-30 23:49:17] Production.INFO: count ==841 [2025-01-30 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:49:04 - End Time 2025-01-30 23:49:04 [2025-01-30 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367128', 'tblTempUsageDetail_20' ) start [2025-01-30 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367128', 'tblTempUsageDetail_20' ) end [2025-01-30 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367128', 'tblTempVendorCDR_20' ) start [2025-01-30 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367128', 'tblTempVendorCDR_20' ) end [2025-01-30 23:49:18] Production.INFO: ProcessCDR(1,14367128,1,1,2) [2025-01-30 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367128', 'tblTempUsageDetail_20' ) start [2025-01-30 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367128', 'tblTempUsageDetail_20' ) end [2025-01-30 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:49:21] Production.INFO: ==16774== Releasing lock... [2025-01-30 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:50:06 [end_date_ymd] => 2025-01-30 23:50:06 [RateCDR] => 1 ) [2025-01-30 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-30 20:50:06' and `end` < '2025-01-30 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-30 23:50:18] Production.INFO: count ==841 [2025-01-30 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:50:06 - End Time 2025-01-30 23:50:06 [2025-01-30 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367134', 'tblTempUsageDetail_20' ) start [2025-01-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367134', 'tblTempUsageDetail_20' ) end [2025-01-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367134', 'tblTempVendorCDR_20' ) start [2025-01-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367134', 'tblTempVendorCDR_20' ) end [2025-01-30 23:50:19] Production.INFO: ProcessCDR(1,14367134,1,1,2) [2025-01-30 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367134', 'tblTempUsageDetail_20' ) start [2025-01-30 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367134', 'tblTempUsageDetail_20' ) end [2025-01-30 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:50:22] Production.INFO: ==16860== Releasing lock... [2025-01-30 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:51:05 [end_date_ymd] => 2025-01-30 23:51:05 [RateCDR] => 1 ) [2025-01-30 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:51:05' and `end` < '2025-01-30 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:51:18] Production.INFO: count ==856 [2025-01-30 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:51:05 - End Time 2025-01-30 23:51:05 [2025-01-30 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367139', 'tblTempUsageDetail_20' ) start [2025-01-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367139', 'tblTempUsageDetail_20' ) end [2025-01-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367139', 'tblTempVendorCDR_20' ) start [2025-01-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367139', 'tblTempVendorCDR_20' ) end [2025-01-30 23:51:18] Production.INFO: ProcessCDR(1,14367139,1,1,2) [2025-01-30 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367139', 'tblTempUsageDetail_20' ) start [2025-01-30 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367139', 'tblTempUsageDetail_20' ) end [2025-01-30 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:51:23] Production.INFO: ==16959== Releasing lock... [2025-01-30 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:51:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:52:05 [end_date_ymd] => 2025-01-30 23:52:05 [RateCDR] => 1 ) [2025-01-30 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:52:05' and `end` < '2025-01-30 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:52:19] Production.INFO: count ==856 [2025-01-30 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:52:05 - End Time 2025-01-30 23:52:05 [2025-01-30 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367144', 'tblTempUsageDetail_20' ) start [2025-01-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367144', 'tblTempUsageDetail_20' ) end [2025-01-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367144', 'tblTempVendorCDR_20' ) start [2025-01-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367144', 'tblTempVendorCDR_20' ) end [2025-01-30 23:52:19] Production.INFO: ProcessCDR(1,14367144,1,1,2) [2025-01-30 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367144', 'tblTempUsageDetail_20' ) start [2025-01-30 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367144', 'tblTempUsageDetail_20' ) end [2025-01-30 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:52:22] Production.INFO: ==17043== Releasing lock... [2025-01-30 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-30 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:53:06 [end_date_ymd] => 2025-01-30 23:53:06 [RateCDR] => 1 ) [2025-01-30 23:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:53:06' and `end` < '2025-01-30 23:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:53:19] Production.INFO: count ==859 [2025-01-30 23:53:19] Production.ERROR: pbx CDR StartTime 2025-01-30 20:53:06 - End Time 2025-01-30 23:53:06 [2025-01-30 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367149', 'tblTempUsageDetail_20' ) start [2025-01-30 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367149', 'tblTempUsageDetail_20' ) end [2025-01-30 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367149', 'tblTempVendorCDR_20' ) start [2025-01-30 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367149', 'tblTempVendorCDR_20' ) end [2025-01-30 23:53:19] Production.INFO: ProcessCDR(1,14367149,1,1,2) [2025-01-30 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367149', 'tblTempUsageDetail_20' ) start [2025-01-30 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367149', 'tblTempUsageDetail_20' ) end [2025-01-30 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:53:23] Production.INFO: ==17170== Releasing lock... [2025-01-30 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:53:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:54:05 [end_date_ymd] => 2025-01-30 23:54:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:54:05' and `end` < '2025-01-30 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-30 23:54:17] Production.INFO: count ==860 [2025-01-30 23:54:17] Production.ERROR: pbx CDR StartTime 2025-01-30 20:54:05 - End Time 2025-01-30 23:54:05 [2025-01-30 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367154', 'tblTempUsageDetail_20' ) start [2025-01-30 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367154', 'tblTempUsageDetail_20' ) end [2025-01-30 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367154', 'tblTempVendorCDR_20' ) start [2025-01-30 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367154', 'tblTempVendorCDR_20' ) end [2025-01-30 23:54:17] Production.INFO: ProcessCDR(1,14367154,1,1,2) [2025-01-30 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367154', 'tblTempUsageDetail_20' ) start [2025-01-30 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367154', 'tblTempUsageDetail_20' ) end [2025-01-30 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:54:21] Production.INFO: ==17259== Releasing lock... [2025-01-30 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:55:06 [end_date_ymd] => 2025-01-30 23:55:06 [RateCDR] => 1 ) [2025-01-30 23:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-30 20:55:06' and `end` < '2025-01-30 23:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-30 23:55:21] Production.INFO: count ==859 [2025-01-30 23:55:21] Production.ERROR: pbx CDR StartTime 2025-01-30 20:55:06 - End Time 2025-01-30 23:55:06 [2025-01-30 23:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367159', 'tblTempUsageDetail_20' ) start [2025-01-30 23:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367159', 'tblTempUsageDetail_20' ) end [2025-01-30 23:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367159', 'tblTempVendorCDR_20' ) start [2025-01-30 23:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367159', 'tblTempVendorCDR_20' ) end [2025-01-30 23:55:21] Production.INFO: ProcessCDR(1,14367159,1,1,2) [2025-01-30 23:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367159', 'tblTempUsageDetail_20' ) start [2025-01-30 23:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367159', 'tblTempUsageDetail_20' ) end [2025-01-30 23:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:55:24] Production.INFO: ==17346== Releasing lock... [2025-01-30 23:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:55:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:56:05 [end_date_ymd] => 2025-01-30 23:56:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:56:05' and `end` < '2025-01-30 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-30 23:56:17] Production.INFO: count ==860 [2025-01-30 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:56:05 - End Time 2025-01-30 23:56:05 [2025-01-30 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367164', 'tblTempUsageDetail_20' ) start [2025-01-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367164', 'tblTempUsageDetail_20' ) end [2025-01-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367164', 'tblTempVendorCDR_20' ) start [2025-01-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367164', 'tblTempVendorCDR_20' ) end [2025-01-30 23:56:18] Production.INFO: ProcessCDR(1,14367164,1,1,2) [2025-01-30 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367164', 'tblTempUsageDetail_20' ) start [2025-01-30 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367164', 'tblTempUsageDetail_20' ) end [2025-01-30 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:56:22] Production.INFO: ==17440== Releasing lock... [2025-01-30 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:57:06 [end_date_ymd] => 2025-01-30 23:57:06 [RateCDR] => 1 ) [2025-01-30 23: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-30 20:57:06' and `end` < '2025-01-30 23: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-30 23:57:19] Production.INFO: count ==864 [2025-01-30 23:57:20] Production.ERROR: pbx CDR StartTime 2025-01-30 20:57:06 - End Time 2025-01-30 23:57:06 [2025-01-30 23:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367169', 'tblTempUsageDetail_20' ) start [2025-01-30 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367169', 'tblTempUsageDetail_20' ) end [2025-01-30 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367169', 'tblTempVendorCDR_20' ) start [2025-01-30 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367169', 'tblTempVendorCDR_20' ) end [2025-01-30 23:57:20] Production.INFO: ProcessCDR(1,14367169,1,1,2) [2025-01-30 23:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367169', 'tblTempUsageDetail_20' ) start [2025-01-30 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367169', 'tblTempUsageDetail_20' ) end [2025-01-30 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:57:23] Production.INFO: ==17532== Releasing lock... [2025-01-30 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:57:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:58:05 [end_date_ymd] => 2025-01-30 23:58:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:58:05' and `end` < '2025-01-30 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-30 23:58:17] Production.INFO: count ==864 [2025-01-30 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:58:05 - End Time 2025-01-30 23:58:05 [2025-01-30 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367174', 'tblTempUsageDetail_20' ) start [2025-01-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367174', 'tblTempUsageDetail_20' ) end [2025-01-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367174', 'tblTempVendorCDR_20' ) start [2025-01-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367174', 'tblTempVendorCDR_20' ) end [2025-01-30 23:58:18] Production.INFO: ProcessCDR(1,14367174,1,1,2) [2025-01-30 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367174', 'tblTempUsageDetail_20' ) start [2025-01-30 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367174', 'tblTempUsageDetail_20' ) end [2025-01-30 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:58:21] Production.INFO: ==17616== Releasing lock... [2025-01-30 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-30 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-30 20:59:05 [end_date_ymd] => 2025-01-30 23:59:05 [RateCDR] => 1 ) [2025-01-30 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-30 20:59:05' and `end` < '2025-01-30 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-30 23:59:18] Production.INFO: count ==864 [2025-01-30 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-30 20:59:05 - End Time 2025-01-30 23:59:05 [2025-01-30 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367178', 'tblTempUsageDetail_20' ) start [2025-01-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14367178', 'tblTempUsageDetail_20' ) end [2025-01-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367178', 'tblTempVendorCDR_20' ) start [2025-01-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14367178', 'tblTempVendorCDR_20' ) end [2025-01-30 23:59:18] Production.INFO: ProcessCDR(1,14367178,1,1,2) [2025-01-30 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14367178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14367178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-30 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14367178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14367178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-30 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367178', 'tblTempUsageDetail_20' ) start [2025-01-30 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14367178', 'tblTempUsageDetail_20' ) end [2025-01-30 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-30 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-30 23:59:21] Production.INFO: ==17712== Releasing lock... [2025-01-30 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-30 23:59:21] Production.INFO: 33.75 MB #Memory Used#